[cfe-dev] [PROPOSAL] Reintroduce guards for Intel intrinsic headers

James Dennett james.dennett at gmail.com
Thu Jul 30 11:34:00 PDT 2015


On Thu, Jul 30, 2015 at 11:04 AM, Reid Kleckner <rnk at google.com> wrote:

> On Thu, Jul 30, 2015 at 10:33 AM, Eric Christopher <echristo at gmail.com>
> wrote:
>>
>> What kind of file is this? Keep in mind that things in the global
>> namespace prefixed with an underscore is a reserved name for implementers
>> as well. That would make this code not standards compliant as well.
>>
>
> The actual C++ rules are that any name with double underscores is
> reserved, and names beginning with an underscore followed by a capital
> letter.
>

Also, any name starting with an underscore _in the global namespace_.
 [global.names]/2, "Each name that begins with an underscore is reserved to
the implementation for use as a name in the global namespace."


> So, the Intel intrinsics are *not* in the implementer's namespace, but
> that was probably a mistake.
>

Given [global.names]/2, they are in the implementer's namespace (presumably
as intended).

-- James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150730/458ff8f4/attachment.html>


More information about the cfe-dev mailing list