From: Zhongxing Xu Date: Thu, 20 Aug 2009 01:23:34 +0000 (+0000) Subject: Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fafd3834754d2093e0ad7a1c005860fd527ecb7f;p=clang Rename: ProgramPoint::getContext() => ProgramPoint::getLocationContext(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79502 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Analysis/PathSensitive/ExplodedGraph.h b/include/clang/Analysis/PathSensitive/ExplodedGraph.h index 9b6507420b..1a25565c29 100644 --- a/include/clang/Analysis/PathSensitive/ExplodedGraph.h +++ b/include/clang/Analysis/PathSensitive/ExplodedGraph.h @@ -111,7 +111,7 @@ public: ProgramPoint getLocation() const { return Location; } const LocationContext *getLocationContext() const { - return getLocation().getContext(); + return getLocation().getLocationContext(); } const GRState* getState() const { diff --git a/include/clang/Analysis/ProgramPoint.h b/include/clang/Analysis/ProgramPoint.h index cddcefa4e9..f2ff998fd8 100644 --- a/include/clang/Analysis/ProgramPoint.h +++ b/include/clang/Analysis/ProgramPoint.h @@ -73,7 +73,7 @@ protected: public: Kind getKind() const { return K; } - const LocationContext *getContext() const { return L; } + const LocationContext *getLocationContext() const { return L; } // For use with DenseMap. This hash is probably slow. unsigned getHashValue() const { diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 62313c67b6..1a77ecb55f 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -1213,7 +1213,7 @@ const Stmt* BugReport::getStmt() const { const Stmt *S = NULL; if (BlockEntrance* BE = dyn_cast(&ProgP)) { - CFGBlock &Exit = ProgP.getContext()->getCFG()->getExit(); + CFGBlock &Exit = ProgP.getLocationContext()->getCFG()->getExit(); if (BE->getBlock() == &Exit) S = GetPreviousStmt(EndNode); }