forked from qt-creator/qt-creator
CppEditor: Store typedefed name for anonymous structs
... and use it as the struct display name in some places. Fixes: QTCREATORBUG-26611 Change-Id: I1b127f5705307a0fabd2441ff871162c882927a5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -53,7 +53,10 @@ static void path_helper(Symbol *symbol,
|
||||
if (ns && ns->isInline())
|
||||
return;
|
||||
}
|
||||
addNames(symbol->name(), names);
|
||||
if (symbol->asClass())
|
||||
addNames(symbol->asClass()->prettyName(), names);
|
||||
else
|
||||
addNames(symbol->name(), names);
|
||||
|
||||
} else if (symbol->asObjCClass() || symbol->asObjCBaseClass() || symbol->asObjCProtocol()
|
||||
|| symbol->asObjCForwardClassDeclaration() || symbol->asObjCForwardProtocolDeclaration()
|
||||
|
||||
Reference in New Issue
Block a user