[clang] [Clang] Avoid null deref in lambda attribute compat warning (PR #161096)
Corentin Jabot via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 29 03:13:42 PDT 2025
================
@@ -1147,7 +1147,7 @@ def ext_lambda_missing_parens : ExtWarn<
"lambda without a parameter clause is a C++23 extension">,
InGroup<CXX23>;
def warn_cxx20_compat_decl_attrs_on_lambda : Warning<
- "%select{an attribute specifier sequence|%1}0 in this position "
+ "%select{an attribute specifier sequence|%0}1 in this position "
----------------
cor3ntin wrote:
> Should both be normalized to use %0 for the selector and %1 for the attr name?
Yes, i think this would be best
https://github.com/llvm/llvm-project/pull/161096
More information about the cfe-commits
mailing list