You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by je...@apache.org on 2022/01/30 00:09:19 UTC
[thrift] 01/02: THRIFT-5505 error: 'close_generator' overrides a member function but is not marked 'override' Client: netstd Patch: Jens Geyer
This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
commit a0cd3cfc848536210631f5f10c9019f81e45ab66
Author: Jens Geyer <je...@apache.org>
AuthorDate: Sat Jan 29 18:35:38 2022 +0100
THRIFT-5505 error: 'close_generator' overrides a member function but is not marked 'override'
Client: netstd
Patch: Jens Geyer
---
compiler/cpp/src/thrift/generate/t_netstd_generator.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/compiler/cpp/src/thrift/generate/t_netstd_generator.h b/compiler/cpp/src/thrift/generate/t_netstd_generator.h
index 31226f2..8896075 100644
--- a/compiler/cpp/src/thrift/generate/t_netstd_generator.h
+++ b/compiler/cpp/src/thrift/generate/t_netstd_generator.h
@@ -69,16 +69,16 @@ public:
map<string, int> get_keywords_list() const;
// overrides
- void init_generator();
- void close_generator();
- void generate_consts(vector<t_const*> consts);
+ void init_generator() override;
+ void close_generator() override;
+ void generate_consts(vector<t_const*> consts) override;
void generate_consts(ostream& out, vector<t_const*> consts);
- void generate_typedef(t_typedef* ttypedef);
- void generate_enum(t_enum* tenum);
+ void generate_typedef(t_typedef* ttypedef) override;
+ void generate_enum(t_enum* tenum) override;
void generate_enum(ostream& out, t_enum* tenum);
- void generate_struct(t_struct* tstruct);
- void generate_xception(t_struct* txception);
- void generate_service(t_service* tservice);
+ void generate_struct(t_struct* tstruct) override;
+ void generate_xception(t_struct* txception) override;
+ void generate_service(t_service* tservice) override;
// additional files
void generate_extensions_file();
@@ -148,7 +148,7 @@ public:
string func_name(t_function* tfunc, bool suppress_mapping = false);
string func_name(std::string fname, bool suppress_mapping = false);
string convert_to_pascal_case(const string& str);
- string get_enum_class_name(t_type* type);
+ string get_enum_class_name(t_type* type) override;
protected:
std::string autogen_comment() override {