Skip to content

Commit

Permalink
Fix Clang tidy issue with last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Feb 16, 2019
1 parent 3e4ecd1 commit f425f31
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/CLI/FormatterFwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ class FormatterBase {
FormatterBase() = default;
FormatterBase(const FormatterBase &) = default;
FormatterBase(FormatterBase &&) = default;
virtual ~FormatterBase() noexcept {}

/// Adding a destructor in this form to work around bug in GCC 4.7
virtual ~FormatterBase() noexcept {} // NOLINT(modernize-use-equals-default)

/// This is the key method that puts together help
virtual std::string make_help(const App *, std::string, AppFormatMode) const = 0;
Expand Down Expand Up @@ -94,7 +96,8 @@ class FormatterLambda final : public FormatterBase {
explicit FormatterLambda(funct_t funct) : lambda_(std::move(funct)) {}

/// Adding a destructor (mostly to make GCC 4.7 happy)
~FormatterLambda() noexcept override {}
~FormatterLambda() noexcept override {} // NOLINT(modernize-use-equals-default)


/// This will simply call the lambda function
std::string make_help(const App *app, std::string name, AppFormatMode mode) const override {
Expand Down

0 comments on commit f425f31

Please sign in to comment.