diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/AST/ParentMap.h | 7 | ||||
-rw-r--r-- | include/clang/Analysis/PathSensitive/GRExprEngine.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/clang/AST/ParentMap.h b/include/clang/AST/ParentMap.h index 94890e3feb..199a360ca0 100644 --- a/include/clang/AST/ParentMap.h +++ b/include/clang/AST/ParentMap.h @@ -16,6 +16,7 @@ namespace clang { class Stmt; +class Expr; class ParentMap { void* Impl; @@ -32,6 +33,12 @@ public: bool hasParent(Stmt* S) const { return getParent(S) != 0; } + + bool isConsumedExpr(Expr *E) const; + + bool isConsumedExpr(const Expr *E) const { + return isConsumedExpr(const_cast<Expr*>(E)); + } }; } // end clang namespace diff --git a/include/clang/Analysis/PathSensitive/GRExprEngine.h b/include/clang/Analysis/PathSensitive/GRExprEngine.h index 1dee5d267a..f53a9abaad 100644 --- a/include/clang/Analysis/PathSensitive/GRExprEngine.h +++ b/include/clang/Analysis/PathSensitive/GRExprEngine.h @@ -98,7 +98,7 @@ protected: // to lazily evaluate such logic. The downside is that it eagerly // bifurcates paths. const bool EagerlyAssume; - + public: typedef llvm::SmallPtrSet<NodeTy*,2> ErrorNodes; typedef llvm::DenseMap<NodeTy*, Expr*> UndefArgsTy; |