The C code that I am working on has lots of macros everywhere. I need to see expanded states of the macros to decrease my coding time.
1) What is the best way of code development considering codes with many macros? For example, there is variable which is probably declared somewhere in the macros and I have to search all macros to find its type.
2) Although using ctags
in VIM helps me to jump to the macro definition, is there a VIM plugin that recursively expands and shows C/C++ macros in a C/C++ file while I am editing the file?
P.S. There is a similar question here but its answers are not related with the question: vim plugin for exploring macros written by c/c++
P.P.S. When I use the solution at Seeing expanded C macros, I got a huge file that contains all other include files and so on. Also the whole file cannot be preprocessed because I have to change the cmake
build system.