diff --git a/.clang-tidy b/.clang-tidy index 66c9eb68b2..aa6164e27f 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -16,7 +16,6 @@ Checks: > -bugprone-implicit-widening-of-multiplication-result, -bugprone-inc-dec-in-conditions, -bugprone-unchecked-optional-access, - -bugprone-unhandled-exception-at-new, google-*, -google-build-using-namespace, -google-default-arguments, diff --git a/.github/workflows/clang-tidy.yaml b/.github/workflows/clang-tidy.yaml index f4ec876e30..7cf6f9e195 100644 --- a/.github/workflows/clang-tidy.yaml +++ b/.github/workflows/clang-tidy.yaml @@ -17,9 +17,9 @@ jobs: matrix: include: - cmake_options: all-options-abiv1-preview - warning_limit: 63 + warning_limit: 205 - cmake_options: all-options-abiv2-preview - warning_limit: 66 + warning_limit: 219 env: CC: /usr/bin/clang-22 CXX: /usr/bin/clang++-22 diff --git a/CHANGELOG.md b/CHANGELOG.md index cc2e9c251d..f6f1031b02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,9 @@ Increment the: to compile standalone on newer standard library implementations. [#4574](https://github.com/open-telemetry/opentelemetry-cpp/pull/4574) +* [CI] Enable the bugprone-unhandled-exception-at-new check + [#4689](https://github.com/open-telemetry/opentelemetry-cpp/pull/4689) + * [EXPORTER ETW] Fix `PropertyValue` string conversions that pre-sized a `vector` then `push_back`'d (doubling length) and that built `std::string` from `string_view::data()` without using the view length