[clang] [clang] Fix inaccurate wording of warn_second_arg_of_va_start_not_last_named_param (PR #131238)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 14 07:31:09 PDT 2025


================
@@ -4893,7 +4893,7 @@ bool Sema::BuiltinVAStart(unsigned BuiltinID, CallExpr *TheCall) {
 
   if (!SecondArgIsLastNamedArgument)
     Diag(TheCall->getArg(1)->getBeginLoc(),
-         diag::warn_second_arg_of_va_start_not_last_named_param);
----------------
erichkeane wrote:

I would have preferred we change the name of the control variable (`SecondArgIsLastNamedArg`) as well/as a part of this.

https://github.com/llvm/llvm-project/pull/131238


More information about the cfe-commits mailing list