[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Nondeterministic pointer usage improvements (PR #110471)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 6 06:34:20 PDT 2024
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 fb0ef6b66e3c7e91481568c15ed67c047dab84e1 4d8d1057c3f4a423ef0fe15bf58278d9967c8128 --extensions h,cpp -- clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerUsageCheck.cpp clang-tools-extra/clang-tidy/bugprone/NondeterministicPointerUsageCheck.h clang-tools-extra/test/clang-tidy/checkers/bugprone/Inputs/system-header-simulator/sim_c++config.h clang-tools-extra/test/clang-tidy/checkers/bugprone/nondeterministic-pointer-usage.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/BugproneTidyModule.cpp b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
index 48f8ece42e..597ea3e7e9 100644
--- a/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
+++ b/clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
@@ -48,8 +48,8 @@
#include "MultipleNewInOneExpressionCheck.h"
#include "MultipleStatementMacroCheck.h"
#include "NoEscapeCheck.h"
-#include "NondeterministicPointerUsageCheck.h"
#include "NonZeroEnumToBoolConversionCheck.h"
+#include "NondeterministicPointerUsageCheck.h"
#include "NotNullTerminatedResultCheck.h"
#include "OptionalValueConversionCheck.h"
#include "ParentVirtualCallCheck.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/110471
More information about the cfe-commits
mailing list