[clang] [clang] Suggest using __VA_OPT__(,) instead of GNU zero variadic macro argument (PR #188624)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 01:13:37 PDT 2026
================
@@ -523,7 +530,16 @@ void TokenLexer::ExpandFunctionArguments() {
Macro->isVariadic()) {
VaArgsPseudoPaste = true;
// Remove the paste operator, report use of the extension.
- PP.Diag(ResultToks.pop_back_val().getLocation(), diag::ext_paste_comma);
+ const bool VaOptSupport = hasVaOptSupport(PP.getLangOpts());
----------------
serge-sans-paille wrote:
ok, out-of-curiosity, why is non-const prefered?
https://github.com/llvm/llvm-project/pull/188624
More information about the cfe-commits
mailing list