r363995 - [analyzer] DeadStores: Update the crude suppression for files generated by IIG.
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 20 15:29:40 PDT 2019
Author: dergachev
Date: Thu Jun 20 15:29:40 2019
New Revision: 363995
URL: http://llvm.org/viewvc/llvm-project?rev=363995&view=rev
Log:
[analyzer] DeadStores: Update the crude suppression for files generated by IIG.
They changed the comments that we were looking for.
Modified:
cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
cfe/trunk/test/Analysis/deadstores-driverkit.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp?rev=363995&r1=363994&r2=363995&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp Thu Jun 20 15:29:40 2019
@@ -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;
Modified: cfe/trunk/test/Analysis/deadstores-driverkit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/deadstores-driverkit.cpp?rev=363995&r1=363994&r2=363995&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/deadstores-driverkit.cpp (original)
+++ cfe/trunk/test/Analysis/deadstores-driverkit.cpp Thu Jun 20 15:29:40 2019
@@ -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.
More information about the cfe-commits
mailing list