brintos

brintos / llvm-project-archived public Read only

0
0
Text · 478 B · e6241a9 Raw
13 lines · cpp
1// RUN: rm -rf %t2// RUN: mkdir %t3// RUN: echo "[{\"directory\":\".\",\"command\":\"clang++ -DSECRET=XYZZY -c %/t/test.cpp\",\"file\":\"%/t/test.cpp\"}]" | sed -e 's/\\/\\\\/g' > %t/compile_commands.json4// RUN: cp "%s" "%t/test.cpp"5// RUN: not clang-check "%t/test.cpp" 2>&1 | FileCheck %s6 7// CHECK: XYZZY8SECRET;9 10// Copy to a different file, and rely on the command being inferred.11// RUN: cp "%s" "%t/other.cpp"12// RUN: not clang-check "%t/other.cpp" 2>&1 | FileCheck %s13