diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-09-08 23:09:21 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-09-08 23:09:37 +0200 |
| commit | 677265461b3c596ab2a88858e74b0970196198fe (patch) | |
| tree | 40cb1e82e78221dad294b9a521024936c2b716bc /src/args.hh | |
| parent | bf900719174913774e9559302ac90e11c68ac87a (diff) | |
Make clang-tidy happy
Diffstat (limited to 'src/args.hh')
| -rw-r--r-- | src/args.hh | 6 |
1 files changed, 3 insertions, 3 deletions
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<Args> create(std::string prgname = std::string()); |
