active -Wsuggest-override where supported

* m4/gccwarn.m4: Add the option.
* bin/autfilt.cc, bin/common_output.hh, bin/dstar2tgba.cc,
bin/ltl2tgba.cc, bin/ltl2tgta.cc, bin/ltlcross.cc, bin/ltldo.cc,
bin/ltlfilt.cc, bin/ltlgrind.cc, spot/kripke/kripke.hh,
spot/ltsmin/ltsmin.cc, spot/ta/ta.hh, spot/ta/tgtaproduct.hh,
spot/taalgos/dot.cc, spot/taalgos/reachiter.hh,
spot/taalgos/statessetbuilder.cc, spot/taalgos/stats.cc,
spot/twa/twaproduct.cc, spot/twaalgos/emptiness.cc,
spot/twaalgos/gtec/ce.cc, spot/twaalgos/lbtt.cc,
spot/twaalgos/ndfs_result.hxx, spot/twaalgos/stats.hh,
spot/twaalgos/tau03opt.cc, tests/core/ngraph.cc: Add suggested override
qualifiers.
This commit is contained in:
Alexandre Duret-Lutz 2016-07-27 10:10:50 +02:00
parent da464d8199
commit 64c7036660
26 changed files with 84 additions and 94 deletions

View file

@ -398,7 +398,7 @@ namespace spot
return nullptr;
}
const state* filter(const state* s)
const state* filter(const state* s) override
{
if (!h.has_been_visited(s)
|| seen.find(s) != seen.end()
@ -412,9 +412,10 @@ namespace spot
return s;
}
void finalize(const std::map<const state*, twa_run::step,
state_ptr_less_than>&,
const twa_run::step&, const state*, twa_run::steps&)
void
finalize(const std::map<const state*,
twa_run::step, state_ptr_less_than>&,
const twa_run::step&, const state*, twa_run::steps&) override
{
}
@ -423,7 +424,7 @@ namespace spot
return seen;
}
bool match(twa_run::step&, const state* dest)
bool match(twa_run::step&, const state* dest) override
{
return target->compare(dest) == 0;
}
@ -493,7 +494,7 @@ namespace spot
return nullptr;
}
const state* filter(const state* s)
const state* filter(const state* s) override
{
ndfsr_trace << "filter: " << a_->format_state(s);
if (!h.has_been_visited(s) || seen.find(s) != seen.end())
@ -514,7 +515,7 @@ namespace spot
return s;
}
bool match(twa_run::step&, const state* dest)
bool match(twa_run::step&, const state* dest) override
{
ndfsr_trace << "match: " << a_->format_state(dest)
<< std::endl;