[clang-tools-extra] [clang-tidy] Ignore standard tag dispatch types in readability-named-parameter (PR #208730)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 12 00:42:57 PDT 2026


================
@@ -161,10 +161,36 @@ void MockFunction(Unused, int q, Unused) {
 
 namespace std {
 typedef decltype(nullptr) nullptr_t;
+struct allocator_arg_t {};
+struct defer_lock_t {};
+struct default_sentinel_t {};
+struct from_range_t {};
+struct in_place_t {};
+struct nothrow_t {};
+struct nostopstate_t {};
+struct piecewise_construct_t {};
+struct sorted_equivalent_t {};
+struct sorted_unique_t {};
+struct try_to_lock_t {};
+struct unexpect_t {};
 }
 
 void f(std::nullptr_t) {}
 
+// Standard tag dispatch types should not trigger warnings.
----------------
vbvictor wrote:

Test non standart as well

https://github.com/llvm/llvm-project/pull/208730


More information about the cfe-commits mailing list