[clang-tools-extra] [clang-tidy] Ignore standard tag dispatch types in readability-named-parameter (PR #208730)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 12 05:51:49 PDT 2026
================
@@ -15,15 +16,35 @@ using namespace clang::ast_matchers;
namespace clang::tidy::readability {
+// Standard tag dispatch types that are used exclusively for overload
+// resolution and therefore do not need a parameter name.
+static constexpr StringRef DefaultTagDispatchTypes =
+ "std::allocator_arg_t;"
----------------
zeyi2 wrote:
I think the list is still incomplete?
e.g. [Iterator tags](https://eel.is/c++draft/std.iterator.tags), `std::adopt_lock_t`, `std::in_place_type_t`, `std::in_place_index_t`, `std::nullopt_t`, `std::unreachable_sentinel_t`.
https://github.com/llvm/llvm-project/pull/208730
More information about the cfe-commits
mailing list