]> granicus.if.org Git - clang/commit
clang-format: Fix another crasher caused by incomplete macro code.
authorDaniel Jasper <djasper@google.com>
Fri, 23 Jan 2015 19:37:25 +0000 (19:37 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 23 Jan 2015 19:37:25 +0000 (19:37 +0000)
commitdbd59c516ce77b47a8aff1a24c3939e63fe99110
treeaee3584385394ad3082e536a5357ca6ab5466d22
parent9498e79e0db23454a29ec26fa56534d95c02b140
clang-format: Fix another crasher caused by incomplete macro code.

We did't properly mark all of an AnnotatedLine's children as finalized
and thus would reformat the same tokens in different branches of #if/#else
sequences leading to invalid replacements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@226930 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineFormatter.cpp
unittests/Format/FormatTest.cpp