only truncate source lines in text diagnostics when
authorSeth Cantrell <seth.cantrell@gmail.com>
Sat, 3 Nov 2012 23:56:43 +0000 (23:56 +0000)
committerSeth Cantrell <seth.cantrell@gmail.com>
Sat, 3 Nov 2012 23:56:43 +0000 (23:56 +0000)
commit40f87b1d53acff6b2c885062f5b59c327d8295f7
tree5b4f7ee367ce5132cd4a2b0f9fdfc61c13520576
parent2954ceab8254fe9809257d386f4715ac2d03bd13
only truncate source lines in text diagnostics when
the ellipsis is shorter than the text it replaces

llvm-svn: 167364
clang/lib/Frontend/TextDiagnostic.cpp
clang/test/Misc/unnecessary-elipses.cpp [new file with mode: 0644]