swh:1:snp:2c68c8bd649bf1bd2cf3bf7bd4f98d247b82b5dc
Raw File
Tip revision: a9ea9b565018774e52bb4028cbc91e14cb86959e authored by Steven Johnson on 02 December 2022, 00:17:48 UTC
Fix for top-of-tree LLVM (#7194)
Tip revision: a9ea9b5
.clang-tidy
# TODO: some of the blocklisted bugprone checks can/should be re-enabled
# one at a time (with careful code fixes made as necessary).

---
Checks: >
    -*,
    bugprone-*,
    -bugprone-branch-clone,
    -bugprone-easily-swappable-parameters,
    -bugprone-exception-escape,
    -bugprone-implicit-widening-of-multiplication-result,
    -bugprone-integer-division,
    -bugprone-narrowing-conversions,
    -bugprone-reserved-identifier,
    -bugprone-signed-char-misuse,
    clang-diagnostic-shadow-field,
    misc-*,
    -misc-no-recursion,
    -misc-non-private-member-variables-in-classes,
    -misc-unconventional-assign-operator,
    -misc-unused-parameters,
    modernize-deprecated-headers,
    modernize-loop-convert,
    modernize-make-shared,
    modernize-make-unique,
    modernize-redundant-void-arg,
    modernize-use-bool-literals,
    # Disabled: there is not consensus on whether the Clang-14 behavior
    # of this checker is always desirable or not, and there isn't currently
    # a way to revert to the Clang-13 behavior. We may revisit this
    # check the next time we examine clang-tidy options.
    # modernize-use-default-member-init,
    modernize-use-emplace,
    modernize-use-equals-default,
    modernize-use-equals-delete,
    modernize-use-nullptr,
    modernize-use-override,
    performance-*,
    -performance-inefficient-string-concatenation,
    -performance-inefficient-vector-operation,
    -performance-no-int-to-ptr,
    readability-avoid-const-params-in-decls,
    readability-braces-around-statements,
    readability-const-return-type,
    readability-container-size-empty,
    readability-misplaced-array-index,
    readability-qualified-auto,
    readability-redundant-access-specifiers,
    readability-redundant-control-flow,
    readability-redundant-function-ptr-dereference,
    readability-redundant-preprocessor,
    readability-redundant-smartptr-get,
    readability-redundant-string-cstr,
    readability-simplify-subscript-expr,
    readability-static-accessed-through-instance,
    readability-static-definition-in-anonymous-namespace,

WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: 'file'
#CheckOptions:
#    - key:   modernize-use-default-member-init.UseAssignment
#      value: 1
...
back to top