[cfe-dev] [patch] add cxx_auto and cxx_for_range to has_extension

Jean-Daniel Dupas jddupas at gmail.com
Mon Sep 5 00:46:39 PDT 2011


Hello,

I just saw that a recent commit add support of "auto type" and "for range" to c++98 as language extension. (r39102: PR10458: Finesse behaviour of C++0x features when in pre-0x mode. Accept for-range and auto with an ExtWarn, and produce a -Wc++0x-compat warning in C++98 mode when auto is used as a storage class.)

Shouldn't be this changed reflected in the __has_extension macro like other language extensions ? 

I attach a patch to fix this inconsistency.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: extension.patch
Type: application/octet-stream
Size: 1587 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110905/77945c00/attachment.obj>


More information about the cfe-dev mailing list