[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 4 01:01:37 PST 2025
================
@@ -498,6 +498,11 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
Builder.defineMacro("__STDC_EMBED_EMPTY__",
llvm::itostr(static_cast<int>(EmbedResult::Empty)));
+ // We define this to '1' here to indicate that we only support '_Defer'
+ // as a keyword; it will be set to '2' by <stddefer.h>.
----------------
cor3ntin wrote:
There is a mismatch between these comment and your implementation of stddefer.h
https://github.com/llvm/llvm-project/pull/162848
More information about the cfe-commits
mailing list