[all-commits] [llvm/llvm-project] 5902bb: [clang-tidy] Implement cppcoreguidelines F.19

Chris Cotter via All-commits all-commits at lists.llvm.org
Sat May 6 03:50:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5902bb9584d686789a80005b35de1b2c2e2ce0b4
      https://github.com/llvm/llvm-project/commit/5902bb9584d686789a80005b35de1b2c2e2ce0b4
  Author: Chris Cotter <ccotter14 at bloomberg.net>
  Date:   2023-05-06 (Sat, 06 May 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt
    M clang-tools-extra/clang-tidy/cppcoreguidelines/CppCoreGuidelinesTidyModule.cpp
    A clang-tools-extra/clang-tidy/cppcoreguidelines/MissingStdForwardCheck.cpp
    A clang-tools-extra/clang-tidy/cppcoreguidelines/MissingStdForwardCheck.h
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/missing-std-forward.rst
    M clang-tools-extra/docs/clang-tidy/checks/list.rst
    A clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/missing-std-forward.cpp

  Log Message:
  -----------
  [clang-tidy] Implement cppcoreguidelines F.19

Warns when a function accepting a forwarding reference does anything besides
forwarding (with std::forward) the parameter in the body of the function.

Reviewed By: PiotrZSL

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




More information about the All-commits mailing list