diff options
| author | Ted Kremenek <kremenek@apple.com> | 2013-05-07 21:11:54 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2013-05-07 21:11:54 +0000 |
| commit | 3a865221c7b4d5d380399df08ae061081420bc50 (patch) | |
| tree | cd9734b726d5faf7d3a15c216cdf991931cf0cac /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
| parent | f3510071f30e63586adb55d8c96a07c37ed4a29f (diff) | |
| download | bcm5719-llvm-3a865221c7b4d5d380399df08ae061081420bc50.tar.gz bcm5719-llvm-3a865221c7b4d5d380399df08ae061081420bc50.zip | |
[analyzer; alternate arrows] include an edge from the "break" or "continue"
llvm-svn: 181358
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index 225b913f813..a74acca0605 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1769,6 +1769,11 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD, PD.getActivePath().push_front(PE); } } + else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) || + isa<GotoStmt>(Term)) { + PathDiagnosticLocation L(Term, SM, PDB.LC); + addEdgeToPath(PD.getActivePath(), PrevLoc, L, LC); + } } break; } |

