mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-30 06:06:48 +00:00
AK+Kernel: Suppress clang-tidy warnings from the cert-* category
cert-dcl50-cpp: No variadic functions, suppressed in RefCounted and ThreadSafeRefCounted for implementing the magic one_ref_left and will_be_destroyed functions. cert-dcl58-cpp: No opening ::std, suppressed in the places we put names in ::std to aid tools (move, forward, nullptr_t, align_val_t, etc).
This commit is contained in:
parent
2b16ee742e
commit
7014d37dd6
Notes:
sideshowbarker
2024-07-18 01:07:38 +09:00
Author: https://github.com/ADKaster
Commit: 7014d37dd6
Pull-request: https://github.com/SerenityOS/serenity/pull/10737
Reviewed-by: https://github.com/BenWiederhake
Reviewed-by: https://github.com/PeterBindels-TomTom
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/dascandy
Reviewed-by: https://github.com/trflynn89
5 changed files with 7 additions and 3 deletions
|
@ -28,7 +28,7 @@ private:
|
|||
|
||||
// The C++ standard specifies that the nothrow allocation tag should live in the std namespace.
|
||||
// Otherwise, `new (std::nothrow)` calls wouldn't get resolved.
|
||||
namespace std {
|
||||
namespace std { // NOLINT(cert-dcl58-cpp) These declarations must be in ::std and we are not using <new>
|
||||
struct nothrow_t {
|
||||
explicit nothrow_t() = default;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue