bug-global
[Top][All Lists]
Advanced

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

GNU Global Parsing Suffixless Files Patch


From: Cooper, Anthony
Subject: GNU Global Parsing Suffixless Files Patch
Date: Wed, 21 Sep 2016 15:52:17 +0100

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 address@hidden  

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
address@hidden

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

Attachment: suffixless-patch.tgz
Description: suffixless-patch.tgz


reply via email to

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