summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ClangTidy/compdb.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ClangTidy/compdb.cmake')
-rw-r--r--Tests/RunCMake/ClangTidy/compdb.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/ClangTidy/compdb.cmake b/Tests/RunCMake/ClangTidy/compdb.cmake
new file mode 100644
index 0000000..f83e0ae
--- /dev/null
+++ b/Tests/RunCMake/ClangTidy/compdb.cmake
@@ -0,0 +1,7 @@
+enable_language(C)
+
+# Include a --checks option to confirm that we don't match options that start
+# with --, only a standalone --
+set(CMAKE_C_CLANG_TIDY "${PSEUDO_TIDY}" -p ${CMAKE_BINARY_DIR} --checks=*)
+
+add_executable(main main.c)