[cfe-commits] r67871 - /cfe/trunk/include/clang/AST/ParentMap.h

Ted Kremenek kremenek at apple.com
Fri Mar 27 15:00:42 PDT 2009


Author: kremenek
Date: Fri Mar 27 17:00:38 2009
New Revision: 67871

URL: http://llvm.org/viewvc/llvm-project?rev=67871&view=rev
Log:
Add missing header file change.

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

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

==============================================================================
--- cfe/trunk/include/clang/AST/ParentMap.h (original)
+++ cfe/trunk/include/clang/AST/ParentMap.h Fri Mar 27 17:00:38 2009
@@ -23,7 +23,11 @@
   ParentMap(Stmt* ASTRoot);
   ~ParentMap();
 
-  Stmt* getParent(Stmt*) const;  
+  Stmt* getParent(Stmt*) const;
+
+  const Stmt* getParent(const Stmt* S) const {
+    return getParent(const_cast<Stmt*>(S));
+  }
 
   bool hasParent(Stmt* S) const {
     return getParent(S) != 0;





More information about the cfe-commits mailing list