[clang] [BoundsSafety] Support late parsing for `counted_by` in type positions (PR #166491)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 04:13:07 PST 2025


================
@@ -2457,8 +2457,8 @@ class Sema final : public SemaBase {
   /// `counted_by_or_null` attribute.
   ///
   /// \returns false iff semantically valid.
-  bool CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes,
-                                 bool OrNull);
+  bool CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, unsigned Level,
----------------
zmodem wrote:

In other places you call it NestedTypeLevel which is more descriptive.

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


More information about the cfe-commits mailing list