From d62fdc448b3ace606c8c9c9f13e43218fa204dbf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Jan 2009 07:16:40 +0000 Subject: [PATCH] add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61797 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/DeclBase.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 32760f391b..fac0668efd 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -211,6 +211,10 @@ public: } } + bool isInIdentifierNamespace(unsigned NS) const { + return getIdentifierNamespace() & NS; + } + // getBody - If this Decl represents a declaration for a body of code, // such as a function or method definition, this method returns the top-level // Stmt* of that body. Otherwise this method returns null. -- 2.40.0