summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-03-11 09:03:00 +0000
committerJohn McCall <rjmccall@apple.com>2010-03-11 09:03:00 +0000
commit58f10c3380640962d251db70ac876e5ea7336c59 (patch)
tree8a649d3425186c5779746e250b519b853bcbda91 /clang/lib/Sema/Sema.h
parent8c4df8160ed0d6e2b96a31c1c0fb12cc77328c80 (diff)
downloadbcm5719-llvm-58f10c3380640962d251db70ac876e5ea7336c59.tar.gz
bcm5719-llvm-58f10c3380640962d251db70ac876e5ea7336c59.zip
Maintain type source information for functions through template
instantiation. Based on a patch by Enea Zaffanella! I found a way to reduce some of the redundancy between TreeTransform's "standard" FunctionProtoType transformation and TemplateInstantiator's override, and I killed off the old SubstFunctionType by adding type source info for the last cases where we were creating FunctionDecls without TSI (at least that get passed through template instantiation). llvm-svn: 98252
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index a94d07a6acc..c9f39e2b992 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -3593,6 +3593,8 @@ public:
DeclContext *FindInstantiatedContext(SourceLocation Loc, DeclContext *DC,
const MultiLevelTemplateArgumentList &TemplateArgs);
+ bool CheckInstantiatedParams(llvm::SmallVectorImpl<ParmVarDecl *> &Params);
+
// Objective-C declarations.
virtual DeclPtrTy ActOnStartClassInterface(SourceLocation AtInterfaceLoc,
IdentifierInfo *ClassName,
OpenPOWER on IntegriCloud