logic: File Manager

* added FileManager that keeps track of the files analyzed by the project. It therefore checks if files get added, updated or deleted from the source- and include folders.
* refactored ASTVisitor::hasValidLocation() and implemented one version that search for the location in the currently parsed file and one that searches in all the project's source files.
* quickfix: switched order in FileManager so that header files are parsed first.
* created folder for helper classes used in tests.
* added test code for FileManager
* adjusted test code for Parser Tests.
This commit is contained in:
malte_langkabel
2015-02-09 14:52:31 +01:00
parent 4da51180ca
commit 8bc11c9d9c
43 changed files with 536 additions and 124 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ void Application::loadProject(const std::string& projectSettingsFilePath)
m_project = Project::create(m_graphAccessProxy.get(), m_locationAccessProxy.get());
m_project->loadProjectSettings(projectSettingsFilePath);
m_project->parseCode(false);
m_project->parseCode();
}
void Application::loadSource(const std::string& sourceDirectoryPath)
@@ -55,12 +55,12 @@ void Application::loadSource(const std::string& sourceDirectoryPath)
m_project->clearProjectSettings();
m_project->setSourceDirectoryPath(sourceDirectoryPath);
m_project->parseCode(false);
m_project->parseCode();
}
void Application::reloadProject()
{
m_project->parseCode(true);
m_project->parseCode();
}
void Application::saveProject(const std::string& projectSettingsFilePath)