]> granicus.if.org Git - clang/commit
When a fix-it hint would span multiple lines, don't print it; half a
authorDouglas Gregor <dgregor@apple.com>
Sun, 3 May 2009 04:33:32 +0000 (04:33 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 3 May 2009 04:33:32 +0000 (04:33 +0000)
commit844da34736c0439ae50017826a7393406e75acd8
tree43ac2ac218e6efa6d33eab625497d7edb248dab1
parent7d101f6fd7f311b0a7fdd83a50f8668bd8a659cd
When a fix-it hint would span multiple lines, don't print it; half a
fix-it hint is much worse than no fix-it hint. (Fixes PR4084).

When we need to truncate a source line to fix in the terminal, make
sure to take the width of the fix-it information into account, too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70656 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/TextDiagnosticPrinter.cpp