Index: lib/StaticAnalyzer/Core/BugReporter.cpp =================================================================== --- lib/StaticAnalyzer/Core/BugReporter.cpp +++ lib/StaticAnalyzer/Core/BugReporter.cpp @@ -3251,6 +3251,12 @@ return; } + // Suppress BugReports which originate from system headers (located beneath + // an -isystem include path). + if (getSourceManager().isInSystemHeader( + R->getLocation(getSourceManager()).asLocation())) + return; + bool ValidSourceLoc = R->getLocation(getSourceManager()).isValid(); assert(ValidSourceLoc); // If we mess up in a release build, we'd still prefer to just drop the bug