[clang] [clang] Fix GNU spellings of lifetimebound/lifetime_capture_by (PR #192070)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 14 08:25:17 PDT 2026


================
@@ -734,6 +734,13 @@ static void distributeTypeAttrsFromDeclarator(TypeProcessingState &state,
       continue;
 
     switch (attr.getKind()) {
----------------
erichkeane wrote:

Yeah, this doesn't look right to me.  We're not supposed to have to do manual coverage here, the point here is that attributes that apply to the function type get attached to the function type.  The fact that these AREN'T being distributed properly tells me that either this shouldn't be (which I don't think they should?) and thus adding them to the function type is wrong, or they need to be marked as `FUNCTION_TYPE_ATTRS_CASELIST`,

@AaronBallman probably has a better knowledge of these attributes.  

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


More information about the cfe-commits mailing list