Re: can gtags be enhanced to find where a symbol is being modified?
Shigio YAMAGUCHI <[email protected]> Sat, 18 Jul 2020 10:57:45 +0900
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <CADJmJYrUY_AfwEqcPwMpyvohzozwm8xysc7m+SwAHfE=bDfwGA@mail.gmail.com> |
Hello, > When I use ggtags.el to find all the locations where a particular > symbol is referenced, I wish it were possible to ask to be shown > all the places where the symbol is being "modified" (written to.) Limited to C, gtags-cscope's 'Find assignments to this symbol:' command may be close to what you want. Please see gtags-cscope(1). Good luck! Shigio 2020=E5=B9=B47=E6=9C=8815=E6=97=A5(=E6=B0=B4) 5:39 Gautam Thaker <ghthaker@= gmail.com>: > > > I have been a long time gtags/global/ggtags.el use and love it. When I u= se ggtags.el to find all the locations where a particular symbol is referen= ced, I wish it were possible to ask to be shown all the places where the sy= mbol is being "modified" (written to.) > > > Ideally, I wish either GRTAGS (or elsewhere) the following entries can be= generated: > > Symbol Read/Write function file_name line_number > > > we can then, with some simple arg flag (^u for example?) only search for = symbol where it is being modified, possibly restricting it to just the curr= ent function an/or current file. > > How hard would this be to do? I am willing to do some of the work if guid= ed. Also, when I use > > > gtags --sqlite3, the GRTAGS file seems essentially empty. (I have built = gtags with --with-sqlilte). > > > > --=20 Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB