diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-04-29 23:12:59 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-04-29 23:12:59 +0000 |
commit | eba09facffee3682fa634c72f7086082f3896f9c (patch) | |
tree | cd74186428f19d4dee82ac65531708c8e18ce7c9 /clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp | |
parent | f0499ba991c4d51e709632c4600da97929341cff (diff) | |
download | bcm5719-llvm-eba09facffee3682fa634c72f7086082f3896f9c.tar.gz bcm5719-llvm-eba09facffee3682fa634c72f7086082f3896f9c.zip |
Revert "[analyzer] Change PathPieces to be a wrapper around an ilist of (through indirection) PathDiagnosticPieces."
Jordan rightly pointed out that we can do the same with std::list.
llvm-svn: 180746
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp index 9ba001eea51..d5706d6dbbe 100644 --- a/clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp @@ -61,12 +61,12 @@ void TextPathDiagnostics::FlushDiagnosticsImpl( const PathDiagnostic *D = *it; PathPieces FlatPath = D->path.flatten(/*ShouldFlattenMacros=*/true); - for (PathPieces::iterator I = FlatPath.begin(), E = FlatPath.end(); + for (PathPieces::const_iterator I = FlatPath.begin(), E = FlatPath.end(); I != E; ++I) { unsigned diagID = Diag.getDiagnosticIDs()->getCustomDiagID(DiagnosticIDs::Note, - I->getString()); - Diag.Report(I->getLocation().asLocation(), diagID); + (*I)->getString()); + Diag.Report((*I)->getLocation().asLocation(), diagID); } } } |