]> granicus.if.org Git - clang/commit
Fixes PR17617: Crash on joining short if statements.
authorManuel Klimek <klimek@google.com>
Mon, 21 Oct 2013 08:11:15 +0000 (08:11 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 21 Oct 2013 08:11:15 +0000 (08:11 +0000)
commitd186f0b4c15d4c63e0ae7fbe6ca3207871ba2eb9
treeb3511640d7779cbcdc9701f56aa9b39336beac3d
parent9541141f4f131d76be609665b2a8500f770109c9
Fixes PR17617: Crash on joining short if statements.

Now that we iterate on the formatting multiple times when we
have chains of preprocessor branches, we need to correctly reset
the token's previous and next pointer for the first / last token.

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