diff options
-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. |