build: different location for clang release libs on UNIX

This change fixes the clang cmake config to use release libs of clang, adds the TicTacToe source files to bin/app/src/
and adds time measuring to the parse call in Project.
This commit is contained in:
Eberhard Graether
2014-12-14 11:51:35 +01:00
parent d3e50c53e1
commit 8dafd0435f
13 changed files with 446 additions and 3 deletions
+4 -2
View File
@@ -581,14 +581,16 @@ ParseTypeUsage ASTVisitor::getParseTypeUsage(clang::TypeLoc typeLoc, const clang
ParseTypeUsage ASTVisitor::getParseTypeUsageOfReturnType(clang::FunctionDecl* declaration) const
{
// TODO: use FunctionDecl::getReturnTypeSourceRange() in newer clang version
clang::TypeLoc typeLoc;
const clang::TypeSourceInfo *TSI = declaration->getTypeSourceInfo();
if (TSI)
{
const clang::FunctionTypeLoc FTL = TSI->getTypeLoc().IgnoreParens().getAs<clang::FunctionTypeLoc>();
typeLoc = FTL.getReturnLoc();
if (FTL)
{
typeLoc = FTL.getReturnLoc();
}
}
return getParseTypeUsage(typeLoc, declaration->getReturnType());