mirror of
https://github.com/verilator/verilator.git
synced 2026-10-05 17:43:31 +02:00
Fix missing includes with multiple inheritance (#3819 partial)
This commit is contained in:
@@ -296,9 +296,9 @@ class EmitCHeader final : public EmitCConstInit {
|
||||
void emitAll(const AstNodeModule* modp) {
|
||||
// Include files required by this AstNodeModule
|
||||
if (const AstClass* const classp = VN_CAST(modp, Class)) {
|
||||
if (classp->extendsp()) {
|
||||
puts("#include \""
|
||||
+ prefixNameProtect(classp->extendsp()->classp()->classOrPackagep())
|
||||
for (const AstClassExtends* extp = classp->extendsp(); extp;
|
||||
extp = VN_AS(extp->nextp(), ClassExtends)) {
|
||||
puts("#include \"" + prefixNameProtect(extp->classp()->classOrPackagep())
|
||||
+ ".h\"\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user