Sirraide wrote:

> My opinion is that the function's attribute should take precedence since it 
> is "more specific". GCC/MSVC trunk agrees with me and prints Reason 2 in 
> warning, while Clang trunk prints Reason 1. ([Compiler 
> Explorer](https://godbolt.org/z/h3dYoe96c)). After this PR, Clang will also 
> print Reason 2 here.

That sounds reasonable, yeah.

https://github.com/llvm/llvm-project/pull/112521
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to