aboutsummaryrefslogtreecommitdiff
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
commit774dfbb046c5087a3b82790833d0604bf4c3be6c (patch)
tree44e2dc54d23fd3f99ed260e4a92d454e78de3243
parenta599ae8826b01c0160a519b0fc5a4871f599bf04 (diff)
Also show notes about the taken path in TextPathDiagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120783 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Checker/TextPathDiagnostics.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Checker/TextPathDiagnostics.cpp b/lib/Checker/TextPathDiagnostics.cpp
index 83ff7a4409..0ed03e426d 100644
--- a/lib/Checker/TextPathDiagnostics.cpp
+++ b/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);
}
}