[clang-tools-extra] [clang-tidy] Add `performance-explicit-move-constructor` check (PR #122599)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 11 17:26:09 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff ac604b2fa6ff0344a555954069721c0db7b874f9 828461273ea7ac1d38a4d3fe1ff8b810f80472e9 --extensions h,cpp -- clang-tools-extra/clang-tidy/performance/ExplicitMoveConstructorCheck.cpp clang-tools-extra/clang-tidy/performance/ExplicitMoveConstructorCheck.h clang-tools-extra/test/clang-tidy/checkers/performance/explicit-move-constructor.cpp clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/performance/ExplicitMoveConstructorCheck.h b/clang-tools-extra/clang-tidy/performance/ExplicitMoveConstructorCheck.h
index 9ae071a20a..a41304aca0 100644
--- a/clang-tools-extra/clang-tidy/performance/ExplicitMoveConstructorCheck.h
+++ b/clang-tools-extra/clang-tidy/performance/ExplicitMoveConstructorCheck.h
@@ -13,7 +13,8 @@
namespace clang::tidy::performance {
-/// Find classes that define an explicit move constructor and a (non-deleted) copy constructor.
+/// Find classes that define an explicit move constructor and a (non-deleted)
+/// copy constructor.
///
/// For the user-facing documentation see:
/// http://clang.llvm.org/extra/clang-tidy/checks/performance/explicit-move-constructor.html
``````````
</details>
https://github.com/llvm/llvm-project/pull/122599
More information about the cfe-commits
mailing list