================
@@ -2597,6 +2605,29 @@ class Sema final : public SemaBase {
bool ActOnLateParsedTypeAttrArgument(BoundsAttributedType *BATy,
FieldDecl *FD, Expr *Arg);
+ /// Check the count \p E of a counted_by-family attribute on \p ParamTy, the
+ /// declared type of a parameter or the pointer it points to: it must be a
+ /// non-boolean integer naming a parameter or dereferencing one, \p ParamTy
----------------
Holo-xy wrote:
> nit: I was confused by this. How would an integer be able to name a parameter?
"it" referes to "E" meaning E must be a non boolean integer that names or
derferenes a param.
> Anyway, maybe the comment doesn't need to specify the valid semantics of a
> count expression. I think it would be enough to say that this function checks
> that it's valid, and then specify the checks in the implementation.
agreed. changed it.
https://github.com/llvm/llvm-project/pull/230538
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits