summaryrefslogtreecommitdiff
path: root/compiler/cpp/src/thrift/generate/t_swift_generator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/cpp/src/thrift/generate/t_swift_generator.cc')
-rw-r--r--compiler/cpp/src/thrift/generate/t_swift_generator.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/compiler/cpp/src/thrift/generate/t_swift_generator.cc b/compiler/cpp/src/thrift/generate/t_swift_generator.cc
index 78fb1d853..fab14135a 100644
--- a/compiler/cpp/src/thrift/generate/t_swift_generator.cc
+++ b/compiler/cpp/src/thrift/generate/t_swift_generator.cc
@@ -50,7 +50,7 @@ public:
const map<string, string>& parsed_options,
const string& option_string)
: t_oop_generator(program) {
- update_keywords();
+ update_keywords_for_validation();
(void)option_string;
map<string, string>::const_iterator iter;
@@ -98,6 +98,7 @@ public:
void init_generator() override;
void close_generator() override;
+ std::string display_name() const override;
void generate_consts(vector<t_const*> consts) override;
@@ -291,7 +292,7 @@ private:
bool promise_kit_;
protected:
- std::set<std::string> lang_keywords() const override {
+ std::set<std::string> lang_keywords_for_validation() const override {
return {};
}
};
@@ -3201,6 +3202,11 @@ string t_swift_generator::type_to_enum(t_type* type, bool qualified) {
}
+std::string t_swift_generator::display_name() const {
+ return "Swift 3.0";
+}
+
+
THRIFT_REGISTER_GENERATOR(
swift,
"Swift 3.0",