[clang] [clang][modules] Strip LLVM options (PR #75405)

Juergen Ributzka via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 16:19:20 PST 2023


================
@@ -0,0 +1,49 @@
+// RUN: rm -rf %t
+// RUN: split-file %s %t
+// RUN: sed -e "s|DIR|%/t|g" %t/cdb1.json.template > %t/cdb1.json
+
+// RUN: clang-scan-deps -compilation-database %t/cdb1.json -format experimental-full > %t/result1.txt
+// RUN: FileCheck %s -input-file %t/result1.txt
+
+// Verify that secondary actions get stripped, and that there's a single version
+// of module A.
+
+// CHECK:        "modules": [
+// CHECK-NEXT:     {
+// CHECK:            "command-line": [
+// CHECK-NOT:          "-treat-scalable-fixed-error-as-warning"
----------------
ributzka wrote:

Updated the test to check for `-mllvm` instead.

https://github.com/llvm/llvm-project/pull/75405


More information about the cfe-commits mailing list