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 HEAD~1 HEAD --extensions c,cpp -- 
clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 
clang/lib/StaticAnalyzer/Core/RegionStore.cpp 
clang/test/Analysis/call-and-message.c clang/test/Analysis/call-and-message.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp 
b/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
index 677cc6ee5..64587b205 100644
--- a/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/CallAndMessageChecker.cpp
@@ -259,7 +259,7 @@ public:
         if (T->getAsStructureType()) {
           if (Find(FR))
             return true;
-        } else if (!I->isUnnamedBitField()){
+        } else if (!I->isUnnamedBitField()) {
           SVal V = StoreMgr.getBinding(store, loc::MemRegionVal(FR));
           if (V.isUndef())
             return true;
diff --git a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 
b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
index 120803670..2e509d09c 100644
--- a/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
+++ b/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
@@ -2133,7 +2133,7 @@ SVal 
RegionStoreManager::getBindingForField(RegionBindingsConstRef B,
   // The bits of the unnamed bit-field in local variable a can be anything.
   const FieldDecl *FD = R->getDecl();
   if (FD->isUnnamedBitField()) {
-      return UndefinedVal();
+    return UndefinedVal();
   }
 
   // If the containing record was initialized, try to get its constant value.

``````````

</details>


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

Reply via email to