logic: fixed layouting and parsing

* Fixed spectral layouting not initializing matrices with 0
* Fixed some kinds of template arguments don't resolve to a name
This commit is contained in:
Eberhard Graether
2015-02-05 13:52:34 +01:00
parent 0649644663
commit 1f6d503b9c
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -321,7 +321,10 @@ bool ASTVisitor::VisitClassTemplateDecl(clang::ClassTemplateDecl* declaration)
for (int i = 0; i < argList.size(); i++)
{
std::vector<std::string> argumentNameHierarchy = utility::templateArgumentToDataType(argList.get(i)).getTypeNameHierarchy();
m_client->onTemplateRecordArgumentTypeParsed(ParseLocation(), argumentNameHierarchy, specializedRecordNameHierarchy); // TODO: What about the ParseLocation
if (argumentNameHierarchy.size()) // FIXME: Some TemplateArgument kinds are not handled yet.
{
m_client->onTemplateRecordArgumentTypeParsed(ParseLocation(), argumentNameHierarchy, specializedRecordNameHierarchy); // TODO: What about the ParseLocation
}
}
}
return true;