]> granicus.if.org Git - clang/commitdiff
[analyzer] Clarify that r187624 is a hack and should be fixed better later.
authorJordan Rose <jordan_rose@apple.com>
Mon, 5 Aug 2013 16:02:02 +0000 (16:02 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 5 Aug 2013 16:02:02 +0000 (16:02 +0000)
Tracked by <rdar://problem/14648821>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187729 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index aaa8c8d0ca040f02d37083f5ad7a035b9cca1af7..2123a4518114ff5610c261c40fc5bb0a61a742be 100644 (file)
@@ -3205,6 +3205,9 @@ void BugReporter::emitReport(BugReport* R) {
   // Defensive checking: throw the bug away if it comes from a BodyFarm-
   // generated body. We do this very early because report processing relies
   // on the report's location being valid.
+  // FIXME: Valid bugs can occur in BodyFarm-generated bodies, so really we
+  // need to just find a reasonable location like we do later on with the path
+  // pieces.
   if (const ExplodedNode *E = R->getErrorNode()) {
     const LocationContext *LCtx = E->getLocationContext();
     if (LCtx->getAnalysisDeclContext()->isBodyAutosynthesized())