summaryrefslogtreecommitdiffhomepage
path: root/.clang-tidy
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-07-13 16:20:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-07-13 16:20:30 +0200
commit68f5f213bf0cbd0bd60a6849bf4379113ea06282 (patch)
tree7906520ed59fe4ef7c03de91d55f4f74b87e4072 /.clang-tidy
parentdb47f9fc711f9b0abeb8461042c40c70d5a71021 (diff)
appease analyzer
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy30
1 files changed, 29 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 3b222fa9..803a54a4 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -3,6 +3,9 @@ Checks:
clang-analyzer-*,clang-diagnostic-*,
cppcoreguidelines-*,performance-*,bugprone-*,
readability-*,misc-*,hicpp-*,cert-*,modernize-*,
+ -clang-diagnostic-nonportable-include-path,
+ -clang-analyzer-deadcode-DeadStores,
+ -clang-analyze-core.CallAndMessage,
-cppcoreguidelines-special-member-functions,-hicpp-special-member-functions,
-hicpp-braces-around-statements,-readability-braces-around-statements,
-hicpp-use-equals-default -modernize-use-equals-default,
@@ -34,6 +37,31 @@ Checks:
-hicpp-function-size,
-cppcoreguidelines-pro-type-static-cast-downcast,
-hicpp-use-override,
+ -hicpp-use-equals-delete,
+ -readability-static-accessed-through-instance,
+ -cert-flp30-c,
AnalyzeTemporaryDtors: true
-HeaderFilterRegex: '/dev/opentrack'
+#HeaderFilterRegex: '/dev/opentrack'
+
+CheckOptions:
+ - key: cert-dcl59-cpp.HeaderFileExtensions
+ value: ',h,hpp'
+ - key: cppcoreguidelines-pro-type-member-init.IgnoreArrays
+ value: '1'
+ - key: readability-simplify-boolean-expr.ChainedConditionalAssignment
+ value: '1'
+ - key: readability-simplify-boolean-expr.ChainedConditionalReturn
+ value: '1'
+ - key: readability-function-size.BranchThreshold
+ value: '15'
+ - key: readability-function-size.LineThreshold
+ value: '120'
+ - key: readability-function-size.NestingThreshold
+ value: '6'
+ - key: readability-function-size.ParameterThreshold
+ value: '8'
+ - key: readability-function-size.StatementThreshold
+ value: '90'
+ - key: readability-function-size.VariableThreshold
+ value: '10'