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 origin/main HEAD --extensions h,cpp --
clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
clang-tools-extra/test/clang-tidy/checkers/hicpp/signed-bitwise-bug34747.cpp
clang-tools-extra/test/clang-tidy/checkers/hicpp/signed-bitwise-integer-literals.cpp
clang-tools-extra/test/clang-tidy/checkers/hicpp/signed-bitwise-standard-types.cpp
clang-tools-extra/test/clang-tidy/checkers/hicpp/signed-bitwise.cpp
clang-tools-extra/clang-tidy/bugprone/SignedBitwiseCheck.cpp
clang-tools-extra/clang-tidy/bugprone/SignedBitwiseCheck.h
--diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
index c18fb7f50..e06b6c530 100644
--- a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
@@ -245,8 +245,7 @@ public:
CheckFactories.registerCheck<SharedPtrArrayMismatchCheck>(
"bugprone-shared-ptr-array-mismatch");
CheckFactories.registerCheck<SignalHandlerCheck>("bugprone-signal-handler");
- CheckFactories.registerCheck<SignedBitwiseCheck>(
- "bugprone-signed-bitwise");
+
CheckFactories.registerCheck<SignedBitwiseCheck>("bugprone-signed-bitwise");
CheckFactories.registerCheck<SignedCharMisuseCheck>(
"bugprone-signed-char-misuse");
CheckFactories.registerCheck<SizeofContainerCheck>(
diff --git a/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
b/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
index aea2d6213..501e7fc0e 100644
--- a/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
@@ -8,6 +8,7 @@
#include "../ClangTidy.h"
#include "../ClangTidyModule.h"
+#include "../bugprone/SignedBitwiseCheck.h"
#include "../bugprone/StdExceptionBaseclassCheck.h"
#include "../bugprone/UndelegatedConstructorCheck.h"
#include "../bugprone/UnusedReturnValueCheck.h"
@@ -38,7 +39,6 @@
#include "../readability/NamedParameterCheck.h"
#include "../readability/UppercaseLiteralSuffixCheck.h"
#include "MultiwayPathsCoveredCheck.h"
-#include "../bugprone/SignedBitwiseCheck.h"
namespace clang::tidy {
namespace hicpp {
@@ -61,7 +61,8 @@ public:
"hicpp-ignored-remove-result");
CheckFactories.registerCheck<MultiwayPathsCoveredCheck>(
"hicpp-multiway-paths-covered");
-
CheckFactories.registerCheck<bugprone::SignedBitwiseCheck>("hicpp-signed-bitwise");
+ CheckFactories.registerCheck<bugprone::SignedBitwiseCheck>(
+ "hicpp-signed-bitwise");
CheckFactories.registerCheck<google::ExplicitConstructorCheck>(
"hicpp-explicit-conversions");
CheckFactories.registerCheck<readability::FunctionSizeCheck>(
``````````
</details>
https://github.com/llvm/llvm-project/pull/190449
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits