[all-commits] [llvm/llvm-project] 9dc653: [clang-tidy] Don't report unnamed params for misc-...

Donát Nagy via All-commits all-commits at lists.llvm.org
Wed Mar 4 10:02:48 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9dc65372aa6101bd72be80ca0901cb8dd780d01f
      https://github.com/llvm/llvm-project/commit/9dc65372aa6101bd72be80ca0901cb8dd780d01f
  Author: Donát Nagy <donat.nagy at ericsson.com>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp
    M clang-tools-extra/docs/clang-tidy/checks/misc/const-correctness.rst
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-parameters.cpp

  Log Message:
  -----------
  [clang-tidy] Don't report unnamed params for misc-const-correctness (#184388)

Previously misc-const-correctness warned about non-const unnamed
parameters; but this commit excludes them because these warnings are not
actually useful. An unnamed parameter cannot be referenced at all, so
marking them as 'const' doesn't add additional information.

Also the diagnostic messages look awkward without a name.

Fixes #184330



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list