bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: some feature of global is inefficient and confusing


From: Shigio YAMAGUCHI
Subject: Re: some feature of global is inefficient and confusing
Date: Sat, 25 Feb 2023 21:23:52 +0900

Hello,
Could you clarify if your report is about a vim plugin or gtags/global?
If it is about a vim plugin, what vim plugin do you use?
If it is about gtags/global, could you please explain the problem on the command line only?
Are you using universal-ctags as a plug-in parser of gtags?

Regards,
Shigio

On Sat, Feb 25, 2023 at 3:04 AM 龚泽 13884465286 <mgongze@163.com> wrote:

gtags (Global) 6.6.9
Powered by Berkeley DB 1.85 and SQLite3 3.40.1.

on  macOS big sur 11.7.4/ubuntu 20.04    work with latest vim  universal-tags


analysis C/C++ code 

1、ctrl+]  should jump to the implementation of a function . but current version of gtags jump to declaration of the function in .h file .It works inefficiently

2、all this code can be found in https://www.st.com/en/embedded-software/x-cube-spn5.html package
 void BSP_MotorControl_Init(uint16_t id, void* initDeviceParameters)            
    3 {                                                                              
    2   if ((motorDrvHandle != 0)&&(motorDrvHandle->Init != 0))                      
    1   {                                                                            
 197      motorDrvHandle->Init(initDeviceParameters);                                                                                                        
    1   }                                                                            
    2   else                                                                          
    3   {                                                                            
    4     MOTOR_CONTROL_ERROR_UNDEFINED_FUNCTION(0);                                  
    5   }                                                                            
    6 }   

cursor on Init(),ctrl+] or C-_ s , tags return a wrong declaration. It goes to struct CAN_HandleTypeDef   instead of struct motorDrv_t 

and more, in struct motorDrv_t ,cursor on function pointer (*Init),C-_ s  should list the references of motorDrv_t.Init() . But it returns all references of tag ‘init()’ .This information is useless and confusing.






--
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint: 
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]