Skip to content

Commit

Permalink
libnixf: insert [[nodiscard]] (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed May 2, 2024
1 parent 4b2cd83 commit f1a3f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnixf/include/nixf/Basic/Diagnostic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f1a3f9b

Please sign in to comment.