[libcxx-commits] [libcxx] [libc++] Add [[gnu::nodebug]] on type traits (PR #128502)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 24 04:35:23 PST 2025
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 72791fef6d6c84b72cb961b288b25283bea97310 21def1b2ce7acb1c74230f1ce99bbe856191b7e2 --extensions ,cpp,h -- libcxx/include/__algorithm/simd_utils.h libcxx/include/__compare/common_comparison_category.h libcxx/include/__compare/compare_three_way_result.h libcxx/include/__functional/bind.h libcxx/include/__iterator/common_iterator.h libcxx/include/__iterator/concepts.h libcxx/include/__iterator/iterator_traits.h libcxx/include/__mdspan/extents.h libcxx/include/__memory/pointer_traits.h libcxx/include/__ranges/drop_view.h libcxx/include/__ranges/repeat_view.h libcxx/include/__ranges/reverse_view.h libcxx/include/__ranges/subrange.h libcxx/include/__ranges/take_view.h libcxx/include/__ranges/transform_view.h libcxx/include/__tuple/make_tuple_types.h libcxx/include/__type_traits/add_rvalue_reference.h libcxx/include/__type_traits/common_reference.h libcxx/include/__type_traits/strip_signature.h libcxx/include/__utility/pair.h libcxx/include/array libcxx/include/complex libcxx/include/experimental/__simd/declaration.h libcxx/include/tuple libcxx/include/variant libcxx/test/tools/clang_tidy_checks/nodebug_on_aliases.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__utility/pair.h b/libcxx/include/__utility/pair.h
index 27a0154778..c09f202669 100644
--- a/libcxx/include/__utility/pair.h
+++ b/libcxx/include/__utility/pair.h
@@ -506,7 +506,8 @@ template <class _T1, class _T2, class _U1, class _U2, template <class> class _TQ
typename pair<common_reference_t<_TQual<_T1>, _UQual<_U1>>, common_reference_t<_TQual<_T2>, _UQual<_U2>>>;
}
struct basic_common_reference<pair<_T1, _T2>, pair<_U1, _U2>, _TQual, _UQual> {
- using type _LIBCPP_NODEBUG = pair<common_reference_t<_TQual<_T1>, _UQual<_U1>>, common_reference_t<_TQual<_T2>, _UQual<_U2>>>;
+ using type _LIBCPP_NODEBUG =
+ pair<common_reference_t<_TQual<_T1>, _UQual<_U1>>, common_reference_t<_TQual<_T2>, _UQual<_U2>>>;
};
template <class _T1, class _T2, class _U1, class _U2>
``````````
</details>
https://github.com/llvm/llvm-project/pull/128502
More information about the libcxx-commits
mailing list