]> granicus.if.org Git - clang/commit
Unbreak -fms-extensions with GNU libc headers
authorAlp Toker <alp@nuanti.com>
Tue, 26 Nov 2013 01:30:10 +0000 (01:30 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 26 Nov 2013 01:30:10 +0000 (01:30 +0000)
commitd8a96a63a331f5486e88ade9f98195b9ef44c954
tree3d9621896e67cca96028861c7319983d92ec7907
parent9a3700283b0f4cabfd149919ece5767fe5cc5d9e
Unbreak -fms-extensions with GNU libc headers

GNU libc uses '__uptr' as a member name in C mode, conflicting with the
eponymous MSVC pointer modifier keyword.

Detect and mark the token as an identifier when these specific conditions are
met. __uptr will continue to work as a keyword for the remainder of the
translation unit.

Fixes PR17824.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195710 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDecl.cpp
test/Sema/Inputs/ms-keyword-system-header.h [new file with mode: 0644]
test/Sema/ms-keyword-system-header.c [new file with mode: 0644]