forked from enlightenment/efl
eolian: use the legacy_prefix to generate the legacy doxygen group names
Summary: Legacy group names are not consistent (for example, only half of them have the _Group suffix), therefore this commit does not fix ALL problems related to EO-generated @ingroup tags not matching manually-generated @defgroup tags. However, it fixes a great deal of them and the rest should be easier to fix by hand. Test Plan: After running "make doc", some of the EO-generated methods like ecore_timer_interval_set() which did not appear in the API reference documentation should be available now. Reviewers: q66, jsuya, Jaehyun_Cho Reviewed By: q66 Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7148
This commit is contained in:
parent
ecc6fe749c
commit
fc3135ce2c
|
@ -420,7 +420,27 @@ eo_gen_docs_func_gen(const Eolian_State *state, const Eolian_Function *fid,
|
|||
|
||||
int curl = 0;
|
||||
|
||||
const char *group = eolian_class_name_get(eolian_function_class_get(fid));
|
||||
const char *group = NULL;
|
||||
char legacy_group_name[1024];
|
||||
if (use_legacy)
|
||||
{
|
||||
// Generate legacy doxygen group name
|
||||
const char *prefix =
|
||||
eolian_class_legacy_prefix_get(eolian_function_class_get(fid));
|
||||
unsigned int i;
|
||||
snprintf(legacy_group_name, sizeof(legacy_group_name),
|
||||
"%s_Group", prefix);
|
||||
for (i = 0; i < strlen(legacy_group_name); i++)
|
||||
{
|
||||
if ((i == 0) || (legacy_group_name[i - 1] == '_'))
|
||||
legacy_group_name[i] = toupper(legacy_group_name[i]);
|
||||
}
|
||||
group = legacy_group_name;
|
||||
}
|
||||
else
|
||||
{
|
||||
group = eolian_class_name_get(eolian_function_class_get(fid));
|
||||
}
|
||||
|
||||
const Eolian_Implement *fimp = eolian_function_implement_get(fid);
|
||||
|
||||
|
|
Loading…
Reference in New Issue