[clang] -Weverything option produces a warning(-Wshadow-uncaptured-local) when explicitly capturing a local value using std::move() #81307
Labels
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
This bug is similar to #71976, except my scenario deals with move capture syntax.
This is a standard C++ pattern when moving objects into a lambda. Or is there something I am missing?
From my repo, the warning only happens when
-Weverything
option is used and not when-Wshadow-uncaptured-local
is used.https://godbolt.org/z/6v1jbx5f1
The text was updated successfully, but these errors were encountered: