diff options
author | Brad King <brad.king@kitware.com> | 2017-10-27 12:31:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-27 13:26:50 (GMT) |
commit | 992962c76dd472fa9d122231c89d8d11aedd3288 (patch) | |
tree | de761b94f411e05bba39e27f188f4a9087e13da2 /Tests/RunCMake/MultiLint/C.cmake | |
parent | a5197eeac7a28046729c40067ee02cd7e3e8e01b (diff) | |
download | CMake-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.cmake | 6 |
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) |