aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/ArrayBoundChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-12-20 21:22:47 +0000
committerTed Kremenek <kremenek@apple.com>2010-12-20 21:22:47 +0000
commit342e907d72c1644ca294115dabd5ed8e852bc4ed (patch)
tree4ef7f33d67658c4232bfacf6e138df7a9871f1d6 /lib/Checker/ArrayBoundChecker.cpp
parentd048c6ef5b6cfaa0cecb8cc1d4bdace32ed21d07 (diff)
Rename 'VisitLocation' to 'visitLocation'.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/ArrayBoundChecker.cpp')
-rw-r--r--lib/Checker/ArrayBoundChecker.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/Checker/ArrayBoundChecker.cpp b/lib/Checker/ArrayBoundChecker.cpp
index 78c335cb3e..df21595a41 100644
--- a/lib/Checker/ArrayBoundChecker.cpp
+++ b/lib/Checker/ArrayBoundChecker.cpp
@@ -24,9 +24,9 @@ class ArrayBoundChecker :
public CheckerVisitor<ArrayBoundChecker> {
BuiltinBug *BT;
public:
- ArrayBoundChecker() : BT(0) {}
- static void *getTag();
- void VisitLocation(CheckerContext &C, const Stmt *S, SVal l);
+ ArrayBoundChecker() : BT(0) {}
+ static void *getTag() { static int x = 0; return &x; }
+ void visitLocation(CheckerContext &C, const Stmt *S, SVal l);
};
}
@@ -34,11 +34,7 @@ void clang::RegisterArrayBoundChecker(GRExprEngine &Eng) {
Eng.registerCheck(new ArrayBoundChecker());
}
-void *ArrayBoundChecker::getTag() {
- static int x = 0; return &x;
-}
-
-void ArrayBoundChecker::VisitLocation(CheckerContext &C, const Stmt *S, SVal l){
+void ArrayBoundChecker::visitLocation(CheckerContext &C, const Stmt *S, SVal l){
// Check for out of bound array element access.
const MemRegion *R = l.getAsRegion();
if (!R)