From 342e907d72c1644ca294115dabd5ed8e852bc4ed Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 20 Dec 2010 21:22:47 +0000 Subject: Rename 'VisitLocation' to 'visitLocation'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122271 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Checker/ArrayBoundChecker.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'lib/Checker/ArrayBoundChecker.cpp') 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 { 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) -- cgit v1.2.3-18-g5258