Add advance feature indicators to reflection (#6546)

* Add advance feature indicators to reflection

* deserialize too

* model advanced features as bitflags

* use uint64_t instead of AdvancedFeatures

* git clang format

* initialize advanced_features_

* remove whitespace

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2021-04-27 10:10:59 -04:00
committed by GitHub
parent c87179e73e
commit 16836ff95a
5 changed files with 88 additions and 15 deletions

View File

@@ -780,6 +780,7 @@ class Parser : public ParserState {
root_struct_def_(nullptr),
opts(options),
uses_flexbuffers_(false),
advanced_features_(0),
source_(nullptr),
anonymous_counter_(0),
parse_depth_counter_(0) {
@@ -1011,6 +1012,8 @@ class Parser : public ParserState {
IDLOptions opts;
bool uses_flexbuffers_;
uint64_t advanced_features_;
private:
const char *source_;