[clang] [BoundsSafety] unify ParseLexedAttribute (PR #186033)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 8 21:10:27 PDT 2026
================
@@ -717,20 +717,22 @@ void Parser::ParseLexedAttributes(ParsingClass &Class) {
}
void Parser::ParseLexedAttributeList(LateParsedAttrList &LAs, Decl *D,
- bool EnterScope, bool OnDefinition) {
+ bool EnterScope, bool OnDefinition,
+ ParsedAttributes *OutAttrs) {
assert(LAs.parseSoon() &&
"Attribute list should be marked for immediate parsing.");
for (unsigned i = 0, ni = LAs.size(); i < ni; ++i) {
if (D)
LAs[i]->addDecl(D);
- ParseLexedAttribute(*LAs[i], EnterScope, OnDefinition);
+ ParseLexedAttribute(*LAs[i], EnterScope, OnDefinition, OutAttrs);
delete LAs[i];
}
LAs.clear();
}
-void Parser::ParseLexedAttribute(LateParsedAttribute &LA,
- bool EnterScope, bool OnDefinition) {
+void Parser::ParseLexedAttribute(LateParsedAttribute &LA, bool EnterScope,
----------------
shafik wrote:
Am I the only one that thinks `LA` should be `LPA`?
https://github.com/llvm/llvm-project/pull/186033
More information about the cfe-commits
mailing list