From f1a3f9bf0d9a90ed254f08a2a35ea55ef938547f Mon Sep 17 00:00:00 2001 From: Yingchi Long Date: Thu, 2 May 2024 11:26:01 +0800 Subject: [PATCH] libnixf: insert `[[nodiscard]]` (NFC) --- libnixf/include/nixf/Basic/Diagnostic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnixf/include/nixf/Basic/Diagnostic.h b/libnixf/include/nixf/Basic/Diagnostic.h index a01642a56..7228c48b3 100644 --- a/libnixf/include/nixf/Basic/Diagnostic.h +++ b/libnixf/include/nixf/Basic/Diagnostic.h @@ -131,7 +131,7 @@ class Note : public PartialDiagnostic { [[nodiscard]] virtual const char *sname() const { return sname(kind()); } - NoteKind kind() const { return Kind; } + [[nodiscard]] NoteKind kind() const { return Kind; } [[nodiscard]] static const char *message(NoteKind Kind);