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)
commitd1c13736e0132718b550824ffb05764679d17eb4
tree551e6767970f5e23e475acff8dfc22359cadd08a
parent9a36b3e147a0fb0ed087841459730e420a1c30e8
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.

llvm-svn: 226930
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp