[all-commits] [llvm/llvm-project] dd23b3: [clang-tidy][performance-unnecessary-value-param] ...

Clement Courbet via All-commits all-commits at lists.llvm.org
Tue Jul 23 02:32:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd23b347890512ee82741648e941df24e1d666ee
      https://github.com/llvm/llvm-project/commit/dd23b347890512ee82741648e941df24e1d666ee
  Author: Clement Courbet <courbet at google.com>
  Date:   2024-07-23 (Tue, 23 Jul 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
    M clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.h

  Log Message:
  -----------
  [clang-tidy][performance-unnecessary-value-param] Make `handleMoveFix` virtual (#99867)

... so that downstream checks can override behaviour to do additional
processing.

Refactor the rest of the logic to `handleConstRefFix` (which is also
`virtual`).

This is otherwise and NFC.

This is similar to https://github.com/llvm/llvm-project/pull/73921 but
for `performance-unnecessary-value-param`.



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