Revision d2307258a6a0bedabfba214bfc58136f02a1926f authored by Fabian Brandt-Tumescheit on 18 December 2020, 08:22:15 UTC, committed by Fabian Brandt-Tumescheit on 18 December 2020, 12:00:15 UTC
1 parent 74205d4
Raw File
.clang-tidy
Checks: >
    -*,
    bugprone-assert-side-effect,
    bugprone-copy-constructor-init,
    bugprone-dangling-handle,
    bugprone-dynamic-static-initializers,
    bugprone-exception-escape,
    bugprone-fold-init-type,
    bugprone-forward-declaration-namespace,
    bugprone-forwarding-reference-overload,
    bugprone-inaccurate-erase,
    bugprone-incorrect-roundings,
    bugprone-integer-division,
    bugprone-misplaced-widening-cast,
    bugprone-move-forwarding-reference,
    bugprone-multiple-statement-macro,
    bugprone-parent-virtual-call,
    bugprone-swapped-arguments,
    bugprone-unused-return-value,
    bugprone-use-after-move,
    bugprone-virtual-near-miss,
    cppcoreguidelines-narrowing-conversions,
    modernize-use-emplace,
    modernize-use-override,
    modernize-deprecated-headers,
    modernize-use-using,
    performance-for-range-copy,
    performance-implicit-conversion-in-loop,
    performance-inefficient-algorithm,
    performance-inefficient-vector-operation,
    performance-move-const-arg,
    performance-noexcept-move-constructor,
    performance-trivially-destructible,
    performance-type-promotion-in-math-fn,
    performance-unnecessary-copy-initialization,
    performance-unnecessary-value-param,
    readability-avoid-const-params-in-decls,
    readability-const-return-type,
    readability-container-size-empty

# Turn the warnings from the checks above into errors.
# To turn all warnings into errors, simply write '*'
# in the first line after WarningsAsErrors
WarningsAsErrors:  >
    -*,
    bugprone-assert-side-effect,
    bugprone-copy-constructor-init,
    bugprone-dangling-handle,
    bugprone-dynamic-static-initializers,
    bugprone-exception-escape,
    bugprone-fold-init-type,
    bugprone-forward-declaration-namespace,
    bugprone-forwarding-reference-overload,
    bugprone-inaccurate-erase,
    bugprone-incorrect-roundings,
    bugprone-integer-division,
    bugprone-misplaced-widening-cast,
    bugprone-move-forwarding-reference,
    bugprone-multiple-statement-macro,
    bugprone-parent-virtual-call,
    bugprone-swapped-arguments,
    bugprone-unused-return-value,
    bugprone-use-after-move,
    cppcoreguidelines-narrowing-conversions,
    bugprone-virtual-near-miss,
    modernize-deprecated-headers,
    modernize-use-emplace,
    modernize-use-override,
    modernize-use-using,
    performance-for-range-copy,
    performance-implicit-conversion-in-loop,
    performance-inefficient-algorithm,
    performance-inefficient-vector-operation,
    performance-move-const-arg,
    performance-trivially-destructible,
    performance-type-promotion-in-math-fn,
    performance-unnecessary-copy-initialization,
    readability-avoid-const-params-in-decls,
    readability-const-return-type,
    readability-container-size-empty

FormatStyle: 'file'
HeaderFilterRegex: '.*\/include\/networkit\/.*\.hpp'
CheckOptions:
  - key:   readability-identifier-naming.ClassCase
    value: CamelCase
  - key:   readability-identifier-naming.EnumCase
    value: CamelCase
  - key:   readability-identifier-naming.FunctionCase
    value: camelBack
  - key:   readability-identifier-naming.MemberCase
    value: CamelCase
  - key:   readability-identifier-naming.ParameterCase
    value: CamelCase
  - key:   readability-identifier-naming.UnionCase
    value: CamelCase
  - key:   readability-identifier-naming.VariableCase
    value: CamelCase
back to top