mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Enable clang-tidy bugprone-unhandled-exception-at-new
Official docs: Finds calls to new with missing exception handler for std::bad_alloc. Calls to new may throw exceptions of type std::bad_alloc that should be handled. Alternatively, the nonthrowing form of new can be used. The check verifies that the exception is handled in the function that calls new. If a nonthrowing version is used or the exception is allowed to propagate out of the function no warning is generated. The exception handler is checked if it catches a std::bad_alloc or std::exception exception type, or all exceptions (catch-all). The check assumes that any user-defined operator new is either noexcept or may throw an exception of type std::bad_alloc (or one derived from it). Other exception class types are not taken into account.
This commit is contained in:
parent
89dbbe9a6e
commit
fb781dab3a
@ -12,7 +12,6 @@ Checks: '*,
|
|||||||
-bugprone-lambda-function-name,
|
-bugprone-lambda-function-name,
|
||||||
-bugprone-narrowing-conversions,
|
-bugprone-narrowing-conversions,
|
||||||
-bugprone-not-null-terminated-result,
|
-bugprone-not-null-terminated-result,
|
||||||
-bugprone-unhandled-exception-at-new,
|
|
||||||
-bugprone-unhandled-self-assignment,
|
-bugprone-unhandled-self-assignment,
|
||||||
|
|
||||||
-cert-dcl16-c,
|
-cert-dcl16-c,
|
||||||
|
Loading…
Reference in New Issue
Block a user