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

Chandler Carruth chandlerc at google.com
Mon Sep 5 01:20:25 PDT 2011


- cfe-dev
+ cfe-commits

(patches usually go to cfe-commits)

On Mon, Sep 5, 2011 at 12:46 AM, Jean-Daniel Dupas <jddupas at gmail.com>wrote:

> 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.
>

Seems likely good, but I'll let the person who flipped the switch chime in.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110905/6c671a83/attachment.html>


More information about the cfe-dev mailing list