diff options
author | Daniel Jasper <djasper@google.com> | 2013-05-28 08:33:00 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-05-28 08:33:00 +0000 |
commit | 3719428c066cbb1e83d08c03431971af110bc1ee (patch) | |
tree | 7dfcad86e4c895702cf2c103724022005ae1a743 /clang/lib/Format/TokenAnnotator.h | |
parent | f3e663af3961dfbe0c647474aa92e8fb957fb2ac (diff) | |
download | bcm5719-llvm-3719428c066cbb1e83d08c03431971af110bc1ee.tar.gz bcm5719-llvm-3719428c066cbb1e83d08c03431971af110bc1ee.zip |
Clean up formatting of function types.
Before:
int (*func)(void*);
void f() { int(*func)(void*); }
After (consistent space after "int"):
int (*func)(void*);
void f() { int (*func)(void*); }
llvm-svn: 182756
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.h')
-rw-r--r-- | clang/lib/Format/TokenAnnotator.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Format/TokenAnnotator.h b/clang/lib/Format/TokenAnnotator.h index e0d6d047e12..81d660d9470 100644 --- a/clang/lib/Format/TokenAnnotator.h +++ b/clang/lib/Format/TokenAnnotator.h @@ -36,6 +36,7 @@ enum TokenType { TT_ImplicitStringLiteral, TT_InlineASMColon, TT_InheritanceColon, + TT_FunctionTypeLParen, TT_LineComment, TT_ObjCArrayLiteral, TT_ObjCBlockLParen, @@ -78,9 +79,8 @@ public: ClosesTemplateDeclaration(false), MatchingParen(NULL), ParameterCount(0), TotalLength(FormatTok.TokenLength), UnbreakableTailLength(0), BindingStrength(0), SplitPenalty(0), - LongestObjCSelectorName(0), DefinesFunctionType(false), Parent(NULL), - FakeRParens(0), LastInChainOfCalls(false), - PartOfMultiVariableDeclStmt(false) {} + LongestObjCSelectorName(0), Parent(NULL), FakeRParens(0), + LastInChainOfCalls(false), PartOfMultiVariableDeclStmt(false) {} bool is(tok::TokenKind Kind) const { return FormatTok.Tok.is(Kind); } @@ -171,9 +171,6 @@ public: /// definition or call, this contains the length of the longest name. unsigned LongestObjCSelectorName; - /// \brief \c true if this is a "(" that starts a function type definition. - bool DefinesFunctionType; - std::vector<AnnotatedToken> Children; AnnotatedToken *Parent; |