@@ -39,8 +39,8 @@ void test() {
(void)std::forward_like(i); // expected-error {{no matching function
for call to 'forward_like'}}
(void)std::forward_like(i); // expected-error {{no matching function
for call to 'forward_like'}}
- using fpr = void()&;
- using fprr = v
https://github.com/mordante demilestoned
https://github.com/llvm/llvm-project/pull/117841
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante milestoned
https://github.com/llvm/llvm-project/pull/117841
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
mordante wrote:
I've removed the ones added by your merge.
https://github.com/llvm/llvm-project/pull/123495
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
mordante wrote:
> Thanks @mordante, for explaining, but i don't think that i could remove a
> reviewer? Could i?
Do you have commit access for LLVM? If not you might indeed not be able to.
https://github.com/llvm/llvm-project/pull/123495
___
cfe-comm
https://github.com/mordante approved this pull request.
Thanks, LGTM!
https://github.com/llvm/llvm-project/pull/126352
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
mordante wrote:
> Okay, i have no idea what just happened, why was everyone asked for review?
> BTW, got everything resolved
>
> * Add recommended tests.
>
> * Made the diagnostic message clear and concise.
>
> * Add release notes
>
>
> Also, i see the typo correction is unpredi
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl
Message-ID:
In-Reply-To:
@@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT,
_Traits>::__parse_character_escape(
if (__hd == -1)
__throw_regex_error();
__sum = 16 * __sum + static_cast(__hd);
- // fall
Max =?utf-8?b?8J+RqPCfj73igI3wn5K7?= Copl
Message-ID:
In-Reply-To:
@@ -3921,7 +3921,7 @@ _ForwardIterator basic_regex<_CharT,
_Traits>::__parse_character_escape(
if (__hd == -1)
__throw_regex_error();
__sum = 16 * __sum + static_cast(__hd);
- // fall
mordante wrote:
> > Should we prefix this with `__builtin_` as mentioned in [#98310
> > (comment)](https://github.com/llvm/llvm-project/issues/98310#issuecomment-2221105713)
> > ?
>
> Yes, if we are doing this, we should be consistent going forward
I would like that. It's easier directly dete
https://github.com/mordante commented:
I like the idea of this patch.
I mainly glossed over the patch to see what it does since it's WIP. Some
comments.
https://github.com/llvm/llvm-project/pull/90803
___
cfe-commits mailing list
cfe-commits@lists.ll
@@ -0,0 +1,355 @@
+#
===--===##
+#
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/90803
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,355 @@
+#
===--===##
+#
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-
https://github.com/mordante approved this pull request.
Thanks LGTM!
https://github.com/llvm/llvm-project/pull/85263
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1386,9 +1386,19 @@ inline _LIBCPP_HIDE_FROM_ABI constexpr decltype(auto)
apply(_Fn&& __f, _Tuple&&
std::forward<_Tuple>(__t),
typename
__make_tuple_indices>>::type{}))
+#if _LIBCPP_STD_VER >= 20
template
inline _LIBCPP_HIDE_FROM_ABI constexpr _Tp __mak
https://github.com/mordante commented:
Thanks a lot! I have one minor comment after that I'm happy. I'd like to have a
quick look at your fix.
https://github.com/llvm/llvm-project/pull/85263
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/85263
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
mordante wrote:
Thanks!
https://github.com/llvm/llvm-project/pull/85943
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante closed
https://github.com/llvm/llvm-project/pull/85943
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1386,9 +1386,19 @@ inline _LIBCPP_HIDE_FROM_ABI constexpr decltype(auto)
apply(_Fn&& __f, _Tuple&&
std::forward<_Tuple>(__t),
typename
__make_tuple_indices>>::type{}))
+#if _LIBCPP_STD_VER >= 20
template
inline _LIBCPP_HIDE_FROM_ABI constexpr _Tp __mak
https://github.com/mordante ready_for_review
https://github.com/llvm/llvm-project/pull/85943
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -3,20 +3,29 @@
// RUN: rm -rf %t && split-file %s %t && cd %t
// RUN: mkdir -p %t/Inputs/usr/lib/x86_64-linux-gnu
// RUN: touch %t/Inputs/usr/lib/x86_64-linux-gnu/libc++.so
+// RUN: touch %t/Inputs/usr/lib/x86_64-linux-gnu/libc++.a
// RUN: %clang -print-library-module-man
https://github.com/mordante created
https://github.com/llvm/llvm-project/pull/85943
This adds a libc++ to modules.json as is currently used by libc++. When
libc++.so is not found the function will search for libc++.a as fallback.
>From 9fdea5b6f70b6c2ef9215e28d21f9f233ed61af1 Mon Sep 17 00:00:
@@ -195,6 +195,34 @@ void test_noexcept() {
}
}
+namespace LWG3528 {
+template >
+struct can_make_from_tuple : std::false_type {};
+template
+struct can_make_from_tuple<
+_Tp,
+_Tuple,
+std::void_t(
mordante wrote:
I'm not too happy with the
@@ -195,6 +195,34 @@ void test_noexcept() {
}
}
+namespace LWG3528 {
+template >
+struct can_make_from_tuple : std::false_type {};
+template
+struct can_make_from_tuple<
+_Tp,
+_Tuple,
+std::void_t(
+std::declval<_Tuple>(),
+std::declval<
+
@@ -195,6 +195,34 @@ void test_noexcept() {
}
}
+namespace LWG3528 {
+template >
mordante wrote:
```suggestion
template >
```
https://github.com/llvm/llvm-project/pull/85263
___
cfe-commits mailing list
cfe-com
mordante wrote:
> Can we also have a fallback check for stdlibs that don't have a `.so` version
> (such as embedded)? Something as simple as:
>
> ```c++
> std::string lib = GetFilePath("libc++.so", TC);
> if (lib.empty())
> lib = GetFilePath("libc++.a", TC);
> ```
Excellent point
mordante wrote:
Build system don't use this yet (since it wasn't available). I know CMake is
working on implementing modules using libc++. Looking at the stage of the
release I feel less comfortable to propose new features. So I think the feature
should not be back ported.
I'm happy to pick t
@@ -1227,12 +1227,11 @@ C++14 implementation status
-(7): In Clang 3.7 and later, sized deallocation is only
enabled
-if the user passes the -fsized-deallocation flag. The user must
-supply definitions of the sized deallocation functions, either by providing
them
-explicit
mordante wrote:
> > > > The file we're looking for is `modules.json`; Renaming it
> > > > `libc++.modules.json` like `.so` / `.a` file might be a better idea
> > > > which could avoid name clashes when installed in `/usr/lib`.
> > >
> > >
> > > but i didn't rename it, it was with the libc++ p
mordante wrote:
> > The file we're looking for is `modules.json`; Renaming it
> > `libc++.modules.json` like `.so` / `.a` file might be a better idea which
> > could avoid name clashes when installed in `/usr/lib`.
>
> but i didn't rename it, it was with the libc++ prefix directly :/
Good poi
mordante wrote:
The file we're looking for is `modules.json`; Renaming it `libc++.modules.json`
like `.so` / `.a` file might be a better idea which could avoid name clashes
when installed in `/usr/lib`.
https://github.com/llvm/llvm-project/pull/84881
___
https://github.com/mordante approved this pull request.
Thanks for picking it up @ChuanqiXu9 and thanks for testing @kaz7.
https://github.com/llvm/llvm-project/pull/84881
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cg
mordante wrote:
> The point is to build libraries and test clang at once. The `TC.getFilePaths`
> is constructed from following items in `ToolChain::ToolChain`
>
> 1. `BUILD/bin/../lib/x86_64-unknown-linux-gnu`
>
> 2. `%t/Inputs/usr/lib/x86_64-linux-gnu`
>
> 3. `%t/Inputs/usr/lib`
mordante wrote:
@AMP999 I wanted to merge this for you but there are merge conflicts. Can you
resolve these?
https://github.com/llvm/llvm-project/pull/77092
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman
https://github.com/mordante approved this pull request.
I have only reviewed the libc++ changes and they LGTM.
https://github.com/llvm/llvm-project/pull/83774
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailma
mordante wrote:
Thanks for the revert and additional information. I was expecting that the test
should not be affected by files outside of the `%t/Inputs` directory. I will
test this locally, it might take a few days before I have time.
https://github.com/llvm/llvm-project/pull/82160
_
@@ -21,6 +21,9 @@
// GCC doesn't support the aligned-allocation flags.
// XFAIL: gcc
+// TODO(mordante) fix this test after updating clang in Docker
+// UNSUPPORTED: clang-15, clang-16, clang-17, clang-18
mordante wrote:
I hope to start testing with clang-19
@@ -8,11 +8,13 @@
// test sized operator delete[] replacement.
+// TODO(mordante) fix this test after updating clang in Docker
+// UNSUPPORTED: clang-15, clang-16, clang-17, clang-18
// UNSUPPORTED: sanitizer-new-delete, c++03, c++11
+// XFAIL: apple-clang
-// NOTE: Clang
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/83774
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante commented:
I only looked at the libc++ changes and have some minor comments to update this
patch to the latest libc++ style.
https://github.com/llvm/llvm-project/pull/83774
___
cfe-commits mailing list
cfe-commits@lists.llv
mordante wrote:
> @mordante if we want this for 18, we need to land and backport it in this
> week.
Thanks for the reminder, it got a bit under my radar. I'll ask a backport
tomorrow unless a CI starts to complain again.
https://github.com/llvm/llvm-project/pull/82160
https://github.com/mordante closed
https://github.com/llvm/llvm-project/pull/82160
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/82160
>From cb3f20463548110617fd555ac11ee58d5b8b7ad5 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Sun, 18 Feb 2024 12:57:33 +0100
Subject: [PATCH 1/2] Reland "[clang][modules] Print library module manifest
path
mordante wrote:
> (This is another example that the github review can't work well with the
> reverted patches...)
>
> @mordante I think you can add `// REQUIRES: x86-registered-target` to the
> test if @kaz7 can't respond quickly. It will skip the test on targets other
> than x86. And it shou
https://github.com/mordante created
https://github.com/llvm/llvm-project/pull/82160
This implements a way for the compiler to find the modules.json associated with
the C++23 Standard library modules.
This is based on a discussion in SG15. At the moment no Standard library
installs this manife
mordante wrote:
@kaz7 ping, can you have a look at the patch, I really like to reland this
patch.
https://github.com/llvm/llvm-project/pull/76451
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/c
mordante wrote:
@kaz7 ping
https://github.com/llvm/llvm-project/pull/76451
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/80823
>From 560713b5d45236956198654a10e0795eb56cad7b Mon Sep 17 00:00:00 2001
From: Vlad Serebrennikov
Date: Tue, 6 Feb 2024 13:23:36 +0300
Subject: [PATCH 1/3] [Clang] Add some CodeGen tests for CWG 2xx issues
This
mordante wrote:
Thanks for reverting @AaronBallman I somehow missed this comment.
@kaz7 it should work on all platforms AFAIK. I don't have access to a VE
system. Looking at some VE tests I wonder whether the following patch would
work.
[patch.txt](https://github.com/llvm/llvm-project/files/14
mordante wrote:
> @mordante I guess the PR missed LLVM18 release. I'll update the release notes
> accordingly. Is that OK?
Yes. It would have been nice to get this in LLVM 18, but I don't feel it's
critical to backport it. (Especially since it's a C++26 only feature and I
expect very few peop
https://github.com/mordante closed
https://github.com/llvm/llvm-project/pull/76451
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
mordante wrote:
> LGTM with a few nits. Can you double check modules.json is inside `lib/`
> (`usr/lib/x86_64-linux-gnu{{/|\\}}modules.json`) instead of some directory
> under `include`?
Thanks for the review. The json will indeed be installed in the lib dir in
libc++.
https://github.com/llv
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 01/13] [clang][modules] Print library module manifest path.
This
mordante wrote:
@MaskRay can you have another look, it would be great to land this before LLVM
18 branches, thanks!
https://github.com/llvm/llvm-project/pull/76451
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/
@@ -0,0 +1,397 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
https://github.com/mordante approved this pull request.
LGTM modulo one typo.
https://github.com/llvm/llvm-project/pull/77967
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/77967
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 01/12] [clang][modules] Print library module manifest path.
This
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 01/11] [clang][modules] Print library module manifest path.
This
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 01/10] [clang][modules] Print library module manifest path.
This
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 1/9] [clang][modules] Print library module manifest path.
This i
@@ -0,0 +1,458 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
@@ -0,0 +1,172 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
@@ -0,0 +1,458 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
@@ -0,0 +1,172 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
https://github.com/mordante requested changes to this pull request.
> I did some re-imagining of the tests, there is a some redundancy but it is
> cleared that nothing was missed. The tests are formatted in tabular form
> manually to make them easier to read.
Redundant code in tests when if i
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/77967
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1,5 +1,5 @@
-//===--===//
//
+//===--===//
mordante wrote:
This changes seems unintended.
https://github.com/llvm/llvm-pr
https://github.com/mordante approved this pull request.
LGTM modulo one nit.
https://github.com/llvm/llvm-project/pull/77164
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -280,6 +280,14 @@
// - `_LIBCPP_ASSERT_NON_OVERLAPPING_RANGES` -- for functions that take
several ranges as arguments, checks that the
// given ranges do not overlap.
//
+// - `_LIBCPP_ASSERT_VALID_DEALLOCATION` -- checks that an attempt to
deallocate memory is valid (e.
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/77164
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 1/8] [clang][modules] Print library module manifest path.
This i
https://github.com/mordante approved this pull request.
Still LGTM!
https://github.com/llvm/llvm-project/pull/76449
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/76447
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 1/7] [clang][modules] Print library module manifest path.
This i
@@ -1513,6 +1519,11 @@
__sanitizer_verify_double_ended_contiguous_container(const void*, const void*, c
#define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
# endif
+// Clang-18 has support for deducing this, but it does not set the FTM.
+#if defined(__cpp_explicit_this_
@@ -7,7 +7,8 @@
// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20, c++23
// UNSUPPORTED: GCC-ALWAYS_INLINE-FIXME
-// XFAIL: clang-16 || clang-17
+// The tested functionality needs deducing this.
+// UNSUPPORTED: clang-16 || clang-17 || apple-clang
mordante wro
https://github.com/mordante approved this pull request.
Thanks LGTM modulo a few minor comment.
https://github.com/llvm/llvm-project/pull/76449
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe
@@ -470,4 +470,9 @@ inline Tp const& DoNotOptimize(Tp const& value) {
# define TEST_IF_AIX(arg_true, arg_false) arg_false
#endif
+// Clang-18 has support for deducing this, but it does not set the FTM.
+#if defined(__cpp_explicit_this_parameter) || (defined(_LIBCPP_CLANG_VER)
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/76449
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -1273,6 +1293,24 @@ public:
__impl_.__swap(__that.__impl_);
}
+# if _LIBCPP_STD_VER >= 26 && defined(_LIBCPP_HAS_EXPLICIT_THIS_PARAMETER)
+ struct __variant_visit_barrier_tag { // unnamable when using standard
library modules
mordante wrote:
I'm n
@@ -0,0 +1,357 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apa
@@ -1130,6 +1137,19 @@ using __best_match_t = typename
invoke_result_t<_MakeOverloads<_Types...>, _Tp,
} // namespace __variant_detail
+template < class _Visitor, class... _Vs, typename =
void_t()))...> >
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
@@ -1267,7 +1267,11 @@ def add_version_header(tc):
},
{
"name": "__cpp_lib_variant",
-"values": {"c++17": 202102},
+"values": {
+"c++17": 202102, # std::visit for classes derived from
std::variant
+
@@ -0,0 +1,48 @@
+//===--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apac
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/76447
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante requested changes to this pull request.
Mostly LGTM, I like to see it again for a quick look.
https://github.com/llvm/llvm-project/pull/76447
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi
@@ -1130,6 +1137,19 @@ using __best_match_t = typename
invoke_result_t<_MakeOverloads<_Types...>, _Tp,
} // namespace __variant_detail
+template < class _Visitor, class... _Vs, typename =
void_t()))...> >
mordante wrote:
Clang-format needs to be compatible
@@ -1130,6 +1137,19 @@ using __best_match_t = typename
invoke_result_t<_MakeOverloads<_Types...>, _Tp,
} // namespace __variant_detail
+template < class _Visitor, class... _Vs, typename =
void_t()))...> >
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_AVAILABILITY_THROW_BAD_VARIANT_ACCESS
@@ -144,7 +144,8 @@ _LIBCPP_HIDE_FROM_ABI decltype(auto)
__visit_format_arg(_Visitor&& __vis, basic_
__libcpp_unreachable();
}
-# if _LIBCPP_STD_VER >= 26
+# if _LIBCPP_STD_VER >= 26 && (!defined(_LIBCPP_COMPILER_CLANG_BASED) ||
_LIBCPP_CLANG_VER >= 1800)
---
https://github.com/mordante edited
https://github.com/llvm/llvm-project/pull/78215
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -555,6 +556,7 @@ inline _LIBCPP_HIDE_FROM_ABI
_LIBCPP_AVAILABILITY_THROW_BAD_ANY_CAST _ValueType
template
inline _LIBCPP_HIDE_FROM_ABI add_pointer_t>
any_cast(any const* __any) _NOEXCEPT {
+ static_assert(!is_void_v<_ValueType>, "_ValueType may not be void.");
-
https://github.com/mordante approved this pull request.
LGTM!
https://github.com/llvm/llvm-project/pull/78215
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/mordante updated
https://github.com/llvm/llvm-project/pull/76451
>From f3f0db64da4d341f8e4a2054f9f25c87f8eda829 Mon Sep 17 00:00:00 2001
From: Mark de Wever
Date: Wed, 27 Dec 2023 17:34:10 +0100
Subject: [PATCH 1/6] [clang][modules] Print library module manifest path.
This i
@@ -0,0 +1,40 @@
+// Test that -print-library-module-manifest-path finds the correct file.
mordante wrote:
not per se, I thought this was common in clang, I'll remove it.
https://github.com/llvm/llvm-project/pull/76451
___
@@ -0,0 +1,40 @@
+// Test that -print-library-module-manifest-path finds the correct file.
+
+// RUN: rm -rf %t
+// RUN: mkdir -p %t
+// RUN: touch %t/libc++.so
+// RUN: split-file %s %t
+// RUN: cd %t
+
+// RUN: %clang -print-library-module-manifest-path \
+// RUN: -stdlib=li
@@ -0,0 +1,40 @@
+// Test that -print-library-module-manifest-path finds the correct file.
+
+// RUN: rm -rf %t
mordante wrote:
I copied the 3 line version from another test, I'll fix it.
https://github.com/llvm/llvm-project/pull/76451
__
@@ -144,7 +144,8 @@ _LIBCPP_HIDE_FROM_ABI decltype(auto)
__visit_format_arg(_Visitor&& __vis, basic_
__libcpp_unreachable();
}
-# if _LIBCPP_STD_VER >= 26
+# if _LIBCPP_STD_VER >= 26 && (!defined(_LIBCPP_COMPILER_CLANG_BASED) ||
_LIBCPP_CLANG_VER >= 1800)
---
1 - 100 of 310 matches
Mail list logo