From 413d8a21001c5f37bcf82f91e405a3513796ad7e Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 24 Feb 2014 20:45:14 +0000 Subject: [PATCH] Follow up to r201927: remove the Sema::InFunctionDeclarator field. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202069 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Sema/Sema.h | 5 ----- lib/Sema/Sema.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 7c920581db..54f71620d5 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -1328,11 +1328,6 @@ public: /// function to pin them on. ActOnFunctionDeclarator reads this list and patches /// them into the FunctionDecl. std::vector 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); diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 600da90d2c..037327a22d 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -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), -- 2.40.0