Skip to content
Snippets Groups Projects
.clang-tidy 3.55 KiB
Newer Older
Fabian Reister's avatar
Fabian Reister committed
# based on https://github.com/frankaemika/libfranka/blob/master/.clang-tidy
User: fabian.reister
Checks: '
  clang-diagnostic-*,
  clang-analyzer-*,
  -clang-analyzer-alpha*,
  google-*,
  -google-explicit-constructor,
  -google-runtime-references,
  -google-default-arguments,
  misc-*,
  -misc-throw-by-value-catch-by-reference,
  -misc-non-private-member-variables-in-classes,
  readability-*,
  -readability-redundant-string-init,
  modernize-*,
  -modernize-use-trailing-return-type,
  -modernize-use-nodiscard,
  -modernize-pass-by-value,
  performance-*,
  cppcoreguidelines-*,
  -cppcoreguidelines-pro-type-reinterpret-cast,
  -cppcoreguidelines-pro-bounds-pointer-arithmetic,
  -cppcoreguidelines-pro-bounds-constant-array-index,
  -cppcoreguidelines-pro-type-union-access,
  -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
  -cppcoreguidelines-pro-type-member-init,
  -cppcoreguidelines-special-member-functions,
  -cppcoreguidelines-owning-memory,
  -cppcoreguidelines-narrowing-conversions
Fabian Reister's avatar
Fabian Reister committed
'
HeaderFilterRegex: '^.*(source|include).*$'
CheckOptions:
  - key:    readability-identifier-naming.NamespaceCase
    value:  lower_case
  - key:    readability-identifier-naming.ClassCase
    value:  CamelCase
  - key:    readability-identifier-naming.StructCase
    value:  CamelCase
  - key:    readability-identifier-naming.EnumCase
    value:  CamelCase
  - key:    readability-identifier-naming.UnionCase
    value:  CamelCase
  - key:    readability-identifier-naming.TypedefCase
    value:  CamelCase
  - key:    readability-identifier-naming.ParameterCase
    value:  camelBack
  - key:    readability-identifier-naming.VariableCase
    value:  camelBack
  - key:    readability-identifier-naming.MemberCase
    value:  camelBack
  - key:    readability-identifier-naming.PublicMemberCase
    value:  camelBack
  - key:    readability-identifier-naming.ProtectedMemberCase
    value:  camelBack
  - key:    readability-identifier-naming.PrivateMemberCase
    value:  camelBack
  - key:    readability-identifier-naming.PrivateMemberSuffix
    value:  ''
  - key:    readability-identifier-naming.FunctionCase
    value:  camelBack
  - key:    readability-identifier-naming.MethodCase
    value:  camelBack
  - key:    readability-identifier-naming.ConstantPrefix
    value:  ''
  - key:    readability-identifier-naming.ConstantCase
    value:  CamelCase
  - key:    readability-identifier-naming.ConstantMemberPrefix
    value:  ''
  - key:    readability-identifier-naming.ConstantMemberCase
Fabian Reister's avatar
Fabian Reister committed
    value:  camelBack
Fabian Reister's avatar
Fabian Reister committed
  - key:    readability-identifier-naming.ConstantParameterPrefix
    value:  ''
  - key:    readability-identifier-naming.ConstantParameterCase
    value:  camelBack
  - key:    readability-identifier-naming.LocalConstantParameterPrefix
    value:  ''
  - key:    readability-identifier-naming.LocalConstantCase
    value:  camelBack
  - key:    readability-identifier-naming.ConstexprVariablePrefix
    value:  ''
  - key:    readability-identifier-naming.ConstexprVariableCase
    value:  camelBack
  - key:    readabiltiy-identifier-naming.EnumConstantCase
    value:  CamelCase
  - key:    readabiltiy-identifier-naming.EnumConstantPrefix
    value:  ''
  - key:    readabiltiy-identifier-naming.EnumConstantSuffix
    value:  ''
  - key:    readabiltiy-identifier-naming.ClassMemberIgnoredRegexp
    value:  '*\_T\_*'
  - key:    readability-identifier-naming.ClassConstantCase
    value:  UPPER_CASE
  - key:    readability-identifier-naming.LocalVariableIgnoredRegexp
    value:  '^.*_[T,R,V]_.*$'
  - key:    readability-identifier-naming.LocalConstantIgnoredRegexp
    value:  '^.*_[T,R,V]_.*$'