[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:10:01 PDT 2024


https://github.com/Sirraide commented:

Hmm, I can’t really think of a situation when this note would actually help... at least for `deprecated`, you could *maybe* argue that you might want to know what part of the codebase marked it as deprecated in case there are multiple declarations, but for `nodiscard`, I don’t think you really care that much, so I feel like this might just be adding noise instead of helping. Imo just the error is enough, but that’s just my opinion.

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


More information about the cfe-commits mailing list