cpp: typedef issue #914

git-svn-id: svn://ultimatepp.org/upp/trunk@8554 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-06-17 07:06:05 +00:00
parent f152c521a6
commit bd654cb71b

View file

@ -187,6 +187,11 @@ void AssistEditor::ExpressionType(const String& ttype, const String& usings,
String type = ParseTemplatedType(ttype, tparam);
int c0 = typeset.GetCount();
const Array<CppItem>& n = GetTypeItems(type);
for(int i = 0; i < n.GetCount(); i++)
if(n[i].kind == TYPEDEF) {
ExpressionType(n[i].qtype, usings, xp, ii, typeset, variable, can_shortcut_operator, visited_bases, lvl + 1);
return;
}
String id = xp[ii];
int q = id.ReverseFind(':');
if(q > 0 && id[q - 1] == ':') {