aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-06-05 21:50:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-06-05 21:50:03 +0530
commitdee5e5a8e9c821c10897b179eb8bdf3334a84fc4 (patch)
tree7f069f7cb832c9973927d0e1365d70b912157046 /src
parent8d1916e25b85fd602121d76da75db21f917a089f (diff)
downloadnnn-dee5e5a8e9c821c10897b179eb8bdf3334a84fc4.tar.gz
Move clang-tidy config
Diffstat (limited to 'src')
-rw-r--r--src/.clang-tidy15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy
new file mode 100644
index 0000000..885adc7
--- /dev/null
+++ b/src/.clang-tidy
@@ -0,0 +1,15 @@
+---
+Checks: 'clang-diagnostic-*,clang-analyzer-*,readability-*,modernize-*,bugprone-*,misc-*,-misc-unused-parameters,google-runtime-int,-llvm-header-guard,fuchsia-restrict-system-includes,-clang-analyzer-valist.Uninitialized,-clang-analyzer-security.insecureAPI.rand,-clang-analyzer-alpha.*,-readability-magic-numbers,-readability-braces-around-statements,-readability-isolate-declaration,-bugprone-narrowing-conversions'
+WarningsAsErrors: '*'
+HeaderFilterRegex: '.*(?<!lookup3.c)$'
+FormatStyle: 'file'
+CheckOptions:
+ - key: readability-braces-around-statements.ShortStatementLines
+ value: '1'
+ - key: google-runtime-int.TypeSufix
+ value: '_t'
+ - key: fuchsia-restrict-system-includes.Includes
+ value: '*,-stdint.h,-stdbool.h'
+ - key: readability-function-size.StatementThreshold
+ value: '850'
+...