xartigas pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fc3135ce2c7f95d885629a3573712413741de9c1

commit fc3135ce2c7f95d885629a3573712413741de9c1
Author: Xavi Artigas <[email protected]>
Date:   Tue Oct 9 15:28:50 2018 +0200

    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
---
 src/bin/eolian/docs.c | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

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,
 
    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);
 

-- 


Reply via email to