summaryrefslogtreecommitdiff
path: root/src/idl_parser.cpp
diff options
context:
space:
mode:
authormustiikhalil <mustii@mmk.one>2021-02-19 12:47:28 +0300
committerGitHub <noreply@github.com>2021-02-19 12:47:28 +0300
commitae603b9770ee336ad8e7c6e696a8912d63d76c2a (patch)
treeec612b6b132c2f3b8d7e9301c79b638bb2a62da3 /src/idl_parser.cpp
parent7f47718b6df1ee40777a9d6bd192eae0ec1c4bb2 (diff)
downloadflatbuffers-ae603b9770ee336ad8e7c6e696a8912d63d76c2a.tar.gz
flatbuffers-ae603b9770ee336ad8e7c6e696a8912d63d76c2a.tar.bz2
flatbuffers-ae603b9770ee336ad8e7c6e696a8912d63d76c2a.zip
[Swift] adds support for default vectors and strings (#6461)
Small fix Adhere to the new protocol names
Diffstat (limited to 'src/idl_parser.cpp')
-rw-r--r--src/idl_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp
index c633191d..0f48c84e 100644
--- a/src/idl_parser.cpp
+++ b/src/idl_parser.cpp
@@ -2434,7 +2434,7 @@ bool Parser::SupportsOptionalScalars() const {
bool Parser::SupportsDefaultVectorsAndStrings() const {
static FLATBUFFERS_CONSTEXPR unsigned long supported_langs =
- IDLOptions::kRust;
+ IDLOptions::kRust | IDLOptions::kSwift;
return !(opts.lang_to_generate & ~supported_langs);
}