This change adds the class FileRegister, that splits cpp and h files for the Parser and keeps track which headers have been parsed yet. TranslationUnits get only created for cpp files now, and headers are parsed on the fly. This reduces parse time by around half.
17 lines
335 B
C++
17 lines
335 B
C++
#include "data/parser/cxx/ASTActionFactory.h"
|
|
|
|
ASTActionFactory::ASTActionFactory(ParserClient* client, FileRegister* fileRegister)
|
|
: m_client(client)
|
|
, m_fileRegister(fileRegister)
|
|
{
|
|
}
|
|
|
|
ASTActionFactory::~ASTActionFactory()
|
|
{
|
|
}
|
|
|
|
clang::FrontendAction* ASTActionFactory::create()
|
|
{
|
|
return new ASTAction(m_client, m_fileRegister);
|
|
}
|