auto-detect-from-source.cpp revision e265c877934dd24d11d85e991ede7d0742178495
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: clang-check "%t/test.cpp" 2>&1 | FileCheck %s 6 7// CHECK: C++ requires 8invalid; 9 10// REQUIRES: shell 11