#include "data/parser/cxx/ASTActionFactory.h" #include "clang/Frontend/FrontendActions.h" #include "data/parser/cxx/ASTAction.h" ASTActionFactory::ASTActionFactory( std::shared_ptr client, std::shared_ptr fileRegister, std::shared_ptr canonicalFilePathCache, bool preprocessorOnly ) : m_client(client) , m_fileRegister(fileRegister) , m_canonicalFilePathCache(canonicalFilePathCache) , m_preprocessorOnly(preprocessorOnly) { } ASTActionFactory::~ASTActionFactory() { } clang::FrontendAction* ASTActionFactory::create() { if (m_preprocessorOnly) { return new ASTAction(m_client, m_fileRegister, m_canonicalFilePathCache); } return new ASTAction(m_client, m_fileRegister, m_canonicalFilePathCache); }