[all-commits] [llvm/llvm-project] 6a57af: [clang-tidy] Add flag to specify an alternative to...

Dimitrije Dobrota via All-commits all-commits at lists.llvm.org
Mon Jun 30 12:13:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6a57af8d0367eb22e3da9fc0957d74cb2f61c45c
      https://github.com/llvm/llvm-project/commit/6a57af8d0367eb22e3da9fc0957d74cb2f61c45c
  Author: Dimitrije Dobrota <mail at dimitrijedobrota.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

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

  Log Message:
  -----------
  [clang-tidy] Add flag to specify an alternative to std::forward (#138755)

Since std::forward is nothing more than a cast, part of STL and not the
language itself, it's easy to provide a custom implementation if one
wishes not to include the entirety of <utility>.

Added flag (ForwardFunction) provides a way to continue using this
essential check even with the custom implementation of forwarding.

---------

Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>



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