Sirraide wrote:

> Another possible issue is that clang supports the format attribute on 
> non-variadic functions, which GCC doesn't. This diagnostic can suggest adding 
> the attribute to such functions, which would cause an error when compiling 
> with GCC. Should I just disable that case?

That’s a good point; we probably shouldn’t issue a fixit that when applied 
causes GCC to error... we might still be able to add an implicit format 
attribute as suggested by 
https://github.com/llvm/llvm-project/pull/166738#discussion_r2504843326 though.

https://github.com/llvm/llvm-project/pull/166738
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to