What libraries are available for parsing c++ to extract type information

前端 未结 7 1333
走了就别回头了
走了就别回头了 2021-02-05 18:33

I\'m looking for a way to parse c++ code to retrieve some basic information about classes. I don\'t actually need much information from the code itself, but I do need it to hand

相关标签:
7条回答
  • 2021-02-05 19:01

    You can easily get macros expanded by just running pre-processor (cpp) on the source. The templates are not that easy since template instantiation happens much later.

    0 讨论(0)
提交回复
热议问题