I would like to display a type of tag in my tool that parses TAGS file. I.e.: to append "[func]", "[macro]", "[var]", etc. after tag identifiers in some lists that I'm displaying with the tool.
Can Universal-Ctags recognize tag types and store it into output file? If yes, how to run it for this to happen?
ctags generates a TAGS file if you specify -e option. TAGS file doesn't include type information.
If you don't specify the -e option, ctags generates a tags file including type information. Your tool can utilize the information.
If you just want to print the names of identifiers and types, you can use -x option of ctags: