diff options
author | Daniel Jasper <djasper@google.com> | 2015-03-01 18:55:26 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-03-01 18:55:26 +0000 |
commit | bea1ab46d9ffdfc50108580c712596a54323a94c (patch) | |
tree | 4633348b9ade22c202b5af280ae56875a4fe307b /clang/lib/Format/TokenAnnotator.h | |
parent | de4a0fd813b307641da8c625cfe57c5da8e85d5c (diff) | |
download | bcm5719-llvm-bea1ab46d9ffdfc50108580c712596a54323a94c.tar.gz bcm5719-llvm-bea1ab46d9ffdfc50108580c712596a54323a94c.zip |
clang-format: Always align */& in multi-var DeclStmts.
Seems like the most consistent thing to do and in multi-var DeclStmts,
it is especially important to point out that the */& bind to the
identifier.
llvm-svn: 230903
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.h')
-rw-r--r-- | clang/lib/Format/TokenAnnotator.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Format/TokenAnnotator.h b/clang/lib/Format/TokenAnnotator.h index 94ed1d188d3..a948cdb1c41 100644 --- a/clang/lib/Format/TokenAnnotator.h +++ b/clang/lib/Format/TokenAnnotator.h @@ -42,8 +42,8 @@ public: : First(Line.Tokens.front().Tok), Level(Line.Level), InPPDirective(Line.InPPDirective), MustBeDeclaration(Line.MustBeDeclaration), MightBeFunctionDecl(false), - Affected(false), LeadingEmptyLinesAffected(false), - ChildrenAffected(false) { + IsMultiVariableDeclStmt(false), Affected(false), + LeadingEmptyLinesAffected(false), ChildrenAffected(false) { assert(!Line.Tokens.empty()); // Calculate Next and Previous for all tokens. Note that we must overwrite @@ -90,6 +90,7 @@ public: bool InPPDirective; bool MustBeDeclaration; bool MightBeFunctionDecl; + bool IsMultiVariableDeclStmt; /// \c True if this line should be formatted, i.e. intersects directly or /// indirectly with one of the input ranges. |