commit | ed7948b55fa4b2505f240cc5287137f451172b4c | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu May 31 06:03:17 2012 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu May 31 06:03:17 2012 +0000 |
tree | c1675debd05a3a43c8e8fcfeb9149ea4226039e3 | |
parent | 3c0bc15afbcbbf6942a64798ba8a23bb8d9a77d9 [diff] [blame] |
Allow some BugReports to opt-out of PathDiagnostic callstack pruning until we have significantly improved the pruning heuristics. The current heuristics are pretty good, but they make diagnostics for uninitialized variables warnings particularly useless in some cases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157734 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp b/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp index 78f7fa6..7b1081f 100644 --- a/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/UndefinedAssignmentChecker.cpp
@@ -80,6 +80,7 @@ R->addRange(ex->getSourceRange()); R->addVisitor(bugreporter::getTrackNullOrUndefValueVisitor(N, ex, R)); } + R->disablePathPruning(); C.EmitReport(R); }