1// RUN: rm -rf %t 2// RUN: split-file %s %t 3// RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.in > %t/cdb.json 4 5// RUN: clang-scan-deps -compilation-database %t/cdb.json -v -o %t/result.json 2>&1 | FileCheck %s 6// CHECK: *** Virtual File System Stats: 7// CHECK-NEXT: {{[[:digit:]]+}} status() calls 8// CHECK-NEXT: {{[[:digit:]]+}} openFileForRead() calls 9// CHECK-NEXT: {{[[:digit:]]+}} dir_begin() calls 10// CHECK-NEXT: {{[[:digit:]]+}} getRealPath() calls 11// CHECK-NEXT: {{[[:digit:]]+}} exists() calls 12// CHECK-NEXT: {{[[:digit:]]+}} isLocal() calls 13 14//--- tu.c 15 16//--- cdb.json.in 17[ 18 { 19 "file": "DIR/tu.c" 20 "directory": "DIR", 21 "command": "clang -c DIR/tu.c -o DIR/tu.o" 22 }, 23 { 24 "file": "DIR/tu.c" 25 "directory": "DIR", 26 "command": "clang -c DIR/tu.c -o DIR/tu.o" 27 } 28] 29