Code Health: apply [[nodiscard]] to functions that return status codes #1271

Closed
opened 2026-01-30 22:20:43 +00:00 by claunia · 0 comments
Owner

Originally created by @binarycrusader on GitHub (May 23, 2019).

Originally assigned to: @binarycrusader on GitHub.

Functions returning status codes should use nodiscard as mentioned recently by @adiviness.

They should also use noexcept, but that's a much more invasive change, so this issue is just about nodiscard.

Originally created by @binarycrusader on GitHub (May 23, 2019). Originally assigned to: @binarycrusader on GitHub. Functions returning status codes should use [[nodiscard]] as [mentioned recently](https://github.com/microsoft/terminal/pull/897#discussion_r286205725) by @adiviness. They should also use noexcept, but that's a much more invasive change, so this issue is just about [[nodiscard]].
claunia added the Issue-BugProduct-MetaArea-CodeHealth labels 2026-01-30 22:20:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1271