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k=?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>


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 cpp,h -- 
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h 
clang/lib/StaticAnalyzer/Core/ExprEngine.cpp 
clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp 
clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp 
clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp 
clang/lib/StaticAnalyzer/Core/ExprEngineObjC.cpp --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/lib/StaticAnalyzer/Core/ExprEngine.cpp 
b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 45cb67ce0..1992f2389 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -2446,8 +2446,7 @@ void ExprEngine::Visit(const Stmt *S, ExplodedNode *Pred,
       // Escape pointers passed into the list, unless it's an ObjC boxed
       // expression which is not a boxable C structure.
       if (!(isa<ObjCBoxedExpr>(Ex) &&
-            !cast<ObjCBoxedExpr>(Ex)->getSubExpr()
-                                    ->getType()->isRecordType()))
+            !cast<ObjCBoxedExpr>(Ex)->getSubExpr()->getType()->isRecordType()))
         for (auto Child : Ex->children()) {
           assert(Child);
           const auto *ChildExpr = dyn_cast<Expr>(Child);
@@ -3702,8 +3701,8 @@ void ExprEngine::VisitMemberExpr(const MemberExpr *M, 
ExplodedNode *Pred,
       // pointers as soon as they are used.
       if (!M->isGLValue()) {
         assert(M->getType()->isArrayType());
-        const auto *PE =
-          
dyn_cast<ImplicitCastExpr>(Pred->getParentMap().getParentIgnoreParens(M));
+        const auto *PE = dyn_cast<ImplicitCastExpr>(
+            Pred->getParentMap().getParentIgnoreParens(M));
         if (!PE || PE->getCastKind() != CK_ArrayToPointerDecay) {
           llvm_unreachable("should always be wrapped in ArrayToPointerDecay");
         }
@@ -3716,8 +3715,8 @@ void ExprEngine::VisitMemberExpr(const MemberExpr *M, 
ExplodedNode *Pred,
           L = UnknownVal();
       }
 
-      Dst.insert(Engine.makeNodeWithBinding(
-          Pred, M, L, state, ProgramPoint::PostLValueKind));
+      Dst.insert(Engine.makeNodeWithBinding(Pred, M, L, state,
+                                            ProgramPoint::PostLValueKind));
     } else {
       evalLoad(Dst, M, M, Pred, state, L);
     }

``````````

</details>


https://github.com/llvm/llvm-project/pull/218691
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to