summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/klass_def.hpp
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-12 18:05:17 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-10-12 18:36:44 -0300
commitb1a1cdc701add170f1e6adf68573828bf13bf496 (patch)
treef1833ba6719f36b0515fd63da70c6b69c7428ce6 /src/lib/eolian_cxx/grammar/klass_def.hpp
parent3d5e73570455b19f75c1ba8223956ea15657c009 (diff)
eolian-cxx: Rename fields to standard naming
Summary: bool fields were missing the `is_` prefix. Reviewers: felipealmeida, brunobelo, segfaultxavi, woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10380
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index f38ebeba6c..5b977a6c57 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -1155,7 +1155,7 @@ struct event_def
1155 klass_name klass; 1155 klass_name klass;
1156 eina::optional<type_def> type; 1156 eina::optional<type_def> type;
1157 std::string name, c_name; 1157 std::string name, c_name;
1158 bool beta, protect; 1158 bool is_beta, is_protected;
1159 documentation_def documentation; 1159 documentation_def documentation;
1160 1160
1161 friend inline bool operator==(event_def const& lhs, event_def const& rhs) 1161 friend inline bool operator==(event_def const& lhs, event_def const& rhs)
@@ -1164,8 +1164,8 @@ struct event_def
1164 && lhs.type == rhs.type 1164 && lhs.type == rhs.type
1165 && lhs.name == rhs.name 1165 && lhs.name == rhs.name
1166 && lhs.c_name == rhs.c_name 1166 && lhs.c_name == rhs.c_name
1167 && lhs.beta == rhs.beta 1167 && lhs.is_beta == rhs.is_beta
1168 && lhs.protect == rhs.protect 1168 && lhs.is_protected == rhs.is_protected
1169 && lhs.documentation == rhs.documentation; 1169 && lhs.documentation == rhs.documentation;
1170 } 1170 }
1171 friend inline bool operator!=(event_def const& lhs, event_def const& rhs) 1171 friend inline bool operator!=(event_def const& lhs, event_def const& rhs)
@@ -1174,8 +1174,8 @@ struct event_def
1174 } 1174 }
1175 1175
1176 event_def(klass_name _klass, type_def type, std::string name, std::string c_name, 1176 event_def(klass_name _klass, type_def type, std::string name, std::string c_name,
1177 bool beta, bool protect, documentation_def documentation) 1177 bool is_beta, bool is_protected, documentation_def documentation)
1178 : klass(_klass), type(type), name(name), c_name(c_name), beta(beta), protect(protect) 1178 : klass(_klass), type(type), name(name), c_name(c_name), is_beta(is_beta), is_protected(is_protected)
1179 , documentation(documentation) {} 1179 , documentation(documentation) {}
1180 1180
1181 event_def(Eolian_Event const* event, Eolian_Class const* cls, Eolian_Unit const* unit) 1181 event_def(Eolian_Event const* event, Eolian_Class const* cls, Eolian_Unit const* unit)
@@ -1188,8 +1188,8 @@ struct event_def
1188 } : eina::optional<type_def>{}) 1188 } : eina::optional<type_def>{})
1189 , name( ::eolian_event_name_get(event)) 1189 , name( ::eolian_event_name_get(event))
1190 , c_name( ::eolian_event_c_macro_get(event)) 1190 , c_name( ::eolian_event_c_macro_get(event))
1191 , beta( ::eolian_event_is_beta(event)) 1191 , is_beta( ::eolian_event_is_beta(event))
1192 , protect( ::eolian_event_scope_get(event) == EOLIAN_SCOPE_PROTECTED) 1192 , is_protected( ::eolian_event_scope_get(event) == EOLIAN_SCOPE_PROTECTED)
1193 , documentation( ::eolian_event_documentation_get(event)) {} 1193 , documentation( ::eolian_event_documentation_get(event)) {}
1194}; 1194};
1195 1195