[all-commits] [llvm/llvm-project] 8b326d: [clang-tidy] fix false negative in cppcoreguidelin...

Qizhi Hu via All-commits all-commits at lists.llvm.org
Tue Mar 5 17:27:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b326d59467b941831942c651c585055b3d512e4
      https://github.com/llvm/llvm-project/commit/8b326d59467b941831942c651c585055b3d512e4
  Author: Qizhi Hu <836744285 at qq.com>
  Date:   2024-03-06 (Wed, 06 Mar 2024)

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

  Log Message:
  -----------
  [clang-tidy] fix false negative in cppcoreguidelines-missing-std-forward (#83987)

Try to fix https://github.com/llvm/llvm-project/issues/83845
When `std::forward` is invoked in a function, make sure it uses correct
parameter by checking if the bounded `var` equals the parameter.

Co-authored-by: huqizhi <836744285 at qq.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