]> granicus.if.org Git - clang/commit
Allow operator keywords to be #defined in ms-ext mode.
authorNico Weber <nicolasweber@gmx.de>
Wed, 29 Feb 2012 22:54:43 +0000 (22:54 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 29 Feb 2012 22:54:43 +0000 (22:54 +0000)
commitf4fb07ed4dfd144a39d904fc77b3b0bab580eb2e
tree7691901b68d3535b3fedfc8e401e41f8747a7574
parentbab0d39dbc417c9ea093df66b8134fb85a95f843
Allow operator keywords to be #defined in ms-ext mode.

Fixes PR10606.

I'm not sure if this is the best way to go about it, but
I locally enabled this code path without the msext conditional,
and all tests pass, except for test/Preprocessor/cxx_oper_keyword.cpp
which explicitly checks that operator keywords can't be redefined.

I also parsed chromium/win with a clang with and without this patch.
It introduced no new errors, but removes 43 existing errors.

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