| 1 |
# Sam note: this is taken from Chromium: https://github.com/chromium/chromium/blob/main/.clang-tidy |
| 2 |
# with the following additions: |
| 3 |
# performance-* |
| 4 |
# portability-* |
| 5 |
# clang-analyzer-*, |
| 6 |
# openmp-exception-escape, |
| 7 |
# modernize-use-nodiscard |
| 8 |
|
| 9 |
# Updated: 1/10/2022 |
| 10 |
|
| 11 |
--- |
| 12 |
Checks: '-*, |
| 13 |
bugprone-argument-comment, |
| 14 |
bugprone-dangling-handle, |
| 15 |
bugprone-inaccurate-erase, |
| 16 |
bugprone-string-constructor, |
| 17 |
bugprone-string-integer-assignment, |
| 18 |
bugprone-unused-raii, |
| 19 |
bugprone-use-after-move, |
| 20 |
google-build-explicit-make-pair, |
| 21 |
google-explicit-constructor, |
| 22 |
google-readability-casting, |
| 23 |
modernize-avoid-bind, |
| 24 |
modernize-concat-nested-namespaces, |
| 25 |
modernize-loop-convert, |
| 26 |
modernize-make-shared, |
| 27 |
modernize-make-unique, |
| 28 |
modernize-redundant-void-arg, |
| 29 |
modernize-replace-random-shuffle, |
| 30 |
modernize-shrink-to-fit, |
| 31 |
modernize-use-bool-literals, |
| 32 |
modernize-use-default-member-init, |
| 33 |
modernize-use-emplace, |
| 34 |
modernize-use-equals-default, |
| 35 |
modernize-use-equals-delete, |
| 36 |
modernize-use-noexcept, |
| 37 |
modernize-use-nullptr, |
| 38 |
modernize-use-override, |
| 39 |
modernize-use-transparent-functors, |
| 40 |
readability-redundant-member-init, |
| 41 |
performance-*, |
| 42 |
portability-*, |
| 43 |
clang-analyzer-*, |
| 44 |
openmp-exception-escape, |
| 45 |
modernize-use-nodiscard' |
| 46 |
CheckOptions: |
| 47 |
- key: bugprone-dangling-handle.HandleClasses |
| 48 |
value: ::std::basic_string_view;::std::span;::absl::string_view;::base::BasicStringPiece;::base::span |
| 49 |
- key: bugprone-string-constructor.StringNames |
| 50 |
value: ::std::basic_string;::std::basic_string_view;::base::BasicStringPiece |
| 51 |
- key: modernize-use-default-member-init.UseAssignment |
| 52 |
value: 1 |
| 53 |
# This relaxes modernize-use-emplace in some cases; we might want to make it |
| 54 |
# more aggressive in the future. See discussion on |
| 55 |
# https://groups.google.com/a/chromium.org/g/cxx/c/noMMTNYiM0w . |
| 56 |
- key: modernize-use-emplace.IgnoreImplicitConstructors |
| 57 |
value: 1 |
| 58 |
# - key: modernize-use-nodiscard.ReplacementString |
| 59 |
# value: NODISCARD |
| 60 |
... |