[clang-tools-extra] [clang-tidy] Fix smart pointers handling in bugprone-use-after-move (PR #94869)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 16:25:50 PDT 2024
================
@@ -104,6 +104,11 @@ New check aliases
Changes in existing checks
^^^^^^^^^^^^^^^^^^^^^^^^^^
+- Improved :doc:`bugprone-use-after-move
+ <clang-tidy/checks/bugprone/use-after-move>` check to handle smart pointers
+ like any other objects allowing to detect more cases, previous behavior can
+ be restored by setting `AllowMovedSmartPtrUse` option to `true`.
----------------
5chmidti wrote:
Nit:
> objects allowing to detect more cases, previous behavior
->
> objects to detect more cases, and added `AllowMovedSmartPtrUse` to restore the previous behavior
https://github.com/llvm/llvm-project/pull/94869
More information about the cfe-commits
mailing list