[cfe-commits] r120783 - /cfe/trunk/lib/Checker/TextPathDiagnostics.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Dec 2 18:03:26 PST 2010
Author: akirtzidis
Date: Thu Dec 2 20:03:26 2010
New Revision: 120783
URL: http://llvm.org/viewvc/llvm-project?rev=120783&view=rev
Log:
Also show notes about the taken path in TextPathDiagnostics.
Modified:
cfe/trunk/lib/Checker/TextPathDiagnostics.cpp
Modified: cfe/trunk/lib/Checker/TextPathDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/TextPathDiagnostics.cpp?rev=120783&r1=120782&r2=120783&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/TextPathDiagnostics.cpp (original)
+++ cfe/trunk/lib/Checker/TextPathDiagnostics.cpp Thu Dec 2 20:03:26 2010
@@ -38,7 +38,7 @@
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 @@
}
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);
}
}
More information about the cfe-commits
mailing list