]> granicus.if.org Git - clang/commit
Fix clang-format's expression parser for leading }s.
authorDaniel Jasper <djasper@google.com>
Thu, 6 Jun 2013 09:11:58 +0000 (09:11 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 6 Jun 2013 09:11:58 +0000 (09:11 +0000)
commit9acb8b4355028887e8cc4aa8f683aceee021a62b
tree59b352524596049179c55af40fba27c3ed846310
parentff1a2e519ebcd6d7a060eac7ba8aca37b2bf89d0
Fix clang-format's expression parser for leading }s.

The leading "}" in the construct "} else if (..) {" was confusing the
expression parser. Thus, no fake parentheses were generated and the
indentation was broken in some cases.

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