llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[readability-named-parameter] should ignore standard tags

Open purpleKarrot opened this issue 4 months ago • 3 comments

Certain standard types are used for tag dispatching exclusively. Naming them /* unused */creates unnecessary noise.

  • std::in_place_t
  • std::allocator_arg_t
  • int in post increment/decrement
  • std::default_sentinel_t

purpleKarrot avatar Jul 09 '26 12:07 purpleKarrot

I'd like to work on this

xxxxbc avatar Jul 09 '26 16:07 xxxxbc

@llvm/issue-subscribers-clang-tidy

Author: Daniel Pfeifer (purpleKarrot)

Certain standard types are used for tag dispatching exclusively. Naming them `/* unused */`creates unnecessary noise.
  • std::in_place_t
  • std::allocator_arg_t
  • int in post increment/decrement
  • std::default_sentinel_t

I've opened #208730 to address this.

xxxxbc avatar Jul 10 '26 15:07 xxxxbc