GNU Global Parsing Suffixless Files Patch

"Cooper, Anthony" <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <38372787A1F3934DB85280D3C17BFBD423B9B8030C@PIACHEVEX00.GCHQ.GOV.UK>
SECURITY CLASSIFICATION: OFFICIAL 


       Hi all,

        I've included a patch that allows global to parse and index files without an extension (typically C++ header files, e.g. /usr/include/c++/4.8/algorithm and many more). This works by having a set of rules whereby a user can specify path regexs and the corresponding source file types for files without a suffix. This is done by specifying a rule, similar to langmap, like this:

default: \
        :GTAGSFORCECPP: \
        :suffixless_langmap=[iI]nclude\:cpp,project/include\:cpp:

        This can be specified on multiple lines like langmap. Also the regex can be used to match any part of a path, including the filename if necessary.

        I know you want patches that apply to the head of your main branch but unfortunately our organisation's firewall prevents me from connecting to your CVS server, so they are based on your latest release (6.5.4).

        Regards,

        Tony Cooper.

****************************************************************************
Communications with GCHQ may be monitored and/or recorded 
for system efficiency and other lawful purposes. Any views or 
opinions expressed in this e-mail do not necessarily reflect GCHQ 
policy.  This email, and any attachments, is intended for the 
attention of the addressee(s) only. Its unauthorised use, 
disclosure, storage or copying is not permitted.  If you are not the
intended recipient, please notify [email protected].  

This information is exempt from disclosure under the Freedom of 
Information Act 2000 and may be subject to exemption under
other UK information legislation. Refer disclosure requests to 
GCHQ on 01242 221491 ext 30306 (non-secure) or email
[email protected]

****************************************************************************

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global
suffixless-patch.tgz (application/x-compressed, 3.8 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.