summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-02 21:49:17 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2017-05-04 15:39:23 (GMT)
commitd0c3e47d806ea3a25be2e7d190e479a6ccd8faa0 (patch)
tree2ad963e10da0e6410c677609541b27cc66d8a693 /Utilities
parent894ff96c06e2598f88795458b70443b60cf4758a (diff)
downloadCMake-d0c3e47d806ea3a25be2e7d190e479a6ccd8faa0.zip
CMake-d0c3e47d806ea3a25be2e7d190e479a6ccd8faa0.tar.gz
CMake-d0c3e47d806ea3a25be2e7d190e479a6ccd8faa0.tar.bz2
clang-tidy: add option CMake_RUN_CLANG_TIDY
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/.clang-tidy6
-rw-r--r--Utilities/CMakeLists.txt3
2 files changed, 9 insertions, 0 deletions
diff --git a/Utilities/.clang-tidy b/Utilities/.clang-tidy
new file mode 100644
index 0000000..381a0f4
--- /dev/null
+++ b/Utilities/.clang-tidy
@@ -0,0 +1,6 @@
+---
+# We want to disable all checks for 3rd party code. However, clang-tidy will
+# assume we did not configure it correctly. Just add one check that will never
+# be found.
+Checks: '-*,llvm-twine-local'
+...
diff --git a/Utilities/CMakeLists.txt b/Utilities/CMakeLists.txt
index 014204b..0564540 100644
--- a/Utilities/CMakeLists.txt
+++ b/Utilities/CMakeLists.txt
@@ -29,3 +29,6 @@ endif()
if(WIX_CUSTOM_ACTION_ENABLED)
add_subdirectory(Release/WiX)
endif()
+
+# Make sure generated files use the same clang-tidy checks (none).
+configure_file(.clang-tidy .clang-tidy COPYONLY)