diff options
| author | Petr Machata <[email protected]> | 2010-10-01 16:51:48 +0200 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2010-10-01 16:51:48 +0200 |
| commit | ea0dc974162987dc18ee05f51baf3a2ce6598a18 (patch) | |
| tree | 4d223a9e2e28ccb089608c5aff462c95d28cb5a3 /dwarflint/option.hh | |
| parent | b99dc1e7c7c691ceaf8a76c7c23f689b8ffc0b53 (diff) | |
dwarflint: Use wrapper to print check descriptions
- this should make it easier to write them
- also use argp to print out properly formatted help for each check. Drop
a bunch of code that was necessary to do things the old way
Diffstat (limited to 'dwarflint/option.hh')
| -rw-r--r-- | dwarflint/option.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dwarflint/option.hh b/dwarflint/option.hh index 15a9bf46..45109a99 100644 --- a/dwarflint/option.hh +++ b/dwarflint/option.hh @@ -93,12 +93,12 @@ protected: static int get_short_option (char opt_short); public: + virtual ~option_i () {} + virtual bool seen () const = 0; virtual argp_option const &build_option () const = 0; virtual error_t parse_opt (char *arg, argp_state *state) = 0; virtual int key () const = 0; - virtual std::string format () const = 0; - virtual ~option_i () {} }; class option_common @@ -132,8 +132,6 @@ public: { return _m_opt.key; } - - std::string format () const; }; template<class arg_type> |
