[all-commits] [llvm/llvm-project] 87d0ae: [clang-tidy] Add readability-reference-to-construc...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat Jul 29 03:39:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87d0aedaa285cfca92aef67367ce55c476cf444e
      https://github.com/llvm/llvm-project/commit/87d0aedaa285cfca92aef67367ce55c476cf444e
  Author: Piotr Zegar <piotr.zegar at nokia.com>
  Date:   2023-07-29 (Sat, 29 Jul 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/CMakeLists.txt
    M clang-tools-extra/clang-tidy/readability/ReadabilityTidyModule.cpp
    A clang-tools-extra/clang-tidy/readability/ReferenceToConstructedTemporaryCheck.cpp
    A clang-tools-extra/clang-tidy/readability/ReferenceToConstructedTemporaryCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/docs/clang-tidy/checks/readability/reference-to-constructed-temporary.rst
    A clang-tools-extra/test/clang-tidy/checkers/readability/reference-to-constructed-temporary.cpp

  Log Message:
  -----------
  [clang-tidy] Add readability-reference-to-constructed-temporary check

Detects code where a temporary object is directly constructed by calling
a constructor or using an initializer list and immediately assigned to a
reference variable.

Reviewed By: xgupta

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




More information about the All-commits mailing list