diff options
Diffstat (limited to 'clang/include')
-rw-r--r-- | clang/include/clang/AST/DeclTemplate.h | 2 | ||||
-rw-r--r-- | clang/include/clang/Sema/Sema.h | 7 | ||||
-rw-r--r-- | clang/include/clang/Sema/Template.h | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/clang/include/clang/AST/DeclTemplate.h b/clang/include/clang/AST/DeclTemplate.h index 9de98bb9ca0..be446f5b617 100644 --- a/clang/include/clang/AST/DeclTemplate.h +++ b/clang/include/clang/AST/DeclTemplate.h @@ -2782,7 +2782,7 @@ public: /// \brief Return the next partial specialization sequence number. unsigned getNextPartialSpecSequenceNumber() { - return getPartialSpecializations().size(); + return getCommonPtr()->PartialSpecializations.size(); } /// \brief Retrieve the partial specializations as an ordered list. diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index a871e55cca4..b150c67114d 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -1472,8 +1472,7 @@ public: MultiTemplateParamsArg TemplateParamLists, bool &AddToScope); // Returns true if the variable declaration is a redeclaration - bool CheckVariableDeclaration(VarDecl *NewVD, LookupResult &Previous, - bool IsVariableTemplate = false); + bool CheckVariableDeclaration(VarDecl *NewVD, LookupResult &Previous); void CheckVariableDeclarationType(VarDecl *NewVD); void CheckCompleteVariableDeclaration(VarDecl *var); void MaybeSuggestAddingStaticToDecl(const FunctionDecl *D); @@ -1869,7 +1868,7 @@ public: Scope *S, bool MergeTypeWithOld); void mergeObjCMethodDecls(ObjCMethodDecl *New, ObjCMethodDecl *Old); void MergeVarDecl(VarDecl *New, LookupResult &Previous, - bool IsVariableTemplate, bool MergeTypeWithPrevious); + bool MergeTypeWithPrevious); void MergeVarDeclTypes(VarDecl *New, VarDecl *Old, bool MergeTypeWithOld); void MergeVarDeclExceptionSpecs(VarDecl *New, VarDecl *Old); bool MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old, Scope *S); @@ -6432,7 +6431,7 @@ public: const MultiLevelTemplateArgumentList &TemplateArgs, LateInstantiatedAttrVec *LateAttrs = 0, LocalInstantiationScope *StartingScope = 0, - bool ForVarTemplate = false); + bool InstantiatingVarTemplate = false); void InstantiateVariableInitializer( VarDecl *Var, VarDecl *OldVar, const MultiLevelTemplateArgumentList &TemplateArgs); diff --git a/clang/include/clang/Sema/Template.h b/clang/include/clang/Sema/Template.h index 4f0550f580a..3aba5519bdf 100644 --- a/clang/include/clang/Sema/Template.h +++ b/clang/include/clang/Sema/Template.h @@ -425,7 +425,7 @@ namespace clang { Decl *VisitFunctionDecl(FunctionDecl *D, TemplateParameterList *TemplateParams); Decl *VisitDecl(Decl *D); - Decl *VisitVarDecl(VarDecl *D, bool ForVarTemplate); + Decl *VisitVarDecl(VarDecl *D, bool InstantiatingVarTemplate); // Enable late instantiation of attributes. Late instantiated attributes // will be stored in LA. |