1 // RUN: rm -rf %t.dir 2 // RUN: rm -rf %t.dir/foodir 3 // RUN: rm -rf %t.cdb 4 5 // RUN: mkdir -p %t.dir 6 // RUN: mkdir -p %t.dir/foodir 7 8 // RUN: cp %S/Inputs/header.h %t.dir/foodir/foodirheader.h 9 // RUN: cp %s %t.dir/headerwithdirname_input.cpp 10 // RUN: mkdir %t.dir/Inputs 11 // RUN: cp %S/Inputs/foodir %t.dir/Inputs/foodir 12 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/headerwithdirnamefollowedbyinclude.json > %t.cdb 13 // 14 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck %s 15 16 #include <foodir> 17 #include "foodir/foodirheader.h" 18 19 // CHECK: headerwithdirname_input.o 20 // CHECK-NEXT: headerwithdirname_input.cpp 21 // CHECK-NEXT: Inputs{{/|\\}}foodir 22