brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · ca8eab7 Raw
47 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3// RUN: sed -e "s|DIR|%/t|g" %t/cdb1.json.template > %t/cdb1.json4 5// RUN: clang-scan-deps -compilation-database %t/cdb1.json -format experimental-full > %t/result1.txt6// RUN: FileCheck %s -input-file %t/result1.txt7 8// CHECK:        "modules": [9// CHECK-NEXT:     {10// CHECK:            "command-line": [11// CHECK-NOT:          "-mllvm"12// CHECK:            ]13// CHECK:            "name": "A"14// CHECK:          }15// CHECK-NOT:        "name": "A"16// CHECK:        "translation-units"17 18//--- cdb1.json.template19[20  {21    "directory": "DIR",22    "command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fimplicit-module-maps -fsyntax-only DIR/t1.m",23    "file": "DIR/t1.m"24  },25  {26    "directory": "DIR",27    "command": "clang -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fimplicit-module-maps -mllvm -stackmap-version=2 -fsyntax-only DIR/t2.m",28    "file": "DIR/t2.m"29  }30]31 32//--- modules/A/module.modulemap33 34module A {35  umbrella header "A.h"36}37 38//--- modules/A/A.h39 40typedef int A_t;41 42//--- t1.m43@import A;44 45//--- t2.m46@import A;47