aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/TokenAnnotator.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Format/TokenAnnotator.h')
-rw-r--r--lib/Format/TokenAnnotator.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Format/TokenAnnotator.h b/lib/Format/TokenAnnotator.h
index 605f506793..c41ee33c43 100644
--- a/lib/Format/TokenAnnotator.h
+++ b/lib/Format/TokenAnnotator.h
@@ -75,7 +75,7 @@ public:
CanBreakBefore(false), MustBreakBefore(false),
ClosesTemplateDeclaration(false), MatchingParen(NULL),
ParameterCount(0), BindingStrength(0), SplitPenalty(0),
- LongestObjCSelectorName(0), Parent(NULL),
+ LongestObjCSelectorName(0), Parent(NULL), FakeLParens(0),
FakeRParens(0), LastInChainOfCalls(false),
PartOfMultiVariableDeclStmt(false) {}
@@ -158,9 +158,8 @@ public:
std::vector<AnnotatedToken> Children;
AnnotatedToken *Parent;
- /// \brief Stores the number of required fake parenthesis and the
- /// corresponding operator precedence.
- SmallVector<unsigned, 4> FakeLParens;
+ /// \brief Insert this many fake ( before this token for correct indentation.
+ unsigned FakeLParens;
/// \brief Insert this many fake ) after this token for correct indentation.
unsigned FakeRParens;
@@ -249,8 +248,6 @@ private:
bool canBreakBefore(const AnnotatedLine &Line, const AnnotatedToken &Right);
- void printDebugInfo(const AnnotatedLine &Line);
-
const FormatStyle &Style;
SourceManager &SourceMgr;
Lexer &Lex;