mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
CPP code-gen: Mark child classes final, remove final from function defs
This commit is contained in:
parent
0e40f7e6af
commit
73adf2bf01
2 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ void CPPCompile::GenInitExpr(std::shared_ptr<CallExprInitInfo> ce_init)
|
|||
|
||||
// Create the Func subclass that can be used in a CallExpr to
|
||||
// evaluate 'e'.
|
||||
Emit("class %s : public CPPFunc", wc);
|
||||
Emit("class %s final : public CPPFunc", wc);
|
||||
StartBlock();
|
||||
|
||||
Emit("public:");
|
||||
|
@ -57,7 +57,7 @@ void CPPCompile::GenInitExpr(std::shared_ptr<CallExprInitInfo> ce_init)
|
|||
|
||||
EndBlock();
|
||||
|
||||
Emit("ValPtr Invoke(zeek::Args* args, Frame* parent) const override final");
|
||||
Emit("ValPtr Invoke(zeek::Args* args, Frame* parent) const override");
|
||||
StartBlock();
|
||||
|
||||
if ( IsNativeType(t) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue