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 6414d6174198689f00ff325e667fff9eb1c0d9de 
135839a993f1cad32d65d21c6aeaef6f074a1997 --extensions c,cpp -- 
clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp 
clang/test/Analysis/analyzer-enabled-checkers.c 
clang/test/Analysis/std-c-library-functions-arg-enabled-checkers.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp 
b/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
index dbcfe1f9b0..b7dad644c9 100644
--- a/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/DereferenceChecker.cpp
@@ -369,9 +369,15 @@ void ento::registerNullDereferenceChecker(CheckerManager 
&Mgr) {
   Chk->CheckNullDereference = true;
   Chk->SuppressAddressSpaces = 
Mgr.getAnalyzerOptions().getCheckerBooleanOption(
       Mgr.getCurrentCheckerName(), "SuppressAddressSpaces");
-  Chk->BT_Null.reset(new BugType(Mgr.getCurrentCheckerName(), "Dereference of 
null pointer", categories::LogicError));
-  Chk->BT_Undef.reset(new BugType(Mgr.getCurrentCheckerName(), "Dereference of 
undefined pointer value", categories::LogicError));
-  Chk->BT_Label.reset(new BugType(Mgr.getCurrentCheckerName(), "Dereference of 
the address of a label", categories::LogicError));
+  Chk->BT_Null.reset(new BugType(Mgr.getCurrentCheckerName(),
+                                 "Dereference of null pointer",
+                                 categories::LogicError));
+  Chk->BT_Undef.reset(new BugType(Mgr.getCurrentCheckerName(),
+                                  "Dereference of undefined pointer value",
+                                  categories::LogicError));
+  Chk->BT_Label.reset(new BugType(Mgr.getCurrentCheckerName(),
+                                  "Dereference of the address of a label",
+                                  categories::LogicError));
 }
 
 bool ento::shouldRegisterNullDereferenceChecker(const CheckerManager &Mgr) {

``````````

</details>


https://github.com/llvm/llvm-project/pull/122139
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to