mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
Consistent use of 'override' for virtual methods in derived classes.
o Not all derived methods were marked 'override', but it is a great feature of C++11 that we should make use of. o While at it: touched header files got a -*- c++ -*- for emacs to provide support for that language. o use YS_OVERRIDE for all override keywords (though we should probably use the plain keyword going forward now that C++11 is established)
This commit is contained in:
@@ -1120,7 +1120,7 @@ void handle_cell(Cell *cell, const rules_t &rules)
|
||||
|
||||
struct MemoryBramPass : public Pass {
|
||||
MemoryBramPass() : Pass("memory_bram", "map memories to block rams") { }
|
||||
virtual void help()
|
||||
void help() YS_OVERRIDE
|
||||
{
|
||||
// |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
|
||||
log("\n");
|
||||
@@ -1210,7 +1210,7 @@ struct MemoryBramPass : public Pass {
|
||||
log("the data bits to accommodate the enable pattern of port A.\n");
|
||||
log("\n");
|
||||
}
|
||||
virtual void execute(vector<string> args, Design *design)
|
||||
void execute(vector<string> args, Design *design) YS_OVERRIDE
|
||||
{
|
||||
rules_t rules;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user