Cssag cannot Index any soft link outside the code tree
Source: Internet
Author: User
CSWs cannot index soft links outside the code tree to solve the problem. Background: Why do I have to use CSWs? Do not use ctags? Although ctags can index soft links, ctags cannot find callers. for example, you want to see where a function is called ,. etc1, uninstall cscope2, download... CSWs cannot index soft links outside the code tree to solve the problem. Background: Why do I have to use CSWs? Do not use ctags?
Although ctags can index soft links, ctags cannot find "callers". for example, you want to see where a function is called ,. etc 1, uninstall cscope2, download the cssag source code: [html] http://sourceforge.net/projects/cscope/files/cscope/15.8a/ P.s My downloaded 15.8a, used normally in debian sid 3, modified as follows: [html] diff -- git a/src/dir. c B/src/dir. c index cf9330d .. e73d86f 100644 --- a/src/dir. c ++ B/src/dir. c @-651,7 + 651,7 @ accessible_file (char * file) if (access (compath (file), READ) = 0) {struct stat stats; -if (lstat (file, & stats) = 0 + if (stat (file, & stats) = 0 & S_ISREG (stats. st_mode) {return YES;} cause: man stat () stats the file pointed to by path and fills in buf. lstat () is identical to stat (), doesn t that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to.4, the following is a general method: [html]. /configure make-jN sudo make install 5. try the following: [html] find-L. | grep-E '\. c $ | \. h $ | \. S $ | \. cpp $ | \. java $ | \. lds $ | \. ld * | \. chh $ | \. cc $ '> cscope. files cscope-Rbqk 6, vim ....
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service