[clang] [clang] Generate note on declaration for nodiscard-related attributes (PR #112289)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 09:51:07 PDT 2024
================
@@ -9290,6 +9290,8 @@ def warn_unused_result_typedef_unsupported_spelling : Warning<
def warn_unused_volatile : Warning<
"expression result unused; assign into a variable to force a volatile load">,
InGroup<DiagGroup<"unused-volatile-lvalue">>;
+def note_nodiscard_specified_here : Note<
----------------
erichkeane wrote:
Still want this combined/generalized. These are incredibly similar in both use and content.
https://github.com/llvm/llvm-project/pull/112289
More information about the cfe-commits
mailing list