summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/MultiLint/C.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-27 12:31:34 (GMT)
committerBrad King <brad.king@kitware.com>2017-10-27 13:26:50 (GMT)
commit992962c76dd472fa9d122231c89d8d11aedd3288 (patch)
treede761b94f411e05bba39e27f188f4a9087e13da2 /Tests/RunCMake/MultiLint/C.cmake
parenta5197eeac7a28046729c40067ee02cd7e3e8e01b (diff)
downloadCMake-992962c76dd472fa9d122231c89d8d11aedd3288.zip
CMake-992962c76dd472fa9d122231c89d8d11aedd3288.tar.gz
CMake-992962c76dd472fa9d122231c89d8d11aedd3288.tar.bz2
cmcmd: Restore support for running multiple lint tools
Refactoring in commit v3.10.0-rc1~115^2 (Clean up iwyu code to not be one big if statement, 2017-08-28) incorrectly changed the logic to run only one lint tool at a time. Restore support for running all tools specified on the command-line.
Diffstat (limited to 'Tests/RunCMake/MultiLint/C.cmake')
-rw-r--r--Tests/RunCMake/MultiLint/C.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/MultiLint/C.cmake b/Tests/RunCMake/MultiLint/C.cmake
new file mode 100644
index 0000000..495d6f0
--- /dev/null
+++ b/Tests/RunCMake/MultiLint/C.cmake
@@ -0,0 +1,6 @@
+enable_language(C)
+set(CMAKE_C_INCLUDE_WHAT_YOU_USE "${PSEUDO_IWYU}" -some -args)
+set(CMAKE_C_CLANG_TIDY "${PSEUDO_TIDY}" -some -args)
+set(CMAKE_C_CPPLINT "${PSEUDO_CPPLINT}" --verbose=0 --linelength=80)
+set(CMAKE_C_CPPCHECK "${PSEUDO_CPPCHECK}")
+add_executable(main main.c)