summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-07-22 23:48:44 +0000
committerDouglas Gregor <dgregor@apple.com>2009-07-22 23:48:44 +0000
commite93e46c69096c8f6ad9e61578955d60a0de59f1d (patch)
tree3559b7c80967b179542bc71ed1c1029a9f5a3abc /clang/lib/Sema/Sema.h
parentd2aeef0703f6c752b7215e551ce219e2971b42e3 (diff)
downloadbcm5719-llvm-e93e46c69096c8f6ad9e61578955d60a0de59f1d.tar.gz
bcm5719-llvm-e93e46c69096c8f6ad9e61578955d60a0de59f1d.zip
Implement support for out-of-line definitions of the class members of class
templates, e.g., template<typename T> struct Outer { struct Inner; }; template<typename T> struct Outer<T>::Inner { // ... }; Implementing this feature required some extensions to ActOnTag, which now takes a set of template parameter lists, and is the precursor to removing the ActOnClassTemplate function from the parser Action interface. The reason for this approach is simple: the parser cannot tell the difference between a class template definition and the definition of a member of a class template; both have template parameter lists, and semantic analysis determines what that template parameter list means. There is still some cleanup to do with ActOnTag and ActOnClassTemplate. This commit provides the basic functionality we need, however. llvm-svn: 76820
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index 7daf3f90a86..78d64b53c09 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -522,6 +522,7 @@ public:
SourceLocation KWLoc, const CXXScopeSpec &SS,
IdentifierInfo *Name, SourceLocation NameLoc,
AttributeList *Attr, AccessSpecifier AS,
+ MultiTemplateParamsArg TemplateParameterLists,
bool &OwnedDecl);
virtual void ActOnDefs(Scope *S, DeclPtrTy TagD, SourceLocation DeclStart,
OpenPOWER on IntegriCloud