On Mon, 19 Jul 2021, Martin Sebor via Gcc-patches wrote:
> You've answered my questions about the design (thank you) and I don't
> have any objections to the idea, but I'm not in a position to approve
> the patch. I would suggest to get Jason's input on extending
> attribute format to variadic fu
On 7/5/21 12:38 AM, Tuan Le Quang wrote:
Hi Martin,
Thank you for your quick response.
> The main benefit of variadic functions templates over C vararg
> functions is that they make use of the type system for type safety.
> I'm not sure I see applying attribute format to them as a very
>
Hi Martin,
Thank you for your quick response.
> The main benefit of variadic functions templates over C vararg
> functions is that they make use of the type system for type safety.
> I'm not sure I see applying attribute format to them as a very
> compelling use case. (I'd expect the format
On 6/27/21 10:24 PM, Tuan Le Quang via Gcc-patches wrote:
Hi,
Currently, format attribute can be used to do type-checking for arguments
with respect to a format string. However, only functions with a C-style
ellipsis can use it.
Supporting this attribute for non-variadic functions(functions wit
Hi,
Currently, format attribute can be used to do type-checking for arguments
with respect to a format string. However, only functions with a C-style
ellipsis can use it.
Supporting this attribute for non-variadic functions(functions without a
C-style ellipsis) gives nice convenience especially w