[Concepts] lex keywords: concept and requires
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 5 Jun 2015 01:10:24 +0000 (01:10 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 5 Jun 2015 01:10:24 +0000 (01:10 +0000)
commit6e04f98bc3eea437c3bdf738e3e247dd04181f5d
tree03d2b487254e2bfbeb9b0a1be3a51a90c6368613
parent0c5a9c147681445861c8589685ee57d4aeb0a6e3
[Concepts] lex keywords: concept and requires

Summary:
This patch enables lexing of `concept` and `requires` as keywords.
Further changes which add messages for future keyword compat are to
follow.

Test Plan:
Testing of C++14 + Concepts TS mode is added to
`test/Lexer/keywords_test.cpp`, which expects that the new keywords are
enabled under said mode.

Reviewers: faisalv, fraggamuffin, rsmith

Reviewed By: rsmith

Subscribers: cfe-commits

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

llvm-svn: 239128
clang/include/clang/Basic/TokenKinds.def
clang/lib/Basic/IdentifierTable.cpp
clang/test/Lexer/keywords_test.cpp