[all-commits] [llvm/llvm-project] 85c810: [C] Diagnose use of C++ keywords in C (#137234)
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Fri May 2 04:20:24 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85c810060e1a2a90dc4ec184b4c4275db17ef28f
https://github.com/llvm/llvm-project/commit/85c810060e1a2a90dc4ec184b4c4275db17ef28f
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2025-05-02 (Fri, 02 May 2025)
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/Sema/SemaDecl.cpp
M clang/test/OpenMP/assumes_messages.c
A clang/test/Sema/c++-keyword-in-c.c
A clang/test/Sema/c++-keyword-in-objc.m
Log Message:
-----------
[C] Diagnose use of C++ keywords in C (#137234)
This adds a new diagnostic group, -Wc++-keyword, which is off by default
and grouped under -Wc++-compat. The diagnostic catches use of C++
keywords in C code.
This change additionally fixes an issue with -Wreserved-identifier not
diagnosing use of reserved identifiers in function parameter lists in a
function declaration which is not a definition.
Fixes https://github.com/llvm/llvm-project/issues/21898
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list