You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[clang-tidy] bugprone-use-after-move false positive with forwarding class member #236015
Would trigger bugprone-use-after-move because the check thinks that `args` is used after being forwarded. But it is not it is never forwarded (consumed), only its member is so using `args.a` is perfectly safe. Godbolt: https://godbolt.org/z/efMKEoE47
</details>
Activity
llvmorg-github-actions commentedon Oct 27, 2026
@llvm/issue-subscribers-clang-tidy
Author: Evgeniy Shcherbina (ixSci)
Details
The following code: ```cpp #include <utility> struct Obj { int a; int b; };void binaryF(int a, int b)
{}
template<typename... Args>
void fun(Args&&... args)
{
(binaryF(args.a, std::forward<Args>(args).b), ...);
}
void f()
{
fun(Obj{1, 2}, Obj{3, 4});
}
yashaggarwal85d commentedon Oct 27, 2026
Raised a PR for a potential fix for this issue. Thanks