1 // This checks that there's no issue with the preprocessor handling user or built-in macro
2 // expansion during dependency scanning.
5 // RUN: split-file %s %t
6 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
8 // RUN: clang-scan-deps -compilation-database %t/cdb.json | FileCheck %s
11 // CHECK-NEXT: test.cpp
12 // CHECK-NEXT: header1.h
13 // CHECK-NEXT: header2.h
15 //--- cdb.json.template
18 "command" : "clang -target x86_64-apple-macosx10.7 -c DIR/test.cpp -o DIR/test.o",
28 #if __has_cpp_attribute(clang::fallthrough)