diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-06 07:16:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-06 07:16:40 +0000 |
commit | d62fdc448b3ace606c8c9c9f13e43218fa204dbf (patch) | |
tree | 35a9d0fbf47d4fcfa07b3e1c3c84521d275d94b3 | |
parent | 7a0ab5f387722c83e19c7133b46b16988eb19e45 (diff) |
add a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61797 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/DeclBase.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. |