diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-06 22:51:42 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-06 22:51:42 +0000 |
commit | 655137a6c19110620d82d5f03cdcaec3a48c059f (patch) | |
tree | 69f82e77560c67480de1c50dfada7dbd321f29ca | |
parent | ab9bae758342e11a5d6b27e26adffe802394cfd1 (diff) |
Remove DeclStmt::getDecl(). Now clients of DeclStmt must explicitly reason about a DeclStmt referring to a collection of Decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57217 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Stmt.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 210a142123..1111bd31e1 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -152,10 +152,7 @@ public: // 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*"); |