diff options
author | mustiikhalil <mustii@mmk.one> | 2020-07-25 17:59:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 17:59:34 +0300 |
commit | d76e93f277a5111409c3aebd98bfb4f3bf67d465 (patch) | |
tree | b1f147cc33810e8ad84f51d58bac80224b0d67df /src/idl_parser.cpp | |
parent | 82fac326c5981a85233b8ae7e0d7ec8fda432963 (diff) | |
download | flatbuffers-d76e93f277a5111409c3aebd98bfb4f3bf67d465.tar.gz flatbuffers-d76e93f277a5111409c3aebd98bfb4f3bf67d465.tar.bz2 flatbuffers-d76e93f277a5111409c3aebd98bfb4f3bf67d465.zip |
adds code gen for optional scalars in swift (#6038)
Adds swift test code
Replaces if statments
Adds swift to supported languages for optionals
Moved std::string to auto
Adds nullable scalars support in object api
Diffstat (limited to 'src/idl_parser.cpp')
-rw-r--r-- | src/idl_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index eabf783c..1c9303c9 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -2258,7 +2258,7 @@ CheckedError Parser::CheckClash(std::vector<FieldDef *> &fields, bool Parser::SupportsNullableScalars() const { - return !(opts.lang_to_generate & ~IDLOptions::kRust); + return !(opts.lang_to_generate & ~(IDLOptions::kRust | IDLOptions::kSwift)); } bool Parser::SupportsAdvancedUnionFeatures() const { |