#include "flatbuffers/flatc.h"
#include <algorithm>
#include <limits>
#include <list>
#include <memory>
#include <sstream>
#include <string>
#include "annotated_binary_text_gen.h"
#include "binary_annotator.h"
#include "flatbuffers/code_generator.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
namespace flatbuffers {
static const char *FLATC_VERSION() { … }
void FlatCompiler::ParseFile(
flatbuffers::Parser &parser, const std::string &filename,
const std::string &contents,
const std::vector<const char *> &include_directories) const { … }
void FlatCompiler::LoadBinarySchema(flatbuffers::Parser &parser,
const std::string &filename,
const std::string &contents) { … }
void FlatCompiler::Warn(const std::string &warn, bool show_exe_name) const { … }
void FlatCompiler::Error(const std::string &err, bool usage,
bool show_exe_name) const { … }
const static FlatCOption flatc_options[] = …;
auto cmp = …;
static std::set<FlatCOption, decltype(cmp)> language_options(cmp);
static void AppendTextWrappedString(std::stringstream &ss, std::string &text,
size_t max_col, size_t start_col) { … }
static void AppendOption(std::stringstream &ss, const FlatCOption &option,
size_t max_col, size_t min_col_for_description) { … }
static void AppendShortOption(std::stringstream &ss,
const FlatCOption &option) { … }
std::string FlatCompiler::GetShortUsageString(
const std::string &program_name) const { … }
std::string FlatCompiler::GetUsageString(
const std::string &program_name) const { … }
void FlatCompiler::AnnotateBinaries(const uint8_t *binary_schema,
const uint64_t binary_schema_size,
const FlatCOptions &options) { … }
FlatCOptions FlatCompiler::ParseFromCommandLineArguments(int argc,
const char **argv) { … }
void FlatCompiler::ValidateOptions(const FlatCOptions &options) { … }
flatbuffers::Parser FlatCompiler::GetConformParser(
const FlatCOptions &options) { … }
std::unique_ptr<Parser> FlatCompiler::GenerateCode(const FlatCOptions &options,
Parser &conform_parser) { … }
int FlatCompiler::Compile(const FlatCOptions &options) { … }
bool FlatCompiler::RegisterCodeGenerator(
const FlatCOption &option, std::shared_ptr<CodeGenerator> code_generator) { … }
}