diff options
author | kylo252 <59826753+kylo252@users.noreply.github.com> | 2022-10-12 10:49:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-12 10:49:53 +0200 |
commit | d5db93b8aa7d7fa7e9a5aa548725a9f52ac8da89 (patch) | |
tree | 4c5146bbcb44e7c75006d9b01fe5d45bd82635bf | |
parent | f175ca9f7cc29054b1c6fe1fd1076edd78af5684 (diff) | |
download | rneovim-d5db93b8aa7d7fa7e9a5aa548725a9f52ac8da89.tar.gz rneovim-d5db93b8aa7d7fa7e9a5aa548725a9f52ac8da89.tar.bz2 rneovim-d5db93b8aa7d7fa7e9a5aa548725a9f52ac8da89.zip |
build: add clang-tidy configuration file (#15601)
Add a project-style compliant clang-tidy configuration file in the root directory. This configuration will take priority over users own configuration files, so noisy warnings have been removed even though they may be useful, at least for the time being.
-rw-r--r-- | .clang-tidy | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000000..0861df9435 --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,56 @@ +--- + +Checks: > + -*, + bugprone-*, + cert-env33-c, + cert-err34-c, + cert-flp30-c, + cert-msc30-c, + clang-analyzer-*, + clang-diagnostics-*, + google-*, + misc-*, + misc-non-copyable-objects, + misc-static-assert, + performance-*, + portability-*, + readability-*, + -bugprone-assignment-in-if-condition, + -bugprone-branch-clone, + -bugprone-easily-swappable-parameters, + -bugprone-narrowing-conversions, + -bugprone-sizeof-expression, + -bugprone-unused-return-value, + -clang-analyzer-security.insecureAPI.strcpy, + -google-readability-function-size, + -misc-no-recursion, + -misc-unused-parameters, + -performance-no-int-to-ptr, + -readability-else-after-return, + -readability-function-*, + -readability-identifier-length, + -readability-isolate-declaration, + -readability-magic-numbers, + -readability-redundant-function-ptr-dereference, + -readability-suspicious-call-argument, + +CheckOptions: + readability-identifier-naming.ClassMemberCase: lower_case + readability-identifier-naming.ClassMemberSuffix: _ + readability-identifier-naming.FunctionCase: lower_case + readability-identifier-naming.GlobalConstantCase: CamelCase + readability-identifier-naming.GlobalConstantPrefix: k + readability-identifier-naming.MemberConstantCase: CamelCase + readability-identifier-naming.MemberConstantPrefix: k + readability-identifier-naming.NamespaceCase: lower_case + readability-identifier-naming.StaticConstantCase: CamelCase + readability-identifier-naming.StaticConstantPrefix: k + readability-identifier-naming.StructCase: CamelCase + readability-identifier-naming.TemplateParameterCase: CamelCase + readability-identifier-naming.VariableCase: lower_case + +WarningsAsErrors: '' + +HeaderFilterRegex: "(src/[cjson|klib|mpack|unicode|xdiff]/).*\\.h$" +... |