[clang-tools-extra] [clang-tidy] Fix some false positive in bugprone-move-forwarding-reference (PR #191435)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 10 11:49:49 PDT 2026
================
@@ -252,16 +252,14 @@ Changes in existing checks
positive when increment/decrement operators appear inside lambda bodies that
are part of a condition expression.
-- Improved :doc:`bugprone-incorrect-enable-if
- <clang-tidy/checks/bugprone/incorrect-enable-if>` check to not
- insert an extraneous ``typename`` on code like
- ``typename std::enable_if<...>``, where there's already a ``typename`` and
- only the ``::type`` at the end is missing.
-
- Improved :doc:`bugprone-macro-parentheses
<clang-tidy/checks/bugprone/macro-parentheses>` check by printing the macro
definition in the warning message if the macro is defined on command line.
+- Improved :doc:`bugprone-move-forwarding-reference
+ <clang-tidy/checks/bugprone/move-forwarding-reference>` check by removing some
+ false positive in the context of moved lambda captures.
----------------
EugeneZelenko wrote:
```suggestion
false positives in the context of moved lambda captures.
```
https://github.com/llvm/llvm-project/pull/191435
More information about the cfe-commits
mailing list