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
Event Timeline
clang/test/Misc/diag-style.cpp | ||
---|---|---|
10 | Questionable whether the space after the | is expected. |
clang/lib/Frontend/TextDiagnostic.cpp | ||
---|---|---|
1246 | 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 | ||
---|---|---|
10 | 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.