]> granicus.if.org Git - clang/commit
Implemented GNU-style formatting for compound statements.
authorAlexander Kornienko <alexfh@google.com>
Thu, 12 Dec 2013 09:49:52 +0000 (09:49 +0000)
committerAlexander Kornienko <alexfh@google.com>
Thu, 12 Dec 2013 09:49:52 +0000 (09:49 +0000)
commit293cb1217b7950fb4f073bb6eca0dc7ac72c7baf
treeaab8e16a93947046be1e3f5c887fd215f4362e65
parent1204f96cdb605d5ed575cfb472f66036d6e32cd6
Implemented GNU-style formatting for compound statements.

Summary:
Added BraceBreakingStyle::BS_GNU. I'm not sure about the correctness of
static initializer formatting, but compound statements should be fine.

Reviewers: djasper

Reviewed By: djasper

CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2372

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