[all-commits] [llvm/llvm-project] 76aed3: [clang-tidy] Avoid non-const-parameter fix-it conf...

Zeyi Xu via All-commits all-commits at lists.llvm.org
Sat Jun 13 02:01:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76aed382055b0c07a9ce89d9273cc1f70daecf17
      https://github.com/llvm/llvm-project/commit/76aed382055b0c07a9ce89d9273cc1f70daecf17
  Author: Zeyi Xu <mitchell.xu2 at gmail.com>
  Date:   2026-06-13 (Sat, 13 Jun 2026)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/NonConstParameterCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/non-const-parameter.cpp

  Log Message:
  -----------
  [clang-tidy] Avoid non-const-parameter fix-it conflicts with overloads (#202490)

`readability-non-const-parameter` can suggest changing `T *` to `const T
*` when that would conflict with an existing overload. Suppress the
diagnostic in that case by comparing the post-fix parameter list against
other declarations with the same name.

Closes https://github.com/llvm/llvm-project/issues/202478



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