[PATCH] D54311: Add a test checking clang-tidy can find libc++ on Mac
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 12 01:28:50 PST 2018
sammccall added inline comments.
================
Comment at: test/clang-tidy/clang-tidy-mac-libcxx.cpp:11
+// Pretend clang is installed beside the mock library that we provided.
+// RUN: echo '[{"directory":"%t","command":"%t/mock-libcxx/bin/clang++ -stdlib=libc++ -target x86_64-apple-darwin -c test.cpp","file":"test.cpp"}]' | sed -e 's/\\/\//g' > %t/compile_commands.json
+// RUN: cp "%s" "%t/test.cpp"
----------------
should this be `"command":"clang++"...` with clang++ on the PATH?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D54311
More information about the cfe-commits
mailing list