From: Chris Lattner Date: Tue, 6 Jan 2009 07:16:40 +0000 (+0000) Subject: add a helper method. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d62fdc448b3ace606c8c9c9f13e43218fa204dbf;p=clang add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61797 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.