[PATCH] D150689: [clang][DependencyScanner] Remove all warning flags when suppressing warnings
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 16 10:06:36 PDT 2023
jansvoboda11 added inline comments.
================
Comment at: clang/test/ClangScanDeps/optimize-system-warnings.m:19
+// CHECK: ],
+// CHECK-NEXT: "name": "A"
+// CHECK-NEXT: },
----------------
I'd like to see a check line that would fail if the scanner reports another variant of module `A`. The `CHECK:` lines make it possible for FileCheck to skip an entire element in the modules array. (Structural matching on JSON in FileCheck would be a godsend.)
================
Comment at: clang/test/ClangScanDeps/optimize-system-warnings.m:30
+// CHECK: ],
+// CHECK-NEXT: "name": "B"
+// CHECK-NEXT: }
----------------
I'd expect the scanner to still produce two variants of module `B`, since it's a user module. Is that correct? If so, let's add explicit check for it, since we intentionally want to preserve the warning flags there.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150689/new/
https://reviews.llvm.org/D150689
More information about the cfe-commits
mailing list