MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / MetaParser

Method MetaParser

engine/source/meta_parser/parser/parser/parser.cpp:42–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42MetaParser::MetaParser(const std::string project_input_file,
43 const std::string include_file_path,
44 const std::string include_path,
45 const std::string sys_include,
46 const std::string module_name,
47 bool is_show_errors) :
48 m_project_input_file(project_input_file),
49 m_source_include_file_name(include_file_path), m_index(nullptr), m_translation_unit(nullptr),
50 m_sys_include(sys_include), m_module_name(module_name), m_is_show_errors(is_show_errors)
51{
52 m_work_paths = Utils::split(include_path, ";");
53
54 m_generators.emplace_back(new Generator::SerializerGenerator(
55 m_work_paths[0], std::bind(&MetaParser::getIncludeFile, this, std::placeholders::_1)));
56 m_generators.emplace_back(new Generator::ReflectionGenerator(
57 m_work_paths[0], std::bind(&MetaParser::getIncludeFile, this, std::placeholders::_1)));
58}
59
60MetaParser::~MetaParser(void)
61{

Callers

nothing calls this directly

Calls 1

splitFunction · 0.50

Tested by

no test coverage detected