We should preserve empty lines in output snippets.
Details
Details
- Reviewers
 cjdb aaron.ballman - Group Reviewers
 Restricted Project - Commits
 - rG3184fb958091: [clang][Diagnostics] Print empty lines in multiline snippets
 
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
| clang/test/Misc/diag-style.cpp | ||
|---|---|---|
| 11 | Questionable whether the space after the | is expected.  | |
| clang/lib/Frontend/TextDiagnostic.cpp | ||
|---|---|---|
| 1228 | This is a special case (and probably unneeded?), but otherwise we get 2 empty lines for an empty source line when we print source range info.  | |
Comment Actions
LGTM!
| clang/test/Misc/diag-style.cpp | ||
|---|---|---|
| 11 | I don't have a good intuition for whether it is expected or not, but I think it's defensible.  | |
This is a special case (and probably unneeded?), but otherwise we get 2 empty lines for an empty source line when we print source range info.