[clang] ExprEngine::performTrivialCopy triggers checkLocation (PR #129016)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 23:20:47 PST 2025
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 af68927a831c45b92248b1f6fc24d445be42dd91 57b4517b29bd6d8d7ba2fafa94b6b7b17494050b --extensions cpp -- clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp clang/unittests/StaticAnalyzer/ExprEngineVisitTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
index 47888cf968..0dbeee10ec 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp
@@ -77,7 +77,7 @@ void ExprEngine::performTrivialCopy(NodeBuilder &Bldr, ExplodedNode *Pred,
V = Pred->getState()->getSVal(*L);
else
assert(V.isUnknownOrUndef());
-
+
ExplodedNodeSet Tmp;
evalLocation(Tmp, CallExpr, VExpr, Pred, Pred->getState(), V, true);
for (ExplodedNode *N : Tmp)
``````````
</details>
https://github.com/llvm/llvm-project/pull/129016
More information about the cfe-commits
mailing list