[clang] [clang][dataflow] Skip array types when handling InitListExprs. (PR #83013)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 26 07:14:06 PST 2024
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 83feb846482f0100cb29d460d3d8de2690fc32ad ee395ff3555efa5cbeae4d874f3ad39c52b85faf -- clang/lib/Analysis/FlowSensitive/Transfer.cpp clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Analysis/FlowSensitive/Transfer.cpp b/clang/lib/Analysis/FlowSensitive/Transfer.cpp
index a5b8e9cbc1..089854264f 100644
--- a/clang/lib/Analysis/FlowSensitive/Transfer.cpp
+++ b/clang/lib/Analysis/FlowSensitive/Transfer.cpp
@@ -671,8 +671,8 @@ public:
}
if (!Type->isStructureOrClassType()) {
- // Until array initialization is implemented, we skip arrays and don't need
- // to care about cases where `getNumInits() > 1`.
+ // Until array initialization is implemented, we skip arrays and don't
+ // need to care about cases where `getNumInits() > 1`.
if (!Type->isArrayType() && S->getNumInits() == 1)
propagateValueOrStorageLocation(*S->getInit(0), *S, Env);
return;
``````````
</details>
https://github.com/llvm/llvm-project/pull/83013
More information about the cfe-commits
mailing list