Fix formatting of pointers to members.
Before: int(S::*func)(void *);
After: int (S::*func)(void *);
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181438 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Format/TokenAnnotator.h b/lib/Format/TokenAnnotator.h
index b364082..a2080b5 100644
--- a/lib/Format/TokenAnnotator.h
+++ b/lib/Format/TokenAnnotator.h
@@ -75,7 +75,7 @@
CanBreakBefore(false), MustBreakBefore(false),
ClosesTemplateDeclaration(false), MatchingParen(NULL),
ParameterCount(0), BindingStrength(0), SplitPenalty(0),
- LongestObjCSelectorName(0), Parent(NULL),
+ LongestObjCSelectorName(0), DefinesFunctionType(false), Parent(NULL),
FakeRParens(0), LastInChainOfCalls(false),
PartOfMultiVariableDeclStmt(false), NoMoreTokensOnLevel(false) {}
@@ -164,6 +164,9 @@
/// 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;