SymbolDatabase: extend usage of ValueType::matchParameter for variable parameters

This commit is contained in:
Daniel Marjamäki 2019-07-31 18:25:47 +02:00
parent c51f44ce4c
commit 70ac607a5c
1 changed files with 4 additions and 0 deletions

View File

@ -4051,6 +4051,10 @@ static void checkVariableCallMatch(const Variable* callarg, const Variable* func
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"));