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:
parent
da464d8199
commit
64c7036660
26 changed files with 84 additions and 94 deletions
|
|
@ -313,7 +313,7 @@ namespace spot
|
|||
}
|
||||
|
||||
const state*
|
||||
filter(const state* s)
|
||||
filter(const state* s) override
|
||||
{
|
||||
state_set::const_iterator i = seen.find(s);
|
||||
if (i == seen.end())
|
||||
|
|
@ -327,7 +327,7 @@ namespace spot
|
|||
}
|
||||
|
||||
bool
|
||||
match(twa_run::step&, const state* dest)
|
||||
match(twa_run::step&, const state* dest) override
|
||||
{
|
||||
return target->find(dest) != target->end();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ namespace spot
|
|||
}
|
||||
|
||||
const state*
|
||||
filter(const state* s)
|
||||
filter(const state* s) override
|
||||
{
|
||||
r->inc_ars_prefix_states();
|
||||
auto i = ecs->h.find(s);
|
||||
|
|
@ -60,7 +60,7 @@ namespace spot
|
|||
}
|
||||
|
||||
bool
|
||||
match(twa_run::step&, const state* dest)
|
||||
match(twa_run::step&, const state* dest) override
|
||||
{
|
||||
return target->find(dest) != target->end();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ namespace spot
|
|||
|
||||
|
||||
void
|
||||
process_state(const state* s, int n, twa_succ_iterator*)
|
||||
process_state(const state* s, int n, twa_succ_iterator*) override
|
||||
{
|
||||
--n;
|
||||
if (n == 0)
|
||||
|
|
@ -93,7 +93,7 @@ namespace spot
|
|||
|
||||
void
|
||||
process_link(const state*, int,
|
||||
const state*, int out, const twa_succ_iterator* si)
|
||||
const state*, int out, const twa_succ_iterator* si) override
|
||||
{
|
||||
body_ << out - 1 << ' ';
|
||||
if (!sba_format_)
|
||||
|
|
@ -107,7 +107,7 @@ namespace spot
|
|||
}
|
||||
|
||||
void
|
||||
end()
|
||||
end() override
|
||||
{
|
||||
os_ << seen.size() << ' ';
|
||||
if (sba_format_)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// -*- coding: utf-8 -*-
|
||||
// Copyright (C) 2008, 2011, 2012, 2013, 2014, 2015 Laboratoire de
|
||||
// Copyright (C) 2008, 2011, 2012, 2013, 2014, 2015, 2016 Laboratoire de
|
||||
// Recherche et Développement de l'Epita (LRDE).
|
||||
// Copyright (C) 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
|
|
@ -66,7 +66,7 @@ namespace spot
|
|||
}
|
||||
|
||||
virtual void
|
||||
print(std::ostream& os, const char*) const;
|
||||
print(std::ostream& os, const char*) const override;
|
||||
};
|
||||
|
||||
/// \brief prints various statistics about a TGBA
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ namespace spot
|
|||
///
|
||||
/// \return non null pointer iff the algorithm has found an
|
||||
/// accepting path.
|
||||
virtual emptiness_check_result_ptr check()
|
||||
virtual emptiness_check_result_ptr check() override
|
||||
{
|
||||
if (!st_blue.empty())
|
||||
return nullptr;
|
||||
|
|
@ -113,7 +113,7 @@ namespace spot
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
virtual std::ostream& print_stats(std::ostream &os) const
|
||||
virtual std::ostream& print_stats(std::ostream &os) const override
|
||||
{
|
||||
os << states() << " distinct nodes visited" << std::endl;
|
||||
os << transitions() << " transitions explored" << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue