[cfe-commits] r57217 - /cfe/trunk/include/clang/AST/Stmt.h

Ted Kremenek kremenek at apple.com
Mon Oct 6 15:51:53 PDT 2008


Author: kremenek
Date: Mon Oct  6 17:51:42 2008
New Revision: 57217

URL: http://llvm.org/viewvc/llvm-project?rev=57217&view=rev
Log:
Remove DeclStmt::getDecl().  Now clients of DeclStmt must explicitly reason about a DeclStmt referring to a collection of Decls.

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

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

==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Mon Oct  6 17:51:42 2008
@@ -152,10 +152,7 @@
   // hasSolitaryDecl - This method returns true if this DeclStmt refers
   // to a single Decl.
   bool hasSolitaryDecl() const;
-  
-  const ScopedDecl *getDecl() const { return TheDecl; }
-  ScopedDecl *getDecl() { return TheDecl; }
-  
+ 
   const ScopedDecl* getSolitaryDecl() const {
     assert (hasSolitaryDecl() &&
             "Caller assumes this DeclStmt points to one Decl*");





More information about the cfe-commits mailing list