mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-15 00:38:52 +00:00
Ran clang-format-all.sh. Removed default --style=file parameter (#6639)
* Ran clang-format-all.sh. Removed default --style=file parameter * Moved scripts to scripts/ location
This commit is contained in:
@@ -307,15 +307,9 @@ struct FieldDef : public Definition {
|
||||
bool IsScalarOptional() const {
|
||||
return IsScalar(value.type.base_type) && IsOptional();
|
||||
}
|
||||
bool IsOptional() const {
|
||||
return presence == kOptional;
|
||||
}
|
||||
bool IsRequired() const {
|
||||
return presence == kRequired;
|
||||
}
|
||||
bool IsDefault() const {
|
||||
return presence == kDefault;
|
||||
}
|
||||
bool IsOptional() const { return presence == kOptional; }
|
||||
bool IsRequired() const { return presence == kRequired; }
|
||||
bool IsDefault() const { return presence == kDefault; }
|
||||
|
||||
Value value;
|
||||
bool deprecated; // Field is allowed to be present in old data, but can't be.
|
||||
|
||||
Reference in New Issue
Block a user