[clang] [BoundsSafety] Support bounds-safety attributes in type positions (PR #179612)

Yeoul Na via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 16 14:52:40 PST 2026


================
@@ -268,12 +268,13 @@ void Parser::ParseCXXNonStaticMemberInitializer(Decl *VarD) {
   Toks.push_back(Eof);
 }
 
-Parser::LateParsedDeclaration::~LateParsedDeclaration() {}
-void Parser::LateParsedDeclaration::ParseLexedMethodDeclarations() {}
-void Parser::LateParsedDeclaration::ParseLexedMemberInitializers() {}
-void Parser::LateParsedDeclaration::ParseLexedMethodDefs() {}
-void Parser::LateParsedDeclaration::ParseLexedAttributes() {}
-void Parser::LateParsedDeclaration::ParseLexedPragmas() {}
+LateParsedDeclaration::~LateParsedDeclaration() {}
+void LateParsedDeclaration::ParseLexedMethodDeclarations() {}
+void LateParsedDeclaration::ParseLexedMemberInitializers() {}
+void LateParsedDeclaration::ParseLexedMethodDefs() {}
+void LateParsedDeclaration::ParseLexedAttributes() {}
+void LateParsedDeclaration::ParseLexedTypeAttributes() {}
+void LateParsedDeclaration::ParseLexedPragmas() {}
----------------
rapidsna wrote:

Agreed. I tried to make the change minimal (e.g., keeping original code local when I can), but to properly refactor this move, I probably need to introduce new files for LateParsedXXX. 

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


More information about the cfe-commits mailing list