Skip to content

Commit 8d83ae1

Browse files
authored
ignore virtual base classes (#497)
1 parent 8e5cdf8 commit 8d83ae1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

oi/type_graph/ClangTypeParser.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ void ClangTypeParser::enumerateClassParents(const clang::RecordType& ty,
333333
if (baseType.isNull())
334334
continue;
335335

336+
if (base.isVirtual())
337+
continue;
338+
336339
auto* baseCxxDecl = baseType->getAsCXXRecordDecl();
337340
if (baseCxxDecl == nullptr)
338341
continue;

0 commit comments

Comments
 (0)