Re: [PATCH][gcc] Allow functions without C-style ellipsis to use format attribute

2021-07-28 Thread Joseph Myers
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

Re: [PATCH][gcc] Allow functions without C-style ellipsis to use format attribute

2021-07-19 Thread Martin Sebor via Gcc-patches
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 >

Re: [PATCH][gcc] Allow functions without C-style ellipsis to use format attribute

2021-07-04 Thread Tuan Le Quang via Gcc-patches
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

Re: [PATCH][gcc] Allow functions without C-style ellipsis to use format attribute

2021-06-29 Thread Martin Sebor via Gcc-patches
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

[PATCH][gcc] Allow functions without C-style ellipsis to use format attribute

2021-06-27 Thread Tuan Le Quang via Gcc-patches
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