]> granicus.if.org Git - clang/commit
Automatically munch semicolons after blocks.
authorManuel Klimek <klimek@google.com>
Sat, 12 Oct 2013 22:46:56 +0000 (22:46 +0000)
committerManuel Klimek <klimek@google.com>
Sat, 12 Oct 2013 22:46:56 +0000 (22:46 +0000)
commitaabfb2712e180bb11e5dfc4f2a273890a6c5da66
tree1e0958c2e13983002d502100ab69ad0e6bfe605e
parentac4d0181928e3e22fa3929ca1b24ae7f14fb7628
Automatically munch semicolons after blocks.

While it is mostly a user error to have the extra semicolon,
formatting it graciously will correctly format in the cases
where we do not fully understand the code (macros).

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