summaryrefslogtreecommitdiff
path: root/src/bin/eolian/docs.c
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-10-09 15:28:50 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2018-10-09 15:29:08 +0200
commitfc3135ce2c7f95d885629a3573712413741de9c1 (patch)
tree07ccfa2a620d1e027586283958338b6f23c3e730 /src/bin/eolian/docs.c
parentecc6fe749ca094274a751577add91388ec2ff52d (diff)
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
Diffstat (limited to 'src/bin/eolian/docs.c')
-rw-r--r--src/bin/eolian/docs.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index bd2e0b68d5..60ccf1b1b2 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -420,7 +420,27 @@ eo_gen_docs_func_gen(const Eolian_State *state, const Eolian_Function *fid,
420 420
421 int curl = 0; 421 int curl = 0;
422 422
423 const char *group = eolian_class_name_get(eolian_function_class_get(fid)); 423 const char *group = NULL;
424 char legacy_group_name[1024];
425 if (use_legacy)
426 {
427 // Generate legacy doxygen group name
428 const char *prefix =
429 eolian_class_legacy_prefix_get(eolian_function_class_get(fid));
430 unsigned int i;
431 snprintf(legacy_group_name, sizeof(legacy_group_name),
432 "%s_Group", prefix);
433 for (i = 0; i < strlen(legacy_group_name); i++)
434 {
435 if ((i == 0) || (legacy_group_name[i - 1] == '_'))
436 legacy_group_name[i] = toupper(legacy_group_name[i]);
437 }
438 group = legacy_group_name;
439 }
440 else
441 {
442 group = eolian_class_name_get(eolian_function_class_get(fid));
443 }
424 444
425 const Eolian_Implement *fimp = eolian_function_implement_get(fid); 445 const Eolian_Implement *fimp = eolian_function_implement_get(fid);
426 446