[all-commits] [llvm/llvm-project] 2186dc: [clang-tidy] Fix FP in cppcoreguidelines-missing-s...
Baranov Victor via All-commits
all-commits at lists.llvm.org
Tue Apr 7 22:25:55 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2186dca2f4eee13d9aed033dc1cd7ed33bd59ca3
https://github.com/llvm/llvm-project/commit/2186dca2f4eee13d9aed033dc1cd7ed33bd59ca3
Author: Baranov Victor <bar.victor.2002 at gmail.com>
Date: 2026-04-08 (Wed, 08 Apr 2026)
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 FP in cppcoreguidelines-missing-std-forward in lambda init-list (#190522)
In `TK_IgnoreUnlessSpelledInSource` mode
[`MatchChildASTVisitor::TraverseLambdaExpr`](https://github.com/llvm/llvm-project/blob/main/clang/lib/ASTMatchers/ASTMatchFinder.cpp#L280)
only calls `match()` on each capture-init expression without recursing
into its children. So for `[t{std::forward<T>(t)}]` the `CallExpr`
nested inside the `InitListExpr` is never visited, and
`ForwardCallMatcher` never binds "call".
Fixes https://github.com/llvm/llvm-project/issues/150446.
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