[cfe-dev] Setting default dialect to C++11

David Majnemer via cfe-dev cfe-dev at lists.llvm.org
Sun Feb 26 17:38:03 PST 2017


On Fri, Feb 24, 2017 at 1:11 PM, Richard Smith via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On 24 February 2017 at 12:33, Robinson, Paul via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> Is it about time to advance Clang's default C++ dialect to C++11?
>> It has been stuck on 98/03 for quite some time now.
>>
>
> See http://lists.llvm.org/pipermail/cfe-dev/2016-June/049725.html for
> some prior discussion on this.
>
> Generally I think this is overdue, and that we should go straight to C++14
> rather than stopping at C++11 (like GCC did).
>

This policy makes sense. With GCC's change, projects must explicitly
specify a -std if they insist on a particular language standard and as such
changing Clang's default shouldn't make things any better or worse.


>
>
>> Charles Li has been doing a lot of patient work for a long time to get
>> Clang's lit tests to be compatible with C++11.  There are only 16 tests
>> that still need to be reviewed:
>>
>> https://reviews.llvm.org/D20710
>> https://reviews.llvm.org/D21626
>>
>> Once those are in, we should be able to update the default.
>>
>> Even if it is not time to update the default for everyone, I would
>> *really* LOVE to set the default dialect for the PS4 target.  That
>> would at least make sure there is no future back-sliding with regards
>> to future test changes, because our public PS4-target bots will catch
>> those cases.  But, those last 16 tests need to be fixed up before we
>> can do that.
>>
>> Anybody willing to give some LGTM on the tests, we'd be very grateful.
>> And any thoughts about upgrading the default for everyone, rather than
>> just for PS4, would also be welcome.
>>
>> Thanks,
>> --paulr
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170226/5adbcf10/attachment.html>


More information about the cfe-dev mailing list