[all-commits] [llvm/llvm-project] a07e8c: [clang-tidy] fix false positive in lambda expr for...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Fri Dec 6 16:31:57 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a07e8cdae7727583e20c9dec632a376365a6e209
https://github.com/llvm/llvm-project/commit/a07e8cdae7727583e20c9dec632a376365a6e209
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-12-07 (Sat, 07 Dec 2024)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/ReturnConstRefFromParameterCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/bugprone/return-const-ref-from-parameter.cpp
Log Message:
-----------
[clang-tidy] fix false positive in lambda expr for return-const-ref-from-parameter (#118990)
We should bind the node in `hasAncestor` matcher and `equalsBoundNode`
in the other matcher because `hasAncestor` will visit the ancestor until
to find the matched result.
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