qmcpack/external_codes/boost_multi/multi/.clang-tidy

57 lines
3.8 KiB
YAML

# -*-indent-tabs-mode:nil;c-basic-offset:2;tab-width:2;autowrap:nil;-*-
WarningsAsErrors: '*'
HeaderFilterRegex: '.'
FormatStyle: file
CheckOptions:
- { key: readability-identifier-naming.ClassCase , value: lower_case }
- { key: readability-identifier-naming.FunctionCase , value: lower_case }
- { key: readability-identifier-naming.GlobalConstantCase , value: aNy_CasE }
- { key: readability-identifier-length.IgnoredLoopCounterNames , value: "^[ijk_]$" }
- { key: readability-identifier-length.IgnoredVariableNames , value: "^[ijk_]$" }
- { key: readability-identifier-length.MethodCase , value: lower_case }
- { key: readability-identifier-length.MinimumLoopCounterNameLength , value: 2 }
- { key: readability-identifier-length.MinimumParameterNameLength , value: 2 }
- { key: readability-identifier-length.MinimumVariableNameLength , value: 2 }
- { key: readability-identifier-naming.MacroDefinitionCase , value: UPPER_CASE }
- { key: readability-identifier-naming.MacroDefinitionPrefix, , value: BOOST_MULTI_ }
- { key: readability-identifier-naming.MacroDefinitionSuffix, , value: * }
- { key: readability-identifier-naming.NamespaceCase , value: lower_case }
- { key: readability-identifier-naming.PrivateMemberPrefix , value: '' }
- { key: readability-identifier-naming.PrivateMemberSuffix , value: _ }
- { key: readability-identifier-naming.PrivateMethodSuffix , value: _ }
- { key: readability-identifier-naming.StructCase , value: lower_case }
- { key: readability-identifier-naming.TemplateParameterCase , value: CamelCase }
- { key: readability-identifier-naming.TypeTemplateParameterIgnoredRegexp, value: expr-type}
- { key: readability-operators-representation.BinaryOperators , value: '&&;&=;&;|;~;!;!=;||;|=;^;^='}
# value: expr-type , bug in clang 16 in c++20 mode https://stackoverflow.com/a/75157215/225186
# for range-for loops, e.g. `for(auto i : is) ...`
# - { key: readability-identifier-length.IgnoredVariableNames , value: "^[ijk]$" }
Checks: '*,
-altera-struct-pack-align,
-clang-diagnostic-deprecated-declarations,
-cppcoreguidelines-avoid-magic-numbers,
-cppcoreguidelines-macro-usage,
-fuchsia-overloaded-operator,
-fuchsia-trailing-return,
-llvmlibc-*,
-misc-include-cleaner,
-modernize-use-nodiscard,
-readability-magic-numbers
'
## explanation of the suppressed rules above:
# -altera-struct-pack-align, // this asks to use non-standard pragmas such as __attribute__((aligned(0))) and _attribute__((packed)), may interfeere with gcc/nvcc compatibility?
# -clang-diagnostic-deprecated-declarations // some test run deprecated functions on purposes
# -cppcoreguidelines-avoid-magic-numbers, // all tests use magic numbers
# -cppcoreguidelines-macro-usage, // BLAS adaptors uses a lot of macros
# -fuchsia-overloaded-operator, // this library overloads operators (==, <, +, &)
# -fuchsia-trailing-return, // to allow any '-> decltype(auto)', contradicts modernize trailing
# -llvmlibc-*, // nonsense warnings, for llvm developers
# -misc-include-cleaner, // using Boost.Test
# -modernize-use-nodiscard, // this would add [[nodiscard]] to almost all functions, adding a lot of noise
# -readability-magic-numbers, // all tests use magic numbers