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
+9 -1
View File
@@ -1,7 +1,10 @@
#include "Project.h"
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <time.h>
#include "ApplicationSettings.h"
#include "data/access/GraphAccessProxy.h"
@@ -49,7 +52,7 @@ bool Project::saveProjectSettings( const std::string& projectSettingsFile )
return false;
}
LOG_INFO_STREAM(<< "Projectsettings saved in File: " << m_projectSettingsFilepath);
return true;
return true;
}
void Project::clearProjectSettings()
@@ -90,15 +93,20 @@ void Project::parseCode()
headerSearchPaths.push_back(sourcePath);
CxxParser parser(m_storage.get());
clock_t time = clock();
parser.parseFiles(
FileSystem::getSourceFilesFromDirectory(sourcePath, extensions),
ApplicationSettings::getInstance()->getHeaderSearchPaths(),
headerSearchPaths
);
time = clock() - time;
m_storage->logGraph();
m_storage->logLocations();
LOG_INFO_STREAM(<< "parse time: " << (double)(time) / CLOCKS_PER_SEC);
MessageFinishedParsing().dispatch();
}
}