Commit 818934e9 authored by David Boddie's avatar David Boddie
Browse files

Merge branch 'master' of scm.dev.nokia.troll.no:creator/mainline

parents d48ba551 d2a62b07
......@@ -755,7 +755,7 @@ bool CreateBindings::visit(Enum *e)
bool CreateBindings::visit(Declaration *decl)
{
if (decl->isTypedef()) {
const FullySpecifiedType ty = decl->type();
FullySpecifiedType ty = decl->type();
const Identifier *typedefId = decl->identifier();
if (typedefId && ! (ty.isConst() || ty.isVolatile())) {
......@@ -766,6 +766,11 @@ bool CreateBindings::visit(Declaration *decl)
Overview oo;
qDebug() << "found entity not found for" << oo(namedTy->name());
}
} else if (Class *klass = ty->asClassType()) {
if (const NameId *nameId = decl->name()->asNameId()) {
ClassOrNamespace *binding = _currentClassOrNamespace->findOrCreateType(nameId);
binding->addSymbol(klass);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment