Skip to content

Commit

Permalink
Fix clang override warning (last commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnyder committed Sep 16, 2023
1 parent 8bd1c63 commit 783b7ec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/V3AstNodeOther.h
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ class AstFunc final : public AstNodeFTask {
}
ASTGEN_MEMBERS_AstFunc;
bool hasDType() const override { return true; }
AstNodeFTask* cloneType(const string& name) {
AstNodeFTask* cloneType(const string& name) override {
return new AstFunc{fileline(), name, nullptr, nullptr};
}
};
Expand All @@ -2128,7 +2128,7 @@ class AstLet final : public AstNodeFTask {
BROKEN_RTN(!VN_IS(stmtsp(), StmtExpr));
return nullptr;
}
AstNodeFTask* cloneType(const string& name) { return new AstLet{fileline(), name}; }
AstNodeFTask* cloneType(const string& name) override { return new AstLet{fileline(), name}; }
};
class AstProperty final : public AstNodeFTask {
// A property inside a module
Expand All @@ -2137,7 +2137,7 @@ class AstProperty final : public AstNodeFTask {
: ASTGEN_SUPER_Property(fl, name, stmtp) {}
ASTGEN_MEMBERS_AstProperty;
bool hasDType() const override { return true; }
AstNodeFTask* cloneType(const string& name) {
AstNodeFTask* cloneType(const string& name) override {
return new AstProperty{fileline(), name, nullptr};
}
};
Expand All @@ -2147,7 +2147,9 @@ class AstTask final : public AstNodeFTask {
AstTask(FileLine* fl, const string& name, AstNode* stmtp)
: ASTGEN_SUPER_Task(fl, name, stmtp) {}
ASTGEN_MEMBERS_AstTask;
AstNodeFTask* cloneType(const string& name) { return new AstTask{fileline(), name, nullptr}; }
AstNodeFTask* cloneType(const string& name) override {
return new AstTask{fileline(), name, nullptr};
}
};

// === AstNodeFile ===
Expand Down

0 comments on commit 783b7ec

Please sign in to comment.