diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 01:56:37 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 01:56:37 +0000 |
commit | cffe63569983fbb708585401852e1c228562379d (patch) | |
tree | 2ad5286af0ebff61179ea955506f096ccf3f9ad0 /clang/lib/Analysis/GRSimpleVals.cpp | |
parent | d83bdd38417fce465b8ef1896c6f30ec12c8a979 (diff) | |
download | bcm5719-llvm-cffe63569983fbb708585401852e1c228562379d.tar.gz bcm5719-llvm-cffe63569983fbb708585401852e1c228562379d.zip |
Simplified internal logic of BugReporter, consolidating EmitWarning and
EmitPathWarning into one method. We now properly handle emitting warnings
without a PathDiagnosticClient when the warning does not involve a particular
statement.
llvm-svn: 49884
Diffstat (limited to 'clang/lib/Analysis/GRSimpleVals.cpp')
-rw-r--r-- | clang/lib/Analysis/GRSimpleVals.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Analysis/GRSimpleVals.cpp b/clang/lib/Analysis/GRSimpleVals.cpp index c8805ab7757..ea8762aa0c9 100644 --- a/clang/lib/Analysis/GRSimpleVals.cpp +++ b/clang/lib/Analysis/GRSimpleVals.cpp @@ -45,7 +45,7 @@ void GenericEmitWarnings(BugReporter& BR, const BugType& D, for (; I != E; ++I) { BugReport R(D, GetNode(I)); - BR.EmitPathWarning(R); + BR.EmitWarning(R); } } @@ -182,7 +182,7 @@ public: report.addRange(I->second->getSourceRange()); // Emit the warning. - BR.EmitPathWarning(report); + BR.EmitWarning(report); } } @@ -209,7 +209,7 @@ public: report.addRange(I->second->getSourceRange()); // Emit the warning. - BR.EmitPathWarning(report); + BR.EmitWarning(report); } } }; @@ -240,7 +240,7 @@ public: report.addRange(E->getSourceRange()); // Emit the warning. - BR.EmitPathWarning(report); + BR.EmitWarning(report); } } }; |