reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaDeclAttr.cpp
  864   if (!checkAttributeAtLeastNumArgs(S, AL, 1) ||
  865       !checkAttributeAtMostNumArgs(S, AL, 2))
  870     S.Diag(AL.getLoc(), diag::warn_attribute_return_pointers_only) << AL;
  870     S.Diag(AL.getLoc(), diag::warn_attribute_return_pointers_only) << AL;
  874   const Expr *SizeExpr = AL.getArgAsExpr(0);
  877   if (!checkPositiveIntArgument(S, AL, SizeExpr, SizeArgNoVal, /*Idx=*/1))
  879   if (!checkParamIsIntegerType(S, FD, AL, /*AttrArgNo=*/0))
  884   if (AL.getNumArgs() == 2) {
  885     const Expr *NumberExpr = AL.getArgAsExpr(1);
  888     if (!checkPositiveIntArgument(S, AL, NumberExpr, Val, /*Idx=*/2))
  890     if (!checkParamIsIntegerType(S, FD, AL, /*AttrArgNo=*/1))
  896                  AllocSizeAttr(S.Context, AL, SizeArgNo, NumberArgNo));