[clang] [clang][dataflow] Add `Environment::initializeFieldsWithValues()`. (PR #81239)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 9 02:01:52 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 faa2f9658a0cd276f3415fad2676f8d90df51268 bb1f67f83b0826585f0437789526eaf5af9944bf -- clang/include/clang/Analysis/FlowSensitive/DataflowAnalysisContext.h clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
index 4a9e545fd3..93a9dac3bc 100644
--- a/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
+++ b/clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
@@ -928,7 +928,7 @@ void Environment::initializeFieldsWithValues(RecordStorageLocation &Loc,
       auto &FieldRecordLoc = cast<RecordStorageLocation>(FieldLoc);
       setValue(FieldRecordLoc, create<RecordValue>(FieldRecordLoc));
       initializeFieldsWithValues(FieldRecordLoc, Visited, Depth + 1,
-                                  CreatedValuesCount);
+                                 CreatedValuesCount);
     } else {
       if (!Visited.insert(FieldType.getCanonicalType()).second)
         return;

``````````

</details>


https://github.com/llvm/llvm-project/pull/81239


More information about the cfe-commits mailing list