[clang] [BoundsSafety][NFC] Add the count-refill logic for late-parsed bounds attributes (PR #224556)

Yeoul Na via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 09:09:35 PDT 2026


================
@@ -4896,6 +4896,54 @@ void Parser::ParseLexedTypeAttribute(LateParsedTypeAttribute &LA,
   OutAttrs.takeAllAppendingFrom(Attrs);
 }
 
+void Parser::CompleteLateParsedTypeAttributes(
+    SmallVectorImpl<LateParsedTypeAttribute *> &LateTypeAttrs) {
+  for (LateParsedTypeAttribute *LTA : LateTypeAttrs) {
+    // Read these out before parsing, which destroys the attribute. The type is
----------------
rapidsna wrote:

Yes, I should've labeled it. Just added to the PR description. And I'll cut down comments further.

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


More information about the cfe-commits mailing list