bug-global
[Top][All Lists]
Advanced

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

Universal Ctags: Don't read config files; New 'ctagsoptfile' configurati


From: Olivier Certner
Subject: Universal Ctags: Don't read config files; New 'ctagsoptfile' configuration variable
Date: Fri, 07 Apr 2023 13:07:07 +0200

Hello,

Please find attached a new patch that solves the problem of empty tag files 
(and no references/definitions returned by 'global') when using Universal Ctags 
with particular configuration files. The problem is triggered by some Universal 
Ctags options that alter the output format, making 'gtags' fail to parse its 
output.

The solution is to use '--options=NONE' at start of options passed to Universal 
Ctags (and '--quiet' before to avoid a warning about skipping configuration 
files).

But it is sometimes useful to specify options to Universal Ctags that alter the 
list of returned tags (but not the format, e.g., '--kinds-C='). To this end, I 
also added the 'ctagsoptfile' configuration option.

Not tested (even compiled) on Windows, although I modified the code for this 
variant as well with care.

Regards.

-- 
Olivier Certner

Attachment: universal_ctags.patch
Description: Text Data


reply via email to

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