]> granicus.if.org Git - clang/commit
If fixits appear to overlap, move the second one over in the output.
authorJordan Rose <jordan_rose@apple.com>
Fri, 8 Jun 2012 21:14:19 +0000 (21:14 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 8 Jun 2012 21:14:19 +0000 (21:14 +0000)
commit3772c9abf9651da1f77c83ec937c96e10a353c6a
tree29ff5e68e72d616aed369d00f2f79e3e52f6f8fa
parent3f5f558a4ca08fe952cbbdf69b87487163c9a719
If fixits appear to overlap, move the second one over in the output.

This occurs when you have two insertions and the first one is so long that the
second fixit's column is before the first fixit ends. The edits themselves
don't actually overlap, but our command-line preview does.

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