[PATCH] D11233: [MS Compat] Allow _Atomic(Type) and 'struct _Atomic' to coexist
Richard Smith
richard at metafoo.co.uk
Wed Jul 22 16:26:52 PDT 2015
rsmith accepted this revision.
rsmith added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: lib/Parse/ParseDeclCXX.cpp:1896
@@ +1895,3 @@
+ if (getLangOpts().MSVCCompat && Tok.is(tok::kw__Atomic) &&
+ GetLookAheadToken(1).is(tok::less))
+ Tok.setKind(tok::identifier);
----------------
`GetLookAheadToken(1)` is more commonly written as `NextToken()`.
http://reviews.llvm.org/D11233
More information about the cfe-commits
mailing list