[all-commits] [llvm/llvm-project] 41667a: Diagnosing the Future Keywords
Muhammad Usman Shahid via All-commits
all-commits at lists.llvm.org
Fri Aug 26 06:20:32 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41667a8b9b624e282e7c08fadf7091223728d1c1
https://github.com/llvm/llvm-project/commit/41667a8b9b624e282e7c08fadf7091223728d1c1
Author: Muhammad Usman Shahid <codesbyusman at gmail.com>
Date: 2022-08-26 (Fri, 26 Aug 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Basic/DiagnosticGroups.td
M clang/include/clang/Basic/DiagnosticLexKinds.td
M clang/include/clang/Basic/IdentifierTable.h
M clang/include/clang/Basic/TokenKinds.def
M clang/lib/Basic/IdentifierTable.cpp
M clang/lib/Lex/Preprocessor.cpp
M clang/lib/Parse/ParseDeclCXX.cpp
M clang/test/Lexer/keywords_test.c
M clang/test/Lexer/keywords_test.cpp
M clang/test/Parser/static_assert.c
Log Message:
-----------
Diagnosing the Future Keywords
The patch diagnoses an identifier as a future keyword if it exists in a
future language mode, such as:
int restrict;
in C modes earlier than C99. We now give a warning to the user that
such an identifier is a future keyword. Handles keywords from C as well
as C++.
Differential Revision: https://reviews.llvm.org/D131683
More information about the All-commits
mailing list