[clang] [BoundsSafety][Sema] Allow counted_by and counted_by_or_null on pointers where the pointee type is incomplete but potentially completable (PR #106321)
Dan Liew via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 08:27:14 PDT 2024
================
@@ -186,4 +218,370 @@ bool Sema::CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes,
return false;
}
+SourceRange Sema::BoundsSafetySourceRangeFor(const CountAttributedType *CATy) {
----------------
delcypher wrote:
I've dropped the hacky implementation in favor of just using the SourceRange attached to the count expression. I've filed #113582 to track resolving this properly.
https://github.com/llvm/llvm-project/pull/106321
More information about the cfe-commits
mailing list