brintos

brintos / llvm-project-archived public Read only

0
0
Text · 879 B · 5f6196c Raw
28 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4// RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json5// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full -module-names=direct > %t/result1.json6// RUN: rm -rf %t/cache7// RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full -module-names=transitive > %t/result2.json8// RUN: %deps-to-rsp %t/result1.json --module-name transitive > %t/1.rsp9// RUN: %deps-to-rsp %t/result2.json --module-name transitive > %t/2.rsp10// RUN: diff %t/1.rsp %t/2.rsp11 12//--- module.modulemap13module direct [system] { header "direct.h" }14module transitive { header "transitive.h" }15 16//--- direct.h17#include "transitive.h"18 19//--- transitive.h20// empty21 22//--- cdb.json.template23[{24  "file": "",25  "directory": "DIR",26  "command": "clang -fmodules -fmodules-cache-path=DIR/cache -I DIR -x c"27}]28