summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BasicObjCFoundationChecks.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-10 22:03:41 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-10 22:03:41 +0000
commita7b8ffb05b056d7a1756970f714c452656af411f (patch)
tree3500cda3ed00dddf3a6fac661cf2b910a26be8e3 /clang/lib/Analysis/BasicObjCFoundationChecks.cpp
parentf50b0a0cbd739f120aa0cfc7b99ac40465b1f733 (diff)
downloadbcm5719-llvm-a7b8ffb05b056d7a1756970f714c452656af411f.tar.gz
bcm5719-llvm-a7b8ffb05b056d7a1756970f714c452656af411f.zip
Refactored most of the "Store" piece of ValueState into a Store type. The
current store implementation is now encapsulated by BasicStore. These changes prompted some long due constification of ValueState. Much of the diffs in this patch include adding "const" qualifiers. llvm-svn: 53423
Diffstat (limited to 'clang/lib/Analysis/BasicObjCFoundationChecks.cpp')
-rw-r--r--clang/lib/Analysis/BasicObjCFoundationChecks.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp
index 1667a21494e..4475ed2bc5b 100644
--- a/clang/lib/Analysis/BasicObjCFoundationChecks.cpp
+++ b/clang/lib/Analysis/BasicObjCFoundationChecks.cpp
@@ -107,7 +107,7 @@ class VISIBILITY_HIDDEN BasicObjCFoundationChecks : public GRSimpleAPICheck {
typedef std::vector<BugReport*> ErrorsTy;
ErrorsTy Errors;
- RVal GetRVal(ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); }
+ RVal GetRVal(const ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); }
bool isNSString(ObjCInterfaceType* T, const char* suffix);
bool AuditNSString(NodeTy* N, ObjCMessageExpr* ME);
@@ -338,8 +338,8 @@ class VISIBILITY_HIDDEN AuditCFNumberCreate : public GRSimpleAPICheck {
IdentifierInfo* II;
ValueStateManager* VMgr;
- RVal GetRVal(ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); }
- RVal GetRVal(ValueState* St, LVal LV) { return VMgr->GetRVal(St, LV); }
+ RVal GetRVal(const ValueState* St, Expr* E) { return VMgr->GetRVal(St, E); }
+ RVal GetRVal(const ValueState* St, LVal LV) { return VMgr->GetRVal(St, LV); }
public:
OpenPOWER on IntegriCloud