[C++] Split flatbuffers.h into separate files (#6868)

* split flatbuffers.h into separate files

* wrong variable in cmakelists for android

* readded two accidentally deleted includes

* created buffer.h and moved buffer related things over
This commit is contained in:
Derek Bailey
2021-11-10 22:26:09 -08:00
committed by GitHub
parent fd4ff23da0
commit 6c8c291559
21 changed files with 3218 additions and 2810 deletions

View File

@@ -20,6 +20,7 @@
#include <string>
#include <utility>
#include "flatbuffers/base.h"
#include "flatbuffers/idl.h"
#include "flatbuffers/util.h"
@@ -3404,9 +3405,9 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths,
NEXT();
file_identifier_ = attribute_;
EXPECT(kTokenStringConstant);
if (file_identifier_.length() != FlatBufferBuilder::kFileIdentifierLength)
if (file_identifier_.length() != flatbuffers::kFileIdentifierLength)
return Error("file_identifier must be exactly " +
NumToString(FlatBufferBuilder::kFileIdentifierLength) +
NumToString(flatbuffers::kFileIdentifierLength) +
" characters");
EXPECT(';');
} else if (IsIdent("file_extension")) {