Skip to content

Commit

Permalink
Suppress new clang-tidy checks
Browse files Browse the repository at this point in the history
    $ clang-tidy-18 src/cxx.cc --warnings-as-errors=*
    2482 warnings generated.
    /git/cxx/src/cxx.cc:205:10: error: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list,-warnings-as-errors]
      205 |   return std::string(this->data(), this->size());
          |          ^
    /git/cxx/src/cxx.cc:318:10: error: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list,-warnings-as-errors]
      318 |   return std::string(this->data(), this->size());
          |          ^
    /git/cxx/src/cxx.cc:542:17: error: member 'throw$' of type 'repr::PtrLen &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors]
      542 |   repr::PtrLen &throw$;
          |                 ^
    Suppressed 2479 warnings (2479 in non-user code).
    Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
    3 warnings treated as errors
  • Loading branch information
dtolnay committed Jan 18, 2025
1 parent 97d7b79 commit a75dadf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Checks:
clang-diagnostic-*,
cppcoreguidelines-*,
modernize-*,
-cppcoreguidelines-avoid-const-or-ref-data-members,
-cppcoreguidelines-macro-usage,
-cppcoreguidelines-owning-memory,
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
Expand All @@ -12,6 +13,7 @@ Checks:
-cppcoreguidelines-pro-type-reinterpret-cast,
-cppcoreguidelines-pro-type-vararg,
-cppcoreguidelines-special-member-functions,
-modernize-return-braced-init-list,
-modernize-use-default-member-init,
-modernize-use-equals-default,
-modernize-use-trailing-return-type,
Expand Down

0 comments on commit a75dadf

Please # to comment.