]> granicus.if.org Git - clang/commitdiff
add a helper method.
authorChris Lattner <sabre@nondot.org>
Tue, 6 Jan 2009 07:16:40 +0000 (07:16 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Jan 2009 07:16:40 +0000 (07:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61797 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index 32760f391be1a1a2c92de5fcc5d13d451b5e3ba7..fac0668efd3ad79800c6e0d4bbc931ad728c5581 100644 (file)
@@ -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.