3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-16 13:58:47 +00:00

synthprop: Use override keyword

`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.
This commit is contained in:
Krystine Sherwin 2025-03-21 10:28:48 +13:00
parent b9f0fabff0
commit 45225d1391
No known key found for this signature in database

View file

@ -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");
@ -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);