diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-12-12 09:49:52 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-12-12 09:49:52 +0000 |
commit | 3a33f0292bcadc2eaf980ec7581dbe260f0e092b (patch) | |
tree | 05922d09cc643457235fb3203c2d84f3cd999fc2 /clang/lib/Format/UnwrappedLineParser.h | |
parent | a92e2311bb1345c60f6c90180028b8adf252897c (diff) | |
download | llvm-3a33f0292bcadc2eaf980ec7581dbe260f0e092b.tar.gz |
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
llvm-svn: 197138
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.h')
-rw-r--r-- | clang/lib/Format/UnwrappedLineParser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.h b/clang/lib/Format/UnwrappedLineParser.h index f1f4e57a20b3..71caed8505c1 100644 --- a/clang/lib/Format/UnwrappedLineParser.h +++ b/clang/lib/Format/UnwrappedLineParser.h @@ -185,6 +185,7 @@ private: std::stack<int> PPChainBranchIndex; friend class ScopedLineState; + friend class CompoundStatementIndenter; }; struct UnwrappedLineNode { |