[clang] [BoundsSafety] Unify ParseLexedAttributeTokens (PR #206689)

Yeoul Na via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 17 09:39:11 PDT 2026


================
@@ -783,20 +767,17 @@ void Parser::ParseLexedAttribute(LateParsedAttribute &LPA, bool EnterScope,
       Actions.ActOnReenterFunctionContext(Actions.CurScope, D);
     }
 
-    ParseGNUAttributeArgs(&LPA.AttrName, LPA.AttrNameLoc, Attrs,
-                          /*EndLoc=*/nullptr, /*ScopeName=*/nullptr,
-                          SourceLocation(), ParsedAttr::Form::GNU(),
-                          /*D=*/nullptr);
+    ParsedAttributes Parsed = ParseLexedAttributeTokens(LPA);
+    Attrs.takeAllAppendingFrom(Parsed);
 
     if (HasFuncScope)
       Actions.ActOnExitFunctionContext();
   } else if (OutAttrs) {
----------------
rapidsna wrote:

Could you please cherry-pick it to downstream (swiftlang)? If this is unreachable even in the downstream, we should just remove it.

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


More information about the cfe-commits mailing list