[clang] [clang][Lex] Diagnose keywords in macro expansions (PR #242626)
Chen Miao via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 1 01:07:55 PST 2026
================
@@ -2382,6 +2382,9 @@ class Preprocessor {
IdentifierInfo *LookUpIdentifierInfo(Token &Identifier) const;
private:
+ /// Diagnose keyword compatibility and extension uses.
+ void diagnoseKeywordUsage(const Token &Identifier, IdentifierInfo &II);
----------------
ChenMiaoi wrote:
Hou about `diagnoseIdentifierPortability`?
https://github.com/llvm/llvm-project/pull/242626
More information about the cfe-commits
mailing list