Semantic does not use the GTAGS file to generate tags that it will use directly for features such as jump or smart completion. The GNU Global backend for semantic db will use GTAGS instead as a giant name table. Thus, if you need to find a character by name, GTAGS will determine the semantics where it is, and Semantic will then analyze these files more directly to get the details.
The reason GTAGS is not used directly because the replacement parser is used because the information in GTAGS is insufficient for the types of operations that semantics need is because it excludes data type information, argument parsing, and local context analysis.
Using gtags in / usr / include is an interesting idea, but probably won't be used. Semantic will search for header files that are actually used in your code, instead of searching for all included files. The GNU Global backend is specifically designed to scan an entire project for a symbol or symbol reference. If you want to search all your characters for a character, then that would be useful, but there is currently no such function in Semant.
You can use ebrowse to do what you want, but I found that for C ++ the parser was not a subtle way and caused some problems.
If you think the semantic parser is inaccurate, you should post it as an error on the cedet-devel mailing list.
Eric
source share