Skip to content

Commit 855a870

Browse files
Update symboldatabase.cpp
1 parent bfc6a9e commit 855a870

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/symboldatabase.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -5718,6 +5718,8 @@ const Function* Scope::findFunction(const Token *tok, bool requireConst, Referen
57185718
const Function *func = it->second;
57195719
if (ref == Reference::LValue && func->hasRvalRefQualifier())
57205720
continue;
5721+
if (func->isDestructor() && !Token::simpleMatch(tok->tokAt(-1), "~"))
5722+
continue;
57215723
if (!isCall || args == func->argCount() ||
57225724
(func->isVariadic() && args >= (func->minArgCount() - 1)) ||
57235725
(args < func->argCount() && args >= func->minArgCount())) {

0 commit comments

Comments
 (0)