dimanche 24 juillet 2016

C/C++ Live Macro Expansion in IDE

Are there any IDEs that perform live C/C++ macro expansion in the editor window? It seems like that sort of thing should be possible nowadays with all the behind-the-scenes compiling the IDE is doing. I would love to be able to see the preprocessor output if I hover the mouse over the macro call, or use some other mechanism that allows 1-level or deeper macro expansion, like Clojure's macroexpand or macroexpand-1.

Yes I'm familiar with the flags in MSVC or GCC that allow the preprocessor to output to a separate file, but usually the user code is buried 30,000 lines down, and at least with MSVC it seems that enabling the preprocessor output actually prevents the object output. Also it would be nice if the display kept the newlines in place, as that is how macros are often written.

Likewise, are there any facilities for IDE-reporting of a variable type?

Aucun commentaire:

Enregistrer un commentaire