1 // Check that the scanner can handle a response file input.
4 // RUN: split-file %s %t
5 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
7 // RUN: clang-scan-deps -format experimental-full -compilation-database %t/cdb.json > %t/deps.json
9 // RUN: cat %t/deps.json | sed 's:\\\\\?:/:g' | FileCheck -DPREFIX=%/t %s
11 // CHECK: "command-line": [
12 // CHECK: "-fsyntax-only"
17 // CHECK-NEXT: "include"
19 // CHECK: "file-deps": [
20 // CHECK-NEXT: "[[PREFIX]]/tu.c"
21 // CHECK-NEXT: "[[PREFIX]]/include/header.h"
24 //--- cdb.json.template
28 "command": "clang @DIR/args.txt"
38 //--- include/header.h