[libcxx-commits] [libcxx] [libc++] Fix usage of 'exclude_from_explicit_instantiation' attribute on local class members (PR #89377)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Apr 19 05:27: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 97c60d61d043e21da454226619a98bfb2f2194ee af006a2be7e4dcfc7631a7b06938fb39ed7c6dc3 -- libcxx/include/__memory/uses_allocator_construction.h libcxx/include/variant
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__memory/uses_allocator_construction.h b/libcxx/include/__memory/uses_allocator_construction.h
index 11f59980ed..5e5819d4c2 100644
--- a/libcxx/include/__memory/uses_allocator_construction.h
+++ b/libcxx/include/__memory/uses_allocator_construction.h
@@ -195,9 +195,7 @@ __uses_allocator_construction_args(const _Alloc& __alloc, _Type&& __value) noexc
const _Alloc& __alloc_;
_Type& __value_;
- _LIBCPP_HIDDEN constexpr operator _PairMutable() const {
- return __do_construct(std::forward<_Type>(__value_));
- }
+ _LIBCPP_HIDDEN constexpr operator _PairMutable() const { return __do_construct(std::forward<_Type>(__value_)); }
};
return std::make_tuple(__pair_constructor{__alloc, __value});
``````````
</details>
https://github.com/llvm/llvm-project/pull/89377
More information about the libcxx-commits
mailing list