MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / ParseFile

Method ParseFile

native/thirdpart/flatbuffers/flatc.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23const char *FLATC_VERSION() { return FLATBUFFERS_VERSION(); }
24
25void FlatCompiler::ParseFile(
26 flatbuffers::Parser &parser, const std::string &filename,
27 const std::string &contents,
28 std::vector<const char *> &include_directories) const {
29 auto local_include_directory = flatbuffers::StripFileName(filename);
30 include_directories.push_back(local_include_directory.c_str());
31 include_directories.push_back(nullptr);
32 if (!parser.Parse(contents.c_str(), &include_directories[0],
33 filename.c_str())) {
34 Error(parser.error_, false, false);
35 }
36 if (!parser.error_.empty()) { Warn(parser.error_, false); }
37 include_directories.pop_back();
38 include_directories.pop_back();
39}
40
41void FlatCompiler::LoadBinarySchema(flatbuffers::Parser &parser,
42 const std::string &filename,

Callers

nothing calls this directly

Calls 7

StripFileNameFunction · 0.85
ErrorFunction · 0.85
push_backMethod · 0.80
emptyMethod · 0.80
pop_backMethod · 0.80
c_strMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected