]> granicus.if.org Git - clang/commit
Simplify RevertibleTypeTraits as a form of contextual keyword
authorAlp Toker <alp@nuanti.com>
Tue, 17 Dec 2013 14:12:30 +0000 (14:12 +0000)
committerAlp Toker <alp@nuanti.com>
Tue, 17 Dec 2013 14:12:30 +0000 (14:12 +0000)
commit19f1317211b0de172e8b1852612e3ac70a6be4cc
tree76cfe145bafbad55873a291f14989852b095db64
parent3c9eb4a7502f2883de43467233396bc253fca868
Simplify RevertibleTypeTraits as a form of contextual keyword

Now that we emit diagnostics for keyword-as-identifier hacks (-Wkeyword-compat)
we can go ahead and simplify some of the old revertible keyword support.

This commit adds a TryIdentKeywordUpgrade() function to mirror the recently
added TryKeywordIdentFallback() and uses it to replace the hard-coded list of
REVERTIBLE_TYPE_TRAITs.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197496 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Parse/Parser.h
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExpr.cpp
lib/Parse/Parser.cpp