non-header-dependency.cpp 499 B

1234567891011121314
  1. // RUN: rm -rf %t.dir
  2. // RUN: rm -rf %t.cdb
  3. // RUN: mkdir -p %t.dir
  4. // RUN: cp %s %t.dir/non-header-dependency_input.cpp
  5. // RUN: mkdir %t.dir/Inputs
  6. // RUN: cp %S/Inputs/sanitize-blacklist.txt %t.dir/Inputs/sanitize-blacklist.txt
  7. // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/non-header-dependency.json > %t.cdb
  8. //
  9. // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s
  10. #define FOO "foo"
  11. // CHECK: Inputs{{/|\\}}sanitize-blacklist.txt
  12. // CHECK-NEXT: non-header-dependency_input.cpp