aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/PathDiagnostic.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-12 18:41:53 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-12 18:41:53 +0000
commit082cb8d7bd9bdb3fe58e8e1a2897c79c4ebcc3a7 (patch)
tree5437012baee847186f4e2fc0baa4d51e51c98546 /lib/Analysis/PathDiagnostic.cpp
parent2fe63e6adac0b9e5f52bcc3100b545e379417e6e (diff)
PathDiagnostics:
- PathDiagnosticControlFlowPiece now consists of a "start" and "end" location to indicating the branch location and where the branch goes. BugReporter: - Updated BugReporter to construct PathDiagnosticControlFlowPiece objects with "end" locations. PlistDiagnostics: - Plists now contain the bug "type" (not just bug "category") - Plists now encode control-flow pieces differently than events; now the "start" and "end" locations are recorded git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/PathDiagnostic.cpp')
-rw-r--r--lib/Analysis/PathDiagnostic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Analysis/PathDiagnostic.cpp b/lib/Analysis/PathDiagnostic.cpp
index a504e80b59..86b113cf87 100644
--- a/lib/Analysis/PathDiagnostic.cpp
+++ b/lib/Analysis/PathDiagnostic.cpp
@@ -65,6 +65,13 @@ PathDiagnosticPiece::PathDiagnosticPiece(FullSourceLoc pos,
"PathDiagnosticPiece's must have a valid location.");
}
+PathDiagnosticPiece::PathDiagnosticPiece(FullSourceLoc pos, Kind k,
+ DisplayHint hint)
+ : Pos(pos), kind(k), Hint(hint) {
+ assert(Pos.isValid() &&
+ "PathDiagnosticPiece's must have a valid location.");
+}
+
PathDiagnosticPiece::~PathDiagnosticPiece() {}
PathDiagnosticEventPiece::~PathDiagnosticEventPiece() {}
PathDiagnosticControlFlowPiece::~PathDiagnosticControlFlowPiece() {}