Only include direct included filed (#7348)

This commit is contained in:
Derek Bailey
2022-06-15 12:10:39 -07:00
committed by GitHub
parent 9a1913a87a
commit 5f01376027
3 changed files with 35 additions and 26 deletions

View File

@@ -911,6 +911,11 @@ class Parser : public ParserState {
// @param opts Options used to parce a schema and generate code.
static bool SupportsOptionalScalars(const flatbuffers::IDLOptions &opts);
// Get the set of included files that are directly referenced by the file
// being parsed. This does not include files that are transitively included by
// others includes.
std::vector<std::string> GetIncludedFiles() const;
private:
class ParseDepthGuard;