[clang] [clang-tools-extra] RFC: [clang-tidy] [analyzer] Move nondeterministic pointer usage check to tidy (PR #110471)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 15:48:48 PDT 2024


================
@@ -174,6 +175,8 @@ class BugproneModule : public ClangTidyModule {
         "bugprone-multiple-new-in-one-expression");
     CheckFactories.registerCheck<MultipleStatementMacroCheck>(
         "bugprone-multiple-statement-macro");
+    CheckFactories.registerCheck<NondeterministicPointerUsageCheck>(
+        "bugprone-nondeterministic-pointer-iteration-order");
----------------
5chmidti wrote:

The class and the check have different names, please choose one as that is an expectable pattern, and helps in navigating the files. 
In case of the class and files needing a rename, checkout https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/clang-tidy/rename_check.py)

https://github.com/llvm/llvm-project/pull/110471


More information about the cfe-commits mailing list