[llvm-branch-commits] [clang] [BoundsSafety] support counted_by family on function parameters (PR #230538)
Mohammed Ashraf via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Oct 23 08:56:18 PDT 2026
================
@@ -273,6 +286,153 @@ bool Sema::CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes,
return false;
}
+bool Sema::CheckCountedByAttrOnParam(QualType ParamTy, Expr *E,
----------------
Holo-xy wrote:
I moved the checks they have in common into one shared helper for both.
https://github.com/llvm/llvm-project/pull/230538
More information about the llvm-branch-commits
mailing list