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

Yihe Li via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 15 08:48:49 PDT 2024


Mick235711 wrote:

> That is, keep the current wording if the function is nodiscard, but change it to mention the type instead if the type is marked nodiscard—provided there is a relatively straight-forward way of doing this.

I think this should be okay-ish to implement since we basically already have that information when implementing the note anyway. Will try to implement this tomorrow, if I can find some time...

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


More information about the cfe-commits mailing list