Skip to content

Commit

Permalink
synthprop: Use override keyword
Browse files Browse the repository at this point in the history
`formatted_help()` introduced the override keyword, which means that the other two methods that were marked as virtual instead raised a warning about inconsistent use of override.  This fixes that by bringing the synthprop (more) in line with the rest of the code-base.
  • Loading branch information
KrystalDelusion committed Mar 4, 2025
1 parent 46765a8 commit f9a09f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions passes/sat/synthprop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ struct SyntProperties : public Pass {
return false;
}

virtual void help()
void help() override
{
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
log("\n");
Expand Down Expand Up @@ -216,7 +216,7 @@ struct SyntProperties : public Pass {
log("\n");
}

virtual void execute(std::vector<std::string> args, RTLIL::Design* design)
void execute(std::vector<std::string> args, RTLIL::Design* design) override
{
log_header(design, "Executing SYNTHPROP pass.\n");
SynthPropWorker worker(design);
Expand Down

0 comments on commit f9a09f5

Please # to comment.