[cfe-dev] Criteria for Accepting Language Extensions into Clang

Douglas Gregor dgregor at apple.com
Thu Jul 21 11:13:30 PDT 2011

On Jul 21, 2011, at 11:12 AM, David Chisnall wrote:

> Sounds good, but I'd like one clarification:
> On 21 Jul 2011, at 18:40, Douglas Gregor wrote:
>> 4) Representation within the appropriate governing organization: For extensions to a language governed by a standards committee (C, C++, OpenCL), the extension itself must have an active proposal and proponent within that committee and have a reasonable chance of acceptance. Clang should drive the standard, not diverge from it.
> How does this mesh with extensions that don't affect standards compliance, such as attributes and pragmas?  Most of the attributes that we support for C are not part of any standard - they're explicitly extensions that most likely will not be added to a standard.  According to this criterion, we should not accept any more attributes or pragmas along the lines of 90% of the ones that we already have...

This criterion doesn't apply to attributes and pragmas. Instead, we'll have to rely on our own judgment (even more) regarding the proper design of the feature.

	- Doug

More information about the cfe-dev mailing list