forked from qt-creator/qt-creator
Set the resolved symbol (it needs some cleanup).
This commit is contained in:
@@ -222,6 +222,9 @@ static FullySpecifiedType resolve(const FullySpecifiedType &ty,
|
|||||||
if (resolvedName)
|
if (resolvedName)
|
||||||
*resolvedName = nsTy->name();
|
*resolvedName = nsTy->name();
|
||||||
|
|
||||||
|
if (resolvedSymbol)
|
||||||
|
*resolvedSymbol = const_cast<Namespace *>(nsTy);
|
||||||
|
|
||||||
} else if (const Class *classTy = ty->asClassType()) {
|
} else if (const Class *classTy = ty->asClassType()) {
|
||||||
if (resolvedName)
|
if (resolvedName)
|
||||||
*resolvedName = classTy->name();
|
*resolvedName = classTy->name();
|
||||||
@@ -233,14 +236,23 @@ static FullySpecifiedType resolve(const FullySpecifiedType &ty,
|
|||||||
if (resolvedName)
|
if (resolvedName)
|
||||||
*resolvedName = fwdClassTy->name();
|
*resolvedName = fwdClassTy->name();
|
||||||
|
|
||||||
|
if (resolvedSymbol)
|
||||||
|
*resolvedSymbol = const_cast<ForwardClassDeclaration *>(fwdClassTy);
|
||||||
|
|
||||||
} else if (const Enum *enumTy = ty->asEnumType()) {
|
} else if (const Enum *enumTy = ty->asEnumType()) {
|
||||||
if (resolvedName)
|
if (resolvedName)
|
||||||
*resolvedName = enumTy->name();
|
*resolvedName = enumTy->name();
|
||||||
|
|
||||||
|
if (resolvedSymbol)
|
||||||
|
*resolvedSymbol = const_cast<Enum *>(enumTy);
|
||||||
|
|
||||||
} else if (const Function *funTy = ty->asFunctionType()) {
|
} else if (const Function *funTy = ty->asFunctionType()) {
|
||||||
if (resolvedName)
|
if (resolvedName)
|
||||||
*resolvedName = funTy->name();
|
*resolvedName = funTy->name();
|
||||||
|
|
||||||
|
if (resolvedSymbol)
|
||||||
|
*resolvedSymbol = const_cast<Function *>(funTy);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ty;
|
return ty;
|
||||||
|
Reference in New Issue
Block a user