Skip to content

Commit f6210f6

Browse files
committed
Fixed a regression in the sharing of the method object from v-tables in certain corner cases.
QPaintDevice::initPainter appeared twice in the wrapper for QtGui but I could not isolate it in a test. Signed-off-by: Dimitar Dobrev <[email protected]>
1 parent c7357aa commit f6210f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/CppParser/Parser.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,15 @@ Method* Parser::WalkMethodCXX(clang::CXXMethodDecl* MD)
12701270

12711271
WalkFunction(MD, Method);
12721272

1273+
for (auto& M : Class->Methods)
1274+
{
1275+
if (M->USR == USR)
1276+
{
1277+
delete Method;
1278+
return M;
1279+
}
1280+
}
1281+
12731282
if (const CXXConstructorDecl* CD = dyn_cast<CXXConstructorDecl>(MD))
12741283
{
12751284
Method->IsDefaultConstructor = CD->isDefaultConstructor();

0 commit comments

Comments
 (0)