aboutsummaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy18
1 files changed, 18 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy
new file mode 100644
index 00000000..3ad11404
--- /dev/null
+++ b/.clang-tidy
@@ -0,0 +1,18 @@
+---
+# Enable all modernize checks, but explicitly exclude trailing return types
+Checks: >
+ -*,
+ modernize-*,
+ google-readability-casting,
+ cppcoreguidelines-pro-type-cstyle-cast,
+ -modernize-use-trailing-return-type
+
+# Pass the C++14 flag to the internal Clang compiler
+ExtraArgs: ['-std=c++14']
+
+CheckOptions:
+ - key: modernize-loop-convert.MinConfidence
+ value: reasonable
+ - key: modernize-use-auto.MinTypeNameLength
+ value: 5
+...