From a6ef8f0813d55266dea52b49f13d0a250b5dad7d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 24 Jul 2009 20:34:43 +0000 Subject: Template instantiation for static data members that are defined out-of-line. Note that this also fixes a bug that affects non-template code, where we were not treating out-of-line static data members are "file-scope" variables, and therefore not checking their initializers. llvm-svn: 77002 --- clang/lib/Sema/Sema.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema/Sema.h') diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 3f14c49ed4b..164c65f02cd 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -2732,7 +2732,10 @@ public: void InstantiateFunctionDefinition(SourceLocation PointOfInstantiation, FunctionDecl *Function, bool Recursive = false); - void InstantiateVariableDefinition(VarDecl *Var); + void InstantiateStaticDataMemberDefinition( + SourceLocation PointOfInstantiation, + VarDecl *Var, + bool Recursive = false); NamedDecl *InstantiateCurrentDeclRef(NamedDecl *D); -- cgit v1.2.3