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

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 21 07:18:29 PDT 2026


================
@@ -2538,6 +2538,28 @@ class Sema final : public SemaBase {
   bool CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes,
                                  bool OrNull);
 
+  /// Late-parsed bounds types dropped while their declarator was built. The
+  /// attribute has already been diagnosed and its node is no longer part of
+  /// any type, so the completion pass must skip it rather than parse its
+  /// argument and complete it.
+  llvm::SmallPtrSet<const BoundsAttributedType *, 4>
----------------
erichkeane wrote:

```suggestion
  llvm::SmallPtrSet<const BoundsAttributedType *>
```

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


More information about the llvm-branch-commits mailing list