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

@ -813,7 +813,7 @@ namespace
}
int
process_formula(spot::formula, const char*, int)
process_formula(spot::formula, const char*, int) override
{
SPOT_UNREACHABLE();
}
@ -1066,7 +1066,7 @@ namespace
}
int
process_file(const char* filename)
process_file(const char* filename) override
{
auto hp = spot::automaton_stream_parser(filename, opt_parse);
int err = 0;

View file

@ -1,6 +1,6 @@
// -*- coding: utf-8 -*-
// Copyright (C) 2012, 2013, 2014, 2015 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
// Copyright (C) 2012, 2013, 2014, 2015, 2016 Laboratoire de Recherche
// et Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
@ -63,7 +63,7 @@ public:
}
virtual void
print(std::ostream& os, const char*) const;
print(std::ostream& os, const char*) const override;
};
class aut_stat_printer: protected spot::stat_printer

View file

@ -118,7 +118,7 @@ namespace
}
int
process_formula(spot::formula, const char*, int)
process_formula(spot::formula, const char*, int) override
{
SPOT_UNREACHABLE();
}
@ -146,7 +146,7 @@ namespace
}
int
process_file(const char* filename)
process_file(const char* filename) override
{
auto hp = spot::automaton_stream_parser(filename, opt_parse);
int err = 0;

View file

@ -125,7 +125,7 @@ namespace
int
process_formula(spot::formula f,
const char* filename = nullptr, int linenum = 0)
const char* filename = nullptr, int linenum = 0) override
{
// This should not happen, because the parser we use can only
// read PSL/LTL formula, but since our formula type can

View file

@ -175,7 +175,7 @@ namespace
int
process_formula(spot::formula f,
const char* filename = nullptr, int linenum = 0)
const char* filename = nullptr, int linenum = 0) override
{
auto aut = trans.run(&f);

View file

@ -826,7 +826,7 @@ namespace
int
process_string(const std::string& input,
const char* filename,
int linenum)
int linenum) override
{
auto pf = parse_formula(input);
if (!pf.f || !pf.errors.empty())
@ -928,7 +928,7 @@ namespace
int
process_formula(spot::formula f,
const char* filename = nullptr, int linenum = 0)
const char* filename = nullptr, int linenum = 0) override
{
static unsigned round = 0;

View file

@ -274,7 +274,7 @@ namespace
int
process_string(const std::string& input,
const char* filename,
int linenum)
int linenum) override
{
spot::parsed_formula pf = parse_formula(input);
@ -294,7 +294,7 @@ namespace
int
process_formula(spot::formula f,
const char* filename = nullptr, int linenum = 0)
const char* filename = nullptr, int linenum = 0) override
{
std::unique_ptr<spot::relabeling_map> relmap;

View file

@ -515,7 +515,7 @@ namespace
int
process_string(const std::string& input,
const char* filename = nullptr, int linenum = 0)
const char* filename = nullptr, int linenum = 0) override
{
spot::parsed_formula pf = parse_formula(input);
@ -548,7 +548,7 @@ namespace
int
process_formula(spot::formula f,
const char* filename = nullptr, int linenum = 0)
const char* filename = nullptr, int linenum = 0) override
{
if (opt_max_count >= 0 && match_count >= opt_max_count)
{

View file

@ -113,7 +113,7 @@ namespace
public:
int
process_formula(spot::formula f, const char* filename = nullptr,
int linenum = 0)
int linenum = 0) override
{
auto mutations =
spot::mutate(f, mut_opts, max_output, mutation_nb, opt_sort);