|
| 1 | +FormatStyle: file |
| 2 | + |
| 3 | +Checks: | |
| 4 | + *bugprone*, |
| 5 | + *performance*, |
| 6 | + clang-analyzer-optin.cplusplus.VirtualCall, |
| 7 | + clang-analyzer-optin.performance.Padding, |
| 8 | + cppcoreguidelines-init-variables, |
| 9 | + cppcoreguidelines-prefer-member-initializer, |
| 10 | + cppcoreguidelines-pro-type-static-cast-downcast, |
| 11 | + cppcoreguidelines-slicing, |
| 12 | + google-explicit-constructor, |
| 13 | + llvm-namespace-comment, |
| 14 | + misc-definitions-in-headers, |
| 15 | + misc-misplaced-const, |
| 16 | + misc-non-copyable-objects, |
| 17 | + misc-static-assert, |
| 18 | + misc-throw-by-value-catch-by-reference, |
| 19 | + misc-uniqueptr-reset-release, |
| 20 | + misc-unused-parameters, |
| 21 | + modernize-avoid-bind, |
| 22 | + modernize-loop-convert, |
| 23 | + modernize-make-shared, |
| 24 | + modernize-redundant-void-arg, |
| 25 | + modernize-replace-auto-ptr, |
| 26 | + modernize-replace-disallow-copy-and-assign-macro, |
| 27 | + modernize-replace-random-shuffle, |
| 28 | + modernize-shrink-to-fit, |
| 29 | + modernize-use-auto, |
| 30 | + modernize-use-bool-literals, |
| 31 | + modernize-use-default-member-init, |
| 32 | + modernize-use-emplace, |
| 33 | + modernize-use-equals-default, |
| 34 | + modernize-use-equals-delete, |
| 35 | + modernize-use-noexcept, |
| 36 | + modernize-use-nullptr, |
| 37 | + modernize-use-override, |
| 38 | + modernize-use-using, |
| 39 | + readability-avoid-const-params-in-decls, |
| 40 | + readability-braces-around-statements, |
| 41 | + readability-const-return-type, |
| 42 | + readability-container-size-empty, |
| 43 | + readability-delete-null-pointer, |
| 44 | + readability-else-after-return, |
| 45 | + readability-implicit-bool-conversion, |
| 46 | + readability-inconsistent-declaration-parameter-name, |
| 47 | + readability-make-member-function-const, |
| 48 | + readability-misplaced-array-index, |
| 49 | + readability-non-const-parameter, |
| 50 | + readability-qualified-auto, |
| 51 | + readability-redundant-function-ptr-dereference, |
| 52 | + readability-redundant-smartptr-get, |
| 53 | + readability-redundant-string-cstr, |
| 54 | + readability-simplify-subscript-expr, |
| 55 | + readability-static-accessed-through-instance, |
| 56 | + readability-static-definition-in-anonymous-namespace, |
| 57 | + readability-string-compare, |
| 58 | + readability-suspicious-call-argument, |
| 59 | + readability-uniqueptr-delete-release, |
| 60 | + -bugprone-easily-swappable-parameters, |
| 61 | + -bugprone-exception-escape, |
| 62 | + -bugprone-reserved-identifier, |
| 63 | + -bugprone-unused-raii, |
| 64 | +
|
| 65 | +CheckOptions: |
| 66 | +- key: modernize-use-equals-default.IgnoreMacros |
| 67 | + value: false |
| 68 | +- key: performance-for-range-copy.WarnOnAllAutoCopies |
| 69 | + value: true |
| 70 | +- key: performance-inefficient-string-concatenation.StrictMode |
| 71 | + value: true |
| 72 | +- key: performance-unnecessary-value-param.AllowedTypes |
| 73 | + value: 'exception_ptr$;' |
| 74 | +- key: readability-implicit-bool-conversion.AllowPointerConditions |
| 75 | + value: true |
| 76 | + |
| 77 | +HeaderFilterRegex: 'pybind11/.*h' |
0 commit comments