forked from github/verilator
Internals: Fix missing final. No functional change.
This commit is contained in:
parent
0102efd4ea
commit
c371a63d41
@ -455,7 +455,7 @@ string AstVar::cPubArgType(bool named, bool forReturn) const {
|
|||||||
return arg;
|
return arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
class dpiTypesToStringConverter {
|
class dpiTypesToStringConverter VL_NOT_FINAL {
|
||||||
public:
|
public:
|
||||||
virtual string openArray(const AstVar*) const { return "const svOpenArrayHandle"; }
|
virtual string openArray(const AstVar*) const { return "const svOpenArrayHandle"; }
|
||||||
virtual string bitLogicVector(const AstVar* varp, bool isBit) const {
|
virtual string bitLogicVector(const AstVar* varp, bool isBit) const {
|
||||||
@ -486,7 +486,7 @@ string AstVar::dpiArgType(bool named, bool forReturn) const {
|
|||||||
if (forReturn) {
|
if (forReturn) {
|
||||||
return dpiTypesToStringConverter{}.convert(this);
|
return dpiTypesToStringConverter{}.convert(this);
|
||||||
} else {
|
} else {
|
||||||
class converter : public dpiTypesToStringConverter {
|
class converter final : public dpiTypesToStringConverter {
|
||||||
virtual string bitLogicVector(const AstVar* varp, bool isBit) const override {
|
virtual string bitLogicVector(const AstVar* varp, bool isBit) const override {
|
||||||
return string(varp->isReadOnly() ? "const " : "")
|
return string(varp->isReadOnly() ? "const " : "")
|
||||||
+ dpiTypesToStringConverter::bitLogicVector(varp, isBit) + '*';
|
+ dpiTypesToStringConverter::bitLogicVector(varp, isBit) + '*';
|
||||||
@ -509,7 +509,7 @@ string AstVar::dpiArgType(bool named, bool forReturn) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string AstVar::dpiTmpVarType(const string& varName) const {
|
string AstVar::dpiTmpVarType(const string& varName) const {
|
||||||
class converter : public dpiTypesToStringConverter {
|
class converter final : public dpiTypesToStringConverter {
|
||||||
string m_name;
|
string m_name;
|
||||||
string arraySuffix(const AstVar* varp, size_t n) const {
|
string arraySuffix(const AstVar* varp, size_t n) const {
|
||||||
if (AstUnpackArrayDType* unpackp
|
if (AstUnpackArrayDType* unpackp
|
||||||
|
Loading…
Reference in New Issue
Block a user