SymbolDatabase: Use ValueType::matchParameter
This commit is contained in:
parent
a9bdf99e07
commit
cea00a8e09
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue