SymbolDatabase: Use ValueType::matchParameter

This commit is contained in:
Daniel Marjamäki 2019-07-31 11:20:43 +02:00
parent a9bdf99e07
commit cea00a8e09
1 changed files with 8 additions and 0 deletions

View File

@ -4047,6 +4047,14 @@ static void checkVariableCallMatch(const Variable* callarg, const Variable* func
same++;
return;
}
if (res == ValueType::MatchResult::FALLBACK1) {
fallback1++;
return;
}
if (res == ValueType::MatchResult::FALLBACK2) {
fallback2++;
return;
}
bool ptrequals = callarg->isArrayOrPointer() == funcarg->isArrayOrPointer();
bool constEquals = !callarg->isArrayOrPointer() || ((callarg->typeStartToken()->strAt(-1) == "const") == (funcarg->typeStartToken()->strAt(-1) == "const"));