ltl: use "final" and "override" in the AST classes
* src/ltlast/atomic_prop.hh, src/ltlast/binop.hh, src/ltlast/bunop.hh, src/ltlast/constant.hh, src/ltlast/unop.hh: Here. * src/misc/common.hh: Disable final for swig3.0.
This commit is contained in:
parent
6f572ebcc8
commit
63da386a66
6 changed files with 18 additions and 15 deletions
|
|
@ -36,7 +36,7 @@ namespace spot
|
|||
|
||||
/// \ingroup ltl_ast
|
||||
/// \brief Unary operators.
|
||||
class SPOT_API unop : public formula
|
||||
class SPOT_API unop final : public formula
|
||||
{
|
||||
public:
|
||||
enum type {
|
||||
|
|
@ -87,7 +87,7 @@ namespace spot
|
|||
/// handle this one as well.
|
||||
static const formula* instance(type op, const formula* child);
|
||||
|
||||
virtual void accept(visitor& v) const;
|
||||
virtual void accept(visitor& v) const override;
|
||||
|
||||
/// Get the sole operand of this operator.
|
||||
const formula* child() const
|
||||
|
|
@ -105,7 +105,7 @@ namespace spot
|
|||
const char* op_name() const;
|
||||
|
||||
/// Return a canonic representation of the atomic proposition
|
||||
virtual std::string dump() const;
|
||||
virtual std::string dump() const override;
|
||||
|
||||
/// Number of instantiated unary operators. For debugging.
|
||||
static unsigned instance_count();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue