]> granicus.if.org Git - clang/commitdiff
Rename member variable.
authorTed Kremenek <kremenek@apple.com>
Fri, 2 May 2008 23:21:21 +0000 (23:21 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 2 May 2008 23:21:21 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50597 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/BugReporter.h
lib/Analysis/BugReporter.cpp

index 714e8883693f37fd78c8b023eeabc4eab996cbc8..7aefb1c57c324ad19845fbaa65f85c8043bad323 100644 (file)
@@ -63,16 +63,16 @@ public:
   
 class BugReport {
   BugType& Desc;
-  ExplodedNode<ValueState> *N;
+  ExplodedNode<ValueState> *EndNode;
   SourceRange R;  
 public:
-  BugReport(BugType& D, ExplodedNode<ValueState> *n) : Desc(D), N(n) {}
+  BugReport(BugType& D, ExplodedNode<ValueState> *n) : Desc(D), EndNode(n) {}
   virtual ~BugReport();
   
   const BugType& getBugType() const { return Desc; }
   BugType& getBugType() { return Desc; }
   
-  ExplodedNode<ValueState>* getEndNode() const { return N; }
+  ExplodedNode<ValueState>* getEndNode() const { return EndNode; }
   
   Stmt* getStmt(BugReporter& BR) const;
     
index 0ec1a35b681dbdac973dc25a72d89249b4e7c7e8..c907c248c04fb62bbe979ab21ed143a94e20fdf9 100644 (file)
@@ -91,12 +91,12 @@ static void ExecutionContinues(std::ostream& os, SourceManager& SMgr,
 
 Stmt* BugReport::getStmt(BugReporter& BR) const {
   
-  ProgramPoint ProgP = N->getLocation();  
+  ProgramPoint ProgP = EndNode->getLocation();  
   Stmt *S = NULL;
   
   if (BlockEntrance* BE = dyn_cast<BlockEntrance>(&ProgP))
     if (BE->getBlock() == &BR.getCFG().getExit())
-      S = GetLastStmt(N);
+      S = GetLastStmt(EndNode);
   if (!S)
     S = GetStmt(ProgP);  
 
@@ -138,10 +138,10 @@ void BugReport::getRanges(BugReporter& BR, const SourceRange*& beg,
 
 FullSourceLoc BugReport::getLocation(SourceManager& Mgr) {
   
-  if (!N)
+  if (!EndNode)
     return FullSourceLoc();
   
-  Stmt* S = GetStmt(N->getLocation());
+  Stmt* S = GetStmt(EndNode->getLocation());
   
   if (!S)
     return FullSourceLoc();