[PATCH] Generalize future keyword compat diagnostics

Hubert Tong hubert.reinterpretcast at gmail.com
Wed May 13 08:07:47 PDT 2015


Hi rsmith, faisalv, fraggamuffin,

In preparation for the introduction of more new keywords in the
implementation of the C++ language, generalize 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.

The code in the preprocessor which generates `diag::warn_cxx11_keyword`
is updated to choose an appropriate message based on the TokenKind
database, which has in turn been modified for easy selection of the
relevant keywords.

http://reviews.llvm.org/D9750

Files:
  include/clang/Basic/IdentifierTable.h
  include/clang/Basic/TokenKinds.def
  lib/Basic/IdentifierTable.cpp
  lib/Lex/Preprocessor.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9750.25693.patch
Type: text/x-patch
Size: 7716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150513/9dd9c71a/attachment.bin>


More information about the cfe-commits mailing list