forked from qt-creator/qt-creator
CppTools: Simplify
Change-Id: Id10cbcf541d8105265c531e63a64e2fd34e27379 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -374,7 +374,7 @@ Symbol *findDefinition(Symbol *symbol, const Snapshot &snapshot, SymbolFinder *s
|
||||
if (symbol->isFunction())
|
||||
return nullptr; // symbol is a function definition.
|
||||
|
||||
else if (!symbol->type()->isFunctionType())
|
||||
if (!symbol->type()->isFunctionType())
|
||||
return nullptr; // not a function declaration
|
||||
|
||||
return symbolFinder->findMatchingDefinition(symbol, snapshot);
|
||||
|
||||
Reference in New Issue
Block a user