diff options
author | Derek Bailey <dbaileychess@gmail.com> | 2020-03-02 10:15:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 10:15:23 -0800 |
commit | 6ff1898413a56577bd2e9abd8280a79b1880bd53 (patch) | |
tree | 121c2b564096a79ff8097fe821f25a33a8a43eec /src/idl_parser.cpp | |
parent | c9a30c9ca28a6396455dd8be479f5a5edb412e62 (diff) | |
download | flatbuffers-6ff1898413a56577bd2e9abd8280a79b1880bd53.tar.gz flatbuffers-6ff1898413a56577bd2e9abd8280a79b1880bd53.tar.bz2 flatbuffers-6ff1898413a56577bd2e9abd8280a79b1880bd53.zip |
Added --filename-suffix and --filename-ext to flatc (#5778)
* Fixed refractoring issue in reflection/generate_code.sh. Also, mv deletes the original file, so I don't need to clean it up manually in that case.
* Added --filename-suffix and --filename-ext to flatc
* Fixed typo and added example generation of suffix and extension for C++
* Removed extra ;
* Removed clang-format block from a region that didn't need it. Fixed an auto format of another clang-format block
* Added docs, fixed pointer alignment, removed suffix test file
Diffstat (limited to 'src/idl_parser.cpp')
-rw-r--r-- | src/idl_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 13c8c3ad..eda3604a 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -3231,8 +3231,8 @@ Offset<reflection::Field> FieldDef::Serialize(FlatBufferBuilder *builder, // Is uint64>max(int64) tested? IsInteger(value.type.base_type) ? StringToInt(value.constant.c_str()) : 0, // result may be platform-dependent if underlying is float (not double) - IsFloat(value.type.base_type) ? d : 0.0, - deprecated, required, key, attr__, docs__); + IsFloat(value.type.base_type) ? d : 0.0, deprecated, required, key, + attr__, docs__); // TODO: value.constant is almost always "0", we could save quite a bit of // space by sharing it. Same for common values of value.type. } |