[clang] [Clang] Fix a variable shadowing in MapLattice (NFC) (PR #95697)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 16 03:15:31 PDT 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 22530e7985083032fe708848abb88b77be78e5ce 60fdd988d16ea624d2fd732cf03ee0fc69a14abc -- clang/include/clang/Analysis/FlowSensitive/MapLattice.h
``````````

</details>

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

``````````diff
diff --git a/clang/include/clang/Analysis/FlowSensitive/MapLattice.h b/clang/include/clang/Analysis/FlowSensitive/MapLattice.h
index 9d7afbe6ae..b2d147e4ae 100644
--- a/clang/include/clang/Analysis/FlowSensitive/MapLattice.h
+++ b/clang/include/clang/Analysis/FlowSensitive/MapLattice.h
@@ -49,7 +49,7 @@ public:
 
   MapLattice() = default;
 
-  explicit MapLattice(Container C) : C { std::move(C) } {};
+  explicit MapLattice(Container C) : C{std::move(C)} {};
 
   // The `bottom` element is the empty map.
   static MapLattice bottom() { return MapLattice(); }

``````````

</details>


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


More information about the cfe-commits mailing list