<div dir="ltr">Kevin, thanks for the patch!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 10:02 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I went ahead and added these in r216270.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Aug 22, 2014 at 9:37 AM, Hans Wennborg <span dir="ltr"><<a href="mailto:hans@chromium.org" target="_blank">hans@chromium.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, Aug 21, 2014 at 2:38 PM, Smith, Kevin B <<a href="mailto:kevin.b.smith@intel.com" target="_blank">kevin.b.smith@intel.com</a>> wrote:<br>


</div><div>> I was playing around with CLANG for windows (clang-cl.exe) and noticed that this doesn't support<br>
> _int64, but that it does support __int64.  For Microsoft compiler both __int64 and _int64 are recognized<br>
> as a keyword and basic type.<br>
<br>
</div>[...]<br>
<div><br>
> $ svn diff<br>
> Index: include/clang/Basic/TokenKinds.def<br>
> ===================================================================<br>
> --- include/clang/Basic/TokenKinds.def  (revision 216129)<br>
> +++ include/clang/Basic/TokenKinds.def  (working copy)<br>
> @@ -558,6 +558,7 @@<br>
>  ALIAS("_uuidof"          , __uuidof   , KEYMS | KEYBORLAND)<br>
>  ALIAS("_inline"          , inline     , KEYMS)<br>
>  ALIAS("_declspec"        , __declspec , KEYMS)<br>
> +ALIAS("_int64"           , __int64    , KEYMS)<br>
><br>
>  // Borland Extensions which should be disabled in strict conformance mode.<br>
>  ALIAS("_pascal"      , __pascal   , KEYBORLAND)<br>
<br>
</div>Thank you for the patch! Yes, this looks like the right approach. We<br>
should do the same for _int8, _int16 and _int32. Like Richard pointed<br>
out, this needs a test (test/Lexer/ms-extensions.c is probably a good<br>
place). Would you like to add this to your patch, and then we can<br>
commit it for you?<br>
<br>
(David pointed out that the single-underscore variants of these types<br>
aren't available in MSVC with /Za, so maybe one day we should consider<br>
not exposing them with -fms-extensions by default.)<br>
<br>
Thanks,<br>
Hans<br>
<div><div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>