diff options
author | Caitlin Sadowski <supertri@google.com> | 2011-09-08 17:42:31 +0000 |
---|---|---|
committer | Caitlin Sadowski <supertri@google.com> | 2011-09-08 17:42:31 +0000 |
commit | ed9d84a2112e2bd56befb5f4fa8fc5bdf71fafa3 (patch) | |
tree | cc1d430044e599baf8afacd324275b752b526383 /lib/AST/DeclBase.cpp | |
parent | eff98fc3561f6b717f6348f04b3f4fe03e934466 (diff) |
Thread safety: added support for function scopes in attribute arguments.
This patch was written by DeLesley Hutchins.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index 1dec71c384..f846648844 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -133,6 +133,10 @@ bool Decl::isFunctionOrFunctionTemplate() const { return isa<FunctionDecl>(this) || isa<FunctionTemplateDecl>(this); } +bool Decl::isTemplateDecl() const { + return isa<TemplateDecl>(this); +} + bool Decl::isDefinedOutsideFunctionOrMethod() const { for (const DeclContext *DC = getDeclContext(); DC && !DC->isTranslationUnit(); |