[all-commits] [llvm/llvm-project] d08482: [clang-tidy] fix false positive in cppcoreguidelin...

Qizhi Hu via All-commits all-commits at lists.llvm.org
Sat Jan 6 03:50:14 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d08482924efe8b2c44913583af7b8f60a29975d1
      https://github.com/llvm/llvm-project/commit/d08482924efe8b2c44913583af7b8f60a29975d1
  Author: Qizhi Hu <836744285 at qq.com>
  Date:   2024-01-06 (Sat, 06 Jan 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 positive in cppcoreguidelines-missing-std-forward (#77056)

Parameter variable which is forwarded in lambda capture list or in body
by reference is reasonable and current version of this check produces
false positive on these cases. This patch try to fix the
[issue](https://github.com/llvm/llvm-project/issues/68105)

Co-authored-by: huqizhi <836744285 at qq.com>




More information about the All-commits mailing list