[cfe-dev] [libcxx] using has_extension instead of has_feature
Jean-Daniel Dupas
devlists at shadowlab.org
Fri Aug 12 02:25:36 PDT 2011
Hello,
I'd like to propose to use __has_extension instead of __has_feature to detect available features in libc++ headers.
Using __has_feature prevent usage of functionalities provided by clang as extension when compiling in older standard mode.
As __has_extension is a superset of __has_feature, it should not have any effect on people using the library in c++0x mode.
And when using -pedantic, __has_extension have the same behavior than __has_feature, so it is always be possible to disable extensions if needed.
Path to perform this change (if accepted) attached.
Thanks
-- Jean-Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: has_extension.patch
Type: application/octet-stream
Size: 22583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110812/2a470c46/attachment.obj>
More information about the cfe-dev
mailing list