[clang] [Clang][Lex] Implement CWG3013: Error if #embed parameters were defined as macros (PR #224769)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 21 07:21:53 PDT 2026
================
@@ -879,6 +880,11 @@ void Preprocessor::updateOutOfDateIdentifier(const IdentifierInfo &II) const {
getExternalSource()->updateOutOfDateIdentifier(II);
}
+static bool isProtectedEmbedParameterName(const IdentifierInfo *II) {
+ return II->isStr("limit") || II->isStr("prefix") || II->isStr("suffix") ||
+ II->isStr("if_empty");
----------------
Fznamznon wrote:
I'm not a fan of that hardcoding given that these parameters might be subject to extensions.
https://github.com/llvm/llvm-project/pull/224769
More information about the cfe-commits
mailing list