1 // Check that we get the right file dependencies and not the declared paths from
5 // RUN: split-file %s %t
6 // RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
8 // RUN: clang-scan-deps -compilation-database %t/cdb.json \
9 // RUN: -mode preprocess-dependency-directives -format experimental-full > %t/deps.json
11 // RUN: cat %t/deps.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t
13 // CHECK: "file-deps": [
14 // CHECK-NEXT: "[[PREFIX]]/tu.c"
15 // CHECK-NEXT: "[[PREFIX]]/header.h"
18 //--- cdb.json.template
22 "command": "clang -fsyntax-only DIR/tu.c"