"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/plugins/cpptools/symbolfinder.cpp" between
qt-creator-opensource-src-4.15.0.tar.xz and qt-creator-opensource-src-4.15.1.tar.xz

About: Qt Creator is a cross-platform, complete IDE (integrated development environment) tailored to the needs of Qt developers.

symbolfinder.cpp  (qt-creator-opensource-src-4.15.0.tar.xz):symbolfinder.cpp  (qt-creator-opensource-src-4.15.1.tar.xz)
skipping to change at line 439 skipping to change at line 439
findDeclarationOfSymbol(s, functionType, typeMatch, argumentCoun tMatch, nameMatch); findDeclarationOfSymbol(s, functionType, typeMatch, argumentCoun tMatch, nameMatch);
} }
} }
} }
} }
QList<Declaration *> SymbolFinder::findMatchingDeclaration(const LookupContext & context, QList<Declaration *> SymbolFinder::findMatchingDeclaration(const LookupContext & context,
Function *functionTyp e) Function *functionTyp e)
{ {
QList<Declaration *> result; QList<Declaration *> result;
if (!functionType)
return result;
QList<Declaration *> nameMatch, argumentCountMatch, typeMatch; QList<Declaration *> nameMatch, argumentCountMatch, typeMatch;
findMatchingDeclaration(context, functionType, &typeMatch, &argumentCountMat ch, &nameMatch); findMatchingDeclaration(context, functionType, &typeMatch, &argumentCountMat ch, &nameMatch);
result.append(typeMatch); result.append(typeMatch);
// For member functions not defined inline, add fuzzy matches as fallbacks. We cannot do // For member functions not defined inline, add fuzzy matches as fallbacks. We cannot do
// this for free functions, because there is no guarantee that there's a sep arate declaration. // this for free functions, because there is no guarantee that there's a sep arate declaration.
QList<Declaration *> fuzzyMatches = argumentCountMatch + nameMatch; QList<Declaration *> fuzzyMatches = argumentCountMatch + nameMatch;
if (!functionType->enclosingScope() || !functionType->enclosingScope()->isCl ass()) { if (!functionType->enclosingScope() || !functionType->enclosingScope()->isCl ass()) {
for (Declaration * const d : fuzzyMatches) { for (Declaration * const d : fuzzyMatches) {
if (d->enclosingScope() && d->enclosingScope()->isClass()) if (d->enclosingScope() && d->enclosingScope()->isClass())
 End of changes. 1 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)