[all-commits] [llvm/llvm-project] 9182c6: [clang-tidy]performance-no-automatic-move: fix fal...

Clement Courbet via All-commits all-commits at lists.llvm.org
Wed May 24 06:06:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9182c679dde7cb6480e66b9231a53d43ad03908b
      https://github.com/llvm/llvm-project/commit/9182c679dde7cb6480e66b9231a53d43ad03908b
  Author: Clement Courbet <courbet at google.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/performance/NoAutomaticMoveCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/performance/no-automatic-move.cpp

  Log Message:
  -----------
  [clang-tidy]performance-no-automatic-move: fix false negative on `const T&&` ctors.

We were only handling `const T&`/`T&&` ctor pairs, and we were missing uref-based ctors.

Differential Revision: https://reviews.llvm.org/D151092




More information about the All-commits mailing list