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:
@@ -1,7 +1,8 @@
|
||||
#include "data/parser/cxx/ASTActionFactory.h"
|
||||
|
||||
ASTActionFactory::ASTActionFactory(ParserClient* client)
|
||||
ASTActionFactory::ASTActionFactory(ParserClient* client, FileManager* fileManager)
|
||||
: m_client(client)
|
||||
, m_fileManager(fileManager)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -11,5 +12,5 @@ ASTActionFactory::~ASTActionFactory()
|
||||
|
||||
clang::FrontendAction* ASTActionFactory::create()
|
||||
{
|
||||
return new ASTAction(m_client);
|
||||
return new ASTAction(m_client, m_fileManager);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user