[cfe-commits] r61797 - /cfe/trunk/include/clang/AST/DeclBase.h

Chris Lattner sabre at nondot.org
Mon Jan 5 23:16:41 PST 2009


Author: lattner
Date: Tue Jan  6 01:16:40 2009
New Revision: 61797

URL: http://llvm.org/viewvc/llvm-project?rev=61797&view=rev
Log:
add a helper method.

Modified:
    cfe/trunk/include/clang/AST/DeclBase.h

Modified: cfe/trunk/include/clang/AST/DeclBase.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclBase.h?rev=61797&r1=61796&r2=61797&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/DeclBase.h (original)
+++ cfe/trunk/include/clang/AST/DeclBase.h Tue Jan  6 01:16:40 2009
@@ -211,6 +211,10 @@
     }
   }
   
+  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.  





More information about the cfe-commits mailing list