Cssag cannot Index any soft link outside the code tree

Source: Internet
Author: User
Tags lstat

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 cssag source code: [html] http://sourceforge.net/projects/cscope/files/cscope/15.8a/ p.s I downloaded 15.8a, In debian sid use normal 3, modify 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 ....

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.