summaryrefslogtreecommitdiff
path: root/clang/lib/Format/UnwrappedLineParser.h
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2013-12-12 09:49:52 +0000
committerAlexander Kornienko <alexfh@google.com>2013-12-12 09:49:52 +0000
commit3a33f0292bcadc2eaf980ec7581dbe260f0e092b (patch)
tree05922d09cc643457235fb3203c2d84f3cd999fc2 /clang/lib/Format/UnwrappedLineParser.h
parenta92e2311bb1345c60f6c90180028b8adf252897c (diff)
downloadllvm-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.h1
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 {