2 // RUN: split-file %s %t
3 // RUN: sed -e "s|DIR|%/t|g" %t/cdb1.json.template > %t/cdb1.json
5 // RUN: clang-scan-deps -compilation-database %t/cdb1.json -format experimental-full -mode preprocess-dependency-directives > %t/result1.txt
7 // RUN: FileCheck %s -input-file %t/result1.txt
9 // Verify that secondary actions get stripped, and that there's a single version
12 // CHECK: "modules": [
14 // CHECK: "command-line": [
15 // CHECK-NOT: "-arcmt-action=check"
16 // CHECK-NOT: "-objcmt-migrate-literals"
17 // CHECK-NOT: "-mt-migrate-directory"
21 // CHECK-NOT: "name": "A"
22 // CHECK: "translation-units"
24 //--- cdb1.json.template
28 "command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fimplicit-module-maps -ccc-arcmt-check -fsyntax-only DIR/t1.m",
33 "command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fimplicit-module-maps -ccc-objcmt-migrate bob -fsyntax-only DIR/t2.m",
38 //--- modules/A/module.modulemap