From eca4e6e58170129cbdf105b2cfdb9ac2be61858e Mon Sep 17 00:00:00 2001 From: Anna Zaks Date: Mon, 5 Dec 2011 21:33:06 +0000 Subject: [PATCH] [analyzer] Mark ConstraintManager::canReasonAbout as protected. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145857 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../StaticAnalyzer/Core/PathSensitive/ConstraintManager.h | 1 + lib/StaticAnalyzer/Core/SimpleConstraintManager.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h index 3f58a7cff3..f52ee2dc01 100644 --- a/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h +++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ConstraintManager.h @@ -63,6 +63,7 @@ public: virtual void EndPath(const ProgramState *state) {} +protected: /// canReasonAbout - Not all ConstraintManagers can accurately reason about /// all SVal values. This method returns true if the ConstraintManager can /// reasonably handle a given SVal value. This is typically queried by diff --git a/lib/StaticAnalyzer/Core/SimpleConstraintManager.h b/lib/StaticAnalyzer/Core/SimpleConstraintManager.h index 000af439fd..3d04c6eed0 100644 --- a/lib/StaticAnalyzer/Core/SimpleConstraintManager.h +++ b/lib/StaticAnalyzer/Core/SimpleConstraintManager.h @@ -31,8 +31,6 @@ public: // Common implementation for the interface provided by ConstraintManager. //===------------------------------------------------------------------===// - bool canReasonAbout(SVal X) const; - const ProgramState *assume(const ProgramState *state, DefinedSVal Cond, bool Assumption); @@ -81,6 +79,8 @@ protected: // Internal implementation. //===------------------------------------------------------------------===// + bool canReasonAbout(SVal X) const; + const ProgramState *assumeAux(const ProgramState *state, Loc Cond, bool Assumption); -- 2.50.1