]> granicus.if.org Git - clang/commitdiff
Follow up to r201927: remove the Sema::InFunctionDeclarator field.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 24 Feb 2014 20:45:14 +0000 (20:45 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 24 Feb 2014 20:45:14 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202069 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h
lib/Sema/Sema.cpp

index 7c920581db5e6ed6022be28cce95b760eb83d2d7..54f71620d57c92cc526a5575d5db17e5fd706309 100644 (file)
@@ -1328,11 +1328,6 @@ public:
   /// function to pin them on. ActOnFunctionDeclarator reads this list and patches
   /// them into the FunctionDecl.
   std::vector<NamedDecl*> DeclsInPrototypeScope;
-  /// Nonzero if we are currently parsing a function declarator. This is a counter
-  /// as opposed to a boolean so we can deal with nested function declarators
-  /// such as:
-  ///     void f(void (*g)(), ...)
-  unsigned InFunctionDeclarator;
 
   DeclGroupPtrTy ConvertDeclToDeclGroup(Decl *Ptr, Decl *OwnedType = 0);
 
index 600da90d2c79203fffbf11aabfd24a86866c9930..037327a22da6aa6e34908fc055ee9eefb316b4ac 100644 (file)
@@ -89,7 +89,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
     NSDictionaryDecl(0), DictionaryWithObjectsMethod(0),
     GlobalNewDeleteDeclared(false),
     TUKind(TUKind),
-    NumSFINAEErrors(0), InFunctionDeclarator(0),
+    NumSFINAEErrors(0),
     AccessCheckingSFINAE(false), InNonInstantiationSFINAEContext(false),
     NonInstantiationEntries(0), ArgumentPackSubstitutionIndex(-1),
     CurrentInstantiationScope(0), DisableTypoCorrection(false),