AaronBallman wrote: > I think it would be more useful in practice if the deprecation warnings > respected lazy evaluation, as the PR suggests, but it's worth noting that > this deviates from the C Standard, which specifies that macros are replaced > first, before short-circuit evaluation takes place.
Ooof, that's a really good point. C23 6.10.2p13: > Prior to evaluation, macro invocations in the list of preprocessing tokens > that will become the controlling constant expression are replaced (except for > those macro names modified by the defined unary operator), just as in normal > text. ... https://github.com/llvm/llvm-project/pull/123912 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits