diff options
Diffstat (limited to 'lib/Format/TokenAnnotator.h')
-rw-r--r-- | lib/Format/TokenAnnotator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Format/TokenAnnotator.h b/lib/Format/TokenAnnotator.h index aa78779f9b..b79ee97da8 100644 --- a/lib/Format/TokenAnnotator.h +++ b/lib/Format/TokenAnnotator.h @@ -75,7 +75,7 @@ public: ClosesTemplateDeclaration(false), MatchingParen(NULL), ParameterCount(0), BindingStrength(0), SplitPenalty(0), LongestObjCSelectorName(0), Parent(NULL), FakeLParens(0), - FakeRParens(0) { + FakeRParens(0), LastInChainOfCalls(false) { } bool is(tok::TokenKind Kind) const { return FormatTok.Tok.is(Kind); } @@ -127,6 +127,9 @@ public: /// \brief Insert this many fake ) after this token for correct indentation. unsigned FakeRParens; + /// \brief Is this the last "." or "->" in a builder-type call? + bool LastInChainOfCalls; + const AnnotatedToken *getPreviousNoneComment() const { AnnotatedToken *Tok = Parent; while (Tok != NULL && Tok->is(tok::comment)) |