]> granicus.if.org Git - clang/commit
Generalize future keyword compat diagnostics.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 14 May 2015 04:00:59 +0000 (04:00 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 14 May 2015 04:00:59 +0000 (04:00 +0000)
commit58123c9b060c461f17956d6dc0b0c9bc9fc90af0
tree0372b3b01502e77c211317d7cff2a07b3729d1f4
parent7aa6af9b78bed02f36b0d5b0b9db7ffe3f689648
Generalize future keyword compat diagnostics.

This, in preparation for the introduction of more new keywords in the
implementation of the C++ language, generalizes the support for future keyword
compat diagnostics (e.g., diag::warn_cxx11_keyword) by extending the
applicability of the relevant property in IdentifierTable with appropriate
renaming.

Patch by Hubert Tong!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237332 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/IdentifierTable.h
include/clang/Basic/TokenKinds.def
lib/Basic/IdentifierTable.cpp
lib/Lex/Preprocessor.cpp