[clang] [clang] Generate note on declaration for nodiscard-related attributes (PR #112289)

via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 08:32:59 PDT 2024


Sirraide wrote:

> Here the specialization is named, which is potentially helpful.

Hmm, the diagnostic for the error here isn’t particularly great to begin with; I feel like it should instead mention that the return *type*, not the function, is marked `nodiscard`, which might be enough to fix the situation for partial specialisations?

https://github.com/llvm/llvm-project/pull/112289


More information about the cfe-commits mailing list