]> granicus.if.org Git - clang/commitdiff
Remove unused parameter BugReporter due to previous patch.
authorZhongxing Xu <xuzhongxing@gmail.com>
Tue, 18 Aug 2009 08:58:41 +0000 (08:58 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Tue, 18 Aug 2009 08:58:41 +0000 (08:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79328 91177308-0d34-0410-b5e6-96231b3b80d8

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

index 19d9ccd6aa93f4b8ed3d36dc36ec8ba45890b6c8..519df66c2c81e3af875dd6de4096eb504f050c83 100644 (file)
@@ -125,8 +125,7 @@ public:
   virtual SourceLocation getLocation() const;
   
   /// getRanges - Returns the source ranges associated with this bug.
-  virtual void getRanges(BugReporter& BR,const SourceRange*& beg,
-                         const SourceRange*& end);
+  virtual void getRanges(const SourceRange*& beg, const SourceRange*& end);
 
   virtual PathDiagnosticPiece* VisitNode(const ExplodedNode* N,
                                          const ExplodedNode* PrevN,
@@ -230,8 +229,7 @@ public:
   void addRange(SourceRange R) { Ranges.push_back(R); }
   
   // FIXME: Move this out of line.
-  void getRanges(BugReporter& BR,const SourceRange*& beg,
-                 const SourceRange*& end) {
+  void getRanges(const SourceRange*& beg, const SourceRange*& end) {
     
     if (Ranges.empty()) {
       beg = NULL;
index 745e90c38e2a8671fbf2e95f444106d3afb9b471..2e2665c1738af8409074037e1889f73e03de550a 100644 (file)
@@ -1231,7 +1231,7 @@ BugReport::getEndPath(BugReporterContext& BRC,
     return NULL;
 
   const SourceRange *Beg, *End;
-  getRanges(BRC.getBugReporter(), Beg, End);  
+  getRanges(Beg, End);  
   PathDiagnosticLocation L(S, BRC.getSourceManager());
   
   // Only add the statement itself as a range if we didn't specify any
@@ -1245,9 +1245,7 @@ BugReport::getEndPath(BugReporterContext& BRC,
   return P;
 }
 
-void BugReport::getRanges(BugReporter& BR, const SourceRange*& beg,
-                          const SourceRange*& end) {  
-  
+void BugReport::getRanges(const SourceRange*& beg, const SourceRange*& end) {  
   if (const Expr* E = dyn_cast_or_null<Expr>(getStmt())) {
     R = E->getSourceRange();
     assert(R.isValid());
@@ -1657,7 +1655,7 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) {
 
   // Emit a summary diagnostic to the regular Diagnostics engine.
   const SourceRange *Beg = 0, *End = 0;
-  R.getRanges(*this, Beg, End);    
+  R.getRanges(Beg, End);    
   Diagnostic& Diag = getDiagnostic();
   FullSourceLoc L(R.getLocation(), getSourceManager());  
   unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning,
index 683be27cb201b297a9b117c511fd9142f4e1157d..c441e0e2420c3bc161df9cfb3a4844dcd62f5089 100644 (file)
@@ -2140,11 +2140,9 @@ namespace {
       return (const CFRefBug&) RangedBugReport::getBugType();
     }
     
-    virtual void getRanges(BugReporter& BR, const SourceRange*& beg,           
-                           const SourceRange*& end) {
-      
+    virtual void getRanges(const SourceRange*& beg, const SourceRange*& end) {
       if (!getBugType().isLeak())
-        RangedBugReport::getRanges(BR, beg, end);
+        RangedBugReport::getRanges(beg, end);
       else
         beg = end = 0;
     }