summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-04-29 23:12:59 +0000
committerTed Kremenek <kremenek@apple.com>2013-04-29 23:12:59 +0000
commiteba09facffee3682fa634c72f7086082f3896f9c (patch)
treecd74186428f19d4dee82ac65531708c8e18ce7c9 /clang/lib/StaticAnalyzer/Core/TextPathDiagnostics.cpp
parentf0499ba991c4d51e709632c4600da97929341cff (diff)
downloadbcm5719-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.cpp6
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);
}
}
}
OpenPOWER on IntegriCloud