summaryrefslogtreecommitdiffstats
path: root/.clang-tidy
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 /.clang-tidy
parent894ff96c06e2598f88795458b70443b60cf4758a (diff)
downloadCMake-d0c3e47d806ea3a25be2e7d190e479a6ccd8faa0.zip
CMake-d0c3e47d806ea3a25be2e7d190e479a6ccd8faa0.tar.gz
CMake-d0c3e47d806ea3a25be2e7d190e479a6ccd8faa0.tar.bz2
clang-tidy: add option CMake_RUN_CLANG_TIDY
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy30
1 files changed, 30 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 0000000..a9d121a
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,30 @@
+---
+Checks: "-*,\
+misc-*,\
+-misc-incorrect-roundings,\
+-misc-macro-parentheses,\
+-misc-misplaced-widening-cast,\
+-misc-static-assert,\
+modernize-make-shared,\
+modernize-make-unique,\
+modernize-redundant-void-arg,\
+modernize-use-bool-literals,\
+modernize-use-nullptr,\
+modernize-use-override,\
+performance-*,\
+-performance-inefficient-string-concatenation,\
+readability-*,\
+-readability-function-size,\
+-readability-identifier-naming,\
+-readability-implicit-bool-cast,\
+-readability-inconsistent-declaration-parameter-name,\
+-readability-named-parameter,\
+-readability-redundant-declaration,\
+-readability-redundant-member-init,\
+-readability-simplify-boolean-expr,\
+"
+HeaderFilterRegex: 'Source/cm[^/]*\.(h|hxx|cxx)$'
+CheckOptions:
+ - key: modernize-use-nullptr.NullMacros
+ value: 'CM_NULLPTR'
+...