[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issues forcing C++
From: |
Jason Hood |
Subject: |
Issues forcing C++ |
Date: |
Fri, 12 Feb 2021 18:04:09 +1000 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
If GTAGSFORCECPP is defined and --explain is used and a .h file is first, gtags
will crash. This is because lastmatch is not set due to match_suffix_list
being bypassed (and so if .h is not first it will show the suffix of the
previous file).
The language is set to "cpp", but only the built-in parser uses that, other
parsers use "C++". This means forcing C++ will use the built-in parser for .h
files, not the desired parser. Since only the built-in parser uses .h as C the
simple solution is to not force C++ if you're using another parser.
--
Jason.
- Issues forcing C++,
Jason Hood <=