summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/TextPathDiagnostics.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-12-03 02:03:26 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-12-03 02:03:26 +0000
commit833be2ddd8783b3404fb34613714674eba39645b (patch)
treefde47e271a5e2bb2cff6c364fcc3dcb4b6fa9523 /clang/lib/Checker/TextPathDiagnostics.cpp
parent36110d5d1a00c8b675bdc98dd00a4fd3411535d5 (diff)
downloadbcm5719-llvm-833be2ddd8783b3404fb34613714674eba39645b.tar.gz
bcm5719-llvm-833be2ddd8783b3404fb34613714674eba39645b.zip
Also show notes about the taken path in TextPathDiagnostics.
llvm-svn: 120783
Diffstat (limited to 'clang/lib/Checker/TextPathDiagnostics.cpp')
-rw-r--r--clang/lib/Checker/TextPathDiagnostics.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/lib/Checker/TextPathDiagnostics.cpp b/clang/lib/Checker/TextPathDiagnostics.cpp
index 83ff7a4409b..0ed03e426d5 100644
--- a/clang/lib/Checker/TextPathDiagnostics.cpp
+++ b/clang/lib/Checker/TextPathDiagnostics.cpp
@@ -38,7 +38,7 @@ public:
return "TextPathDiagnostics";
}
- PathGenerationScheme getGenerationScheme() const { return Extensive; }
+ PathGenerationScheme getGenerationScheme() const { return Minimal; }
bool supportsLogicalOpControlFlow() const { return true; }
bool supportsAllBlockEdges() const { return true; }
virtual bool useVerboseDescription() const { return true; }
@@ -62,11 +62,8 @@ void TextPathDiagnostics::HandlePathDiagnostic(const PathDiagnostic* D) {
}
for (PathDiagnostic::const_iterator I=D->begin(), E=D->end(); I != E; ++I) {
- if (isa<PathDiagnosticEventPiece>(*I)) {
- PathDiagnosticEventPiece &event = cast<PathDiagnosticEventPiece>(*I);
- unsigned diagID = Diag.getDiagnosticIDs()->getCustomDiagID(
- DiagnosticIDs::Note, event.getString());
- Diag.Report(event.getLocation().asLocation(), diagID);
- }
+ unsigned diagID = Diag.getDiagnosticIDs()->getCustomDiagID(
+ DiagnosticIDs::Note, I->getString());
+ Diag.Report(I->getLocation().asLocation(), diagID);
}
}
OpenPOWER on IntegriCloud