Debian Codegraph @

clang/test/Tooling/auto-detect-from-source-parent-of-cwd.cpp

raw
1 // REQUIRES: symlinks
2
3 // RUN: rm -rf %t
4 // RUN: mkdir -p %t/abc/def/ijk/qwe
5 // RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -c %t/abc/def/ijk/qwe/test.cpp\",\"file\":\"%t/abc/def/ijk/qwe/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json
6 // RUN: cp "%s" "%t/abc/def/ijk/qwe/test.cpp"
7 // RUN: ln -sf %t/abc/def %t/abc/def2
8 // RUN: cd %t/abc/def2
9 // RUN: env PWD="%t/abc/def" not clang-check "ijk/qwe/test.cpp" 2>&1 | FileCheck %s
10
11 // CHECK: a type specifier is required
12 // CHECK: /abc/def/ijk/qwe/test.cpp
13 invalid;