[clang] [BoundsSafety] Unify ParseLexedAttributeTokens (PR #206689)
Mohammed Ashraf via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 17 08:28:03 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) {
----------------
Holo-xy wrote:
There isn't a caller that reaches that path currently, but I'm not sure if there's a scenario where we would have 0 decls and a non-null OutAttrs (ParseLexedCAttribute had that guard before my first unify PR).
https://github.com/llvm/llvm-project/pull/206689
More information about the cfe-commits
mailing list