[clang-tools-extra] [openmp] [llvm] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 1 15:50:50 PST 2023
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 d22944d1cc54a3384a88d654d144ef62a693df16 528146e8d1fae56d2d4cc2d32a0823aa1f9cbc2b -- clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.cpp clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.h clang-tools-extra/test/clang-tidy/checkers/bugprone/move-shared-pointer-contents.cpp clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.h b/clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.h
index 71b826596f..681dfe7f42 100644
--- a/clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.h
+++ b/clang-tools-extra/clang-tidy/bugprone/MoveSharedPointerContentsCheck.h
@@ -9,9 +9,9 @@
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_MOVESHAREDPOINTERCONTENTSCHECK_H
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_BUGPRONE_MOVESHAREDPOINTERCONTENTSCHECK_H
-#include <vector>
#include "../ClangTidyCheck.h"
#include "llvm/ADT/StringRef.h"
+#include <vector>
namespace clang::tidy::bugprone {
``````````
</details>
https://github.com/llvm/llvm-project/pull/67467
More information about the cfe-commits
mailing list