[libcxx-commits] [PATCH] D76636: [RFC] Added type trait to remove address space qualifier from type

Anastasia Stulova via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 25 10:16:09 PDT 2020

Anastasia added a comment.

In D76636#1941260 <https://reviews.llvm.org/D76636#1941260>, @ldionne wrote:

> I agree with @EricWF  here. Libc++ shouldn't become a repository of useful but non-standard utilities. It's useful to sometimes extend standard tools to non-standard concepts (like handling some Objective-C qualifiers when we can), but adding something new that hasn't been standardized is not really the business we want to be into.
> However, @Anastasia , you could consider proposing the attribute for standardization, and if that makes the cut, then we'll be happy to implement it.
> Cheers!

Ok, thanks for the feedback. I will certainly look into this however it may take long time. :)

Btw could we consider adding some sort of Clang specific C++ libs that would leverage the extensions that Clang supports in addition to the standard libraries? Wondering if it is something of interest to other use cases?

For address spaces, in particular, we would probably just need an additional header. We already have a header for OpenCL C that clang adds implicitly... so theoretically the same can be added for C++ for OpenCL. However, I was trying to avoid doing something that is only specific to OpenCL because I do believe a wider community can benefit from such functionality.



More information about the libcxx-commits mailing list