From 677265461b3c596ab2a88858e74b0970196198fe Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Mon, 8 Sep 2025 23:09:21 +0200 Subject: Make clang-tidy happy --- src/args.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/args.hh') diff --git a/src/args.hh b/src/args.hh index 75c31b1..2436696 100644 --- a/src/args.hh +++ b/src/args.hh @@ -16,7 +16,7 @@ class Args { public: virtual ~Option() = default; - virtual bool is_set() const = 0; + [[nodiscard]] virtual bool is_set() const = 0; protected: Option() = default; @@ -26,8 +26,8 @@ class Args { class OptionArgument : public Option { public: - virtual bool has_argument() const = 0; - virtual const std::string& argument() const = 0; + [[nodiscard]] virtual bool has_argument() const = 0; + [[nodiscard]] virtual const std::string& argument() const = 0; }; static std::unique_ptr create(std::string prgname = std::string()); -- cgit v1.3