]> granicus.if.org Git - clang/commitdiff
[analyzer] DeadStores: Update the crude suppression for files generated by IIG.
authorArtem Dergachev <artem.dergachev@gmail.com>
Thu, 20 Jun 2019 22:29:40 +0000 (22:29 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Thu, 20 Jun 2019 22:29:40 +0000 (22:29 +0000)
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

lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
test/Analysis/deadstores-driverkit.cpp

index b6fa47e469949ee31dde9f73337894d47c76a390..d5baa2bcba6fc79d8fa3a54367f4bd806e0dd439 100644 (file)
@@ -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;
index 446821b32cab9dc3e168ca9cb15c4a250461e1d6..0885367b1b9bf36e140142bcfaed87b21728a6dd 100644 (file)
@@ -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.