[A] Added clang-tidy support

This commit is contained in:
seleznevae
2019-01-01 21:43:21 +03:00
parent 926d32e069
commit 4943f941d4
9 changed files with 88 additions and 19 deletions

42
.clang-tidy Normal file
View File

@@ -0,0 +1,42 @@
---
# Configure clang-tidy for this project.
# Disabled:
# -google-readability-namespace-comments the BIGTABLE_CLIENT_NS is a macro, and
# clang-tidy fails to match it against the initial value.
Checks: >-
bugprone-*,
#google-readability-*,
misc-*,
modernize-*,
#readability-identifier-naming,
#readability-*,
performance-*,
-google-readability-namespace-comments,
-readability-named-parameter
# Enable most warnings as errors.
WarningsAsErrors: >-
bugprone-*,
clang-*,
google-*,
misc-*,
modernize-*,
#readability-identifier-naming,
#readability-*,
performance-*
#CheckOptions:
# - { key: readability-identifier-naming.NamespaceCase, value: lower_case }
# - { key: readability-identifier-naming.ClassCase, value: lower_case }
# - { key: readability-identifier-naming.StructCase, value: lower_case }
# - { key: readability-identifier-naming.TemplateParameterCase, value: lower_case }
# - { key: readability-identifier-naming.FunctionCase, value: lower_case }
# - { key: readability-identifier-naming.VariableCase, value: lower_case }
# - { key: readability-identifier-naming.PrivateMemberSuffix, value: _ }
# - { key: readability-identifier-naming.ProtectedMemberSuffix, value: _ }
# - { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
# - { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE }
# - { key: readability-identifier-naming.ConstexprVariableCase, value: UPPER_CASE }
# - { key: readability-identifier-naming.GlobalConstantCase, value: UPPER_CASE }
# - { key: readability-identifier-naming.MemberConstantCase, value: UPPER_CASE }