Skip to content

Commit 246df8a

Browse files
author
martin
committed
Make sure that member functions are correctly marked as override
It seems that adding one override to a class triggers clang's override check.
1 parent e3e2333 commit 246df8a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/goto-diff/goto_diff_parse_options.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class optionst;
4343
class goto_diff_parse_optionst : public parse_options_baset
4444
{
4545
public:
46-
virtual int doit();
47-
virtual void help();
46+
int doit() override;
47+
void help() override;
4848

4949
goto_diff_parse_optionst(int argc, const char **argv);
5050

src/goto-instrument/goto_instrument_parse_options.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ Author: Daniel Kroening, [email protected]
129129
class goto_instrument_parse_optionst : public parse_options_baset
130130
{
131131
public:
132-
virtual int doit();
133-
virtual void help();
132+
int doit() override;
133+
void help() override;
134134

135135
goto_instrument_parse_optionst(int argc, const char **argv)
136136
: parse_options_baset(

0 commit comments

Comments
 (0)