From: Artem Dergachev Date: Thu, 20 Jun 2019 22:29:40 +0000 (+0000) Subject: [analyzer] DeadStores: Update the crude suppression for files generated by IIG. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=183488f9c882853a130252b9b16004d6fe523fd6;p=clang [analyzer] DeadStores: Update the crude suppression for files generated by IIG. They changed the comments that we were looking for. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363995 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp b/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp index b6fa47e469..d5baa2bcba 100644 --- a/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp @@ -174,7 +174,7 @@ public: // Files autogenerated by DriverKit IIG contain some dead stores that // we don't want to report. - if (Data.startswith("/* iig generated from")) + if (Data.startswith("/* iig")) return true; return false; diff --git a/test/Analysis/deadstores-driverkit.cpp b/test/Analysis/deadstores-driverkit.cpp index 446821b32c..0885367b1b 100644 --- a/test/Analysis/deadstores-driverkit.cpp +++ b/test/Analysis/deadstores-driverkit.cpp @@ -1,4 +1,4 @@ -/* iig generated from SomethingSomething.iig */ +/* iig(DriverKit-60) generated from SomethingSomething.iig */ // The comment above is the whole point of the test. // That's how the suppression works.