Implement the MS extension __identifier properly: take a token and strip it of

its keywordliness.

llvm-svn: 203987
This commit is contained in:
Richard Smith
2014-03-15 00:06:08 +00:00
parent cec949af13
commit ae385084c5
5 changed files with 74 additions and 10 deletions

View File

@@ -517,10 +517,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
Builder.defineMacro("_WCHAR_T_DEFINED");
Builder.defineMacro("_NATIVE_WCHAR_T_DEFINED");
}
if (LangOpts.CPlusPlus) {
// FIXME: Support Microsoft's __identifier extension in the lexer.
Builder.append("#define __identifier(x) x");
}
}
if (LangOpts.Optimize)