[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / clang / test / Tooling / clang-check-pwd.cpp
blob2e8d4a3fe12b63a1c90059d51768b3018d26d5ea
1 // RUN: rm -rf %t
2 // RUN: mkdir %t
3 // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/test.cpp\",\"file\":\"%t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
4 // RUN: cp "%s" "%t/test.cpp"
5 // RUN: ln -sf %t %t.foobar
6 // RUN: cd %t
7 // RUN: env PWD="%t.foobar" not clang-check -p "%t" "test.cpp" 2>&1|FileCheck %s
8 // FIXME: Make the above easier.
10 // CHECK: a type specifier is required
11 // CHECK: .foobar/test.cpp
12 invalid;
14 // REQUIRES: shell