[PATCH] D45015: [Preprocessor] Allow libc++ to detect when aligned allocation is unavailable.
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 11 15:41:05 PDT 2018
EricWF added a comment.
In https://reviews.llvm.org/D45015#1064922, @vsapsai wrote:
> Another approach is `__has_feature` but I don't think it is applicable in this case.
>
> Is there a way right now to detect that aligned allocation is supported by clang, regardless of link time? Asking to make sure we are consistent.
There is a C++ feature test macro, as specified by the standard, `__cpp_aligned_new`. But I'm not sure how to be consistent with that.
Repository:
rC Clang
https://reviews.llvm.org/D45015
More information about the cfe-commits
mailing list