]> granicus.if.org Git - clang/commit
Add a test to distinguish between reserved tokens and normal identifiers.
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 11 Apr 2014 20:55:19 +0000 (20:55 +0000)
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>
Fri, 11 Apr 2014 20:55:19 +0000 (20:55 +0000)
commitbfd91e65a139a7c1357ba7105b2ebbabfc2a0192
tree72044cbaa6771553e6e2350c3d85127c1fa1eb13
parenta00a56b905a1e6a1102f21fad0b4ca71e647d8b5
Add a test to distinguish between reserved tokens and normal identifiers.

The -fms-extensions option affects a number of subtle front-end C/C++
behaviors, and it would be useful to be able to distinguish MS keywords
from regular identifiers in the ms-extensions mode even if the triple
does not define a Windows target. It should make life easier if anyone
needs to port their Windows codes to elsewhere.

Differential Revision: http://reviews.llvm.org/D3034

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206069 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Lex/Preprocessor.h
lib/Lex/PPMacroExpansion.cpp
test/Lexer/keywords_test.c [new file with mode: 0644]