[libcxx-commits] [libcxx] [libc++] Address post-commit comments for __scope_guard (PR #116291)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 14 14:37:44 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 691bd184e628bac8a2d7385dba1057cfcd844689 a91e0de7c03d6609418982a4849f4d25926aecf8 --extensions h -- libcxx/include/__utility/scope_guard.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__utility/scope_guard.h b/libcxx/include/__utility/scope_guard.h
index d149729fa7..fade9bd3d7 100644
--- a/libcxx/include/__utility/scope_guard.h
+++ b/libcxx/include/__utility/scope_guard.h
@@ -38,6 +38,7 @@ public:
 // C++14 doesn't have mandatory RVO, so we have to provide a declaration even though no compiler will ever generate
 // a call to the move constructor.
 #if _LIBCPP_STD_VER <= 14
+
 private:
   __scope_guard(__scope_guard&&);
 #else

``````````

</details>


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


More information about the libcxx-commits mailing list