aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-04 01:13:22 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-04 01:13:22 +0000
commit15676bec6fa9ad9466d93c163f2d1b8a3f559b3a (patch)
treea1c0a23a101015d9830761a504aab126e116799d /include
parente644ed5308ab22e4bcb5f821fe7ea9dae324a0a8 (diff)
[analyzer;alternate edges] start experimenting with control flow "barriers" to prevent an edge being optimized away.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
index 499dd01fc5..a80b5a7a24 100644
--- a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
+++ b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h
@@ -304,6 +304,7 @@ public:
const PathDiagnosticLocation &getStart() const { return Start; }
const PathDiagnosticLocation &getEnd() const { return End; }
+ void setStart(const PathDiagnosticLocation &L) { Start = L; }
void setEnd(const PathDiagnosticLocation &L) { End = L; }
void flatten() {
@@ -618,6 +619,10 @@ public:
return LPairs[0].getEnd();
}
+ void setStartLocation(const PathDiagnosticLocation &L) {
+ LPairs[0].setStart(L);
+ }
+
void setEndLocation(const PathDiagnosticLocation &L) {
LPairs[0].setEnd(L);
}