[PATCH] D23453: Add a c2x language mode

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 15 15:07:45 PDT 2016


aaron.ballman marked an inline comment as done.
aaron.ballman added a comment.

In https://reviews.llvm.org/D23453#515816, @rsmith wrote:

> This seems premature; according to the charter, we are more than three years away from the C2x committee draft phase. Perhaps we should wait until we have either a new working draft or a paper approved by the WG14 for such a working draft.


The problem is: I think I need the flag for working on some features that are being proposed, as WG14 does not typically accept novel language features. Specifically, I am planning work on N2049, adding attributes to C. This work will be done under a separate flag anyway (since it's obviously not approved and in the working draft), but I would like the feature to only be enabled for C2x and not C11 or earlier (at least initially) so that I don't have to worry about someone turning on the feature flag for C11 and running into a situation later where we don't want the feature supported in C11 (not that I have such a situation in mind currently). This is not entirely unlike how we don't support C++-style attributes in C++03 mode.


https://reviews.llvm.org/D23453





More information about the cfe-commits mailing list