data: fixed parser issues to load whole Coati on Mac

This commit is contained in:
Eberhard Graether
2015-03-24 20:34:55 +01:00
parent 3738f196b9
commit be123a33b4
2 changed files with 9 additions and 6 deletions
+8 -6
View File
@@ -475,12 +475,14 @@ bool ASTVisitor::VisitFunctionTemplateDecl(clang::FunctionTemplateDecl *declarat
for (size_t i = 0; i < argumentList->size(); i++)
{
const clang::TemplateArgument& argument = argumentList->get(i);
const clang::QualType argumentType = argument.getAsType();
m_client->onTemplateArgumentTypeParsed(
ParseLocation(specializedFunctionLocation.filePath, 0, 0), // TODO: Find a valid ParseLocation here!
utility::qualTypeToDataType(argumentType)->getTypeNameHierarchy(),
specializedFunction.nameHierarchy);
if (argument.getKind() == clang::TemplateArgument::Type)
{
const clang::QualType argumentType = argument.getAsType();
m_client->onTemplateArgumentTypeParsed(
ParseLocation(specializedFunctionLocation.filePath, 0, 0), // TODO: Find a valid ParseLocation here!
utility::qualTypeToDataType(argumentType)->getTypeNameHierarchy(),
specializedFunction.nameHierarchy);
}
}
}
}
+1
View File
@@ -500,6 +500,7 @@ namespace utility
typeParent = clang::dyn_cast<clang::TemplateTypeParmType>(ssswd)->getDecl();
break;
default:
typeParent = nullptr;
LOG_ERROR("aahhh");
}
}