diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-26 05:26:50 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-26 05:26:50 +0000 |
commit | 58badb7a655d021fc67bb7ed0af95d6ea0c63eb1 (patch) | |
tree | 3a735ecc37d697ee049c566eab90c016103876e0 /lib/AST/DeclBase.cpp | |
parent | 5e50569d45d7c8545fecd17685a3a613b1cb0158 (diff) |
See through UsingDecls in more places.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index 93bee84cff..5815d820ae 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -97,6 +97,9 @@ bool Decl::isTemplateParameterPack() const { } bool Decl::isFunctionOrFunctionTemplate() const { + if (const UsingDecl *UD = dyn_cast<UsingDecl>(this)) + return UD->getTargetDecl()->isFunctionOrFunctionTemplate(); + return isa<FunctionDecl>(this) || isa<FunctionTemplateDecl>(this); } |