Don't try to minimize the times we invoke operator<< on the output stream by keeping a ToPrint string around. Instead, just print the characters as we iterate over them.
Details
Details
- Reviewers
aaron.ballman - Commits
- rG49843c503684: [clang][Diagnostics] Simplify emitSnippet()
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think this logic is the same (it's a bit tricky to tell, so it's unfortunate that precommit CI isn't running for this to help validate), so LGTM.