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

前端 未结 7 1477
走了就别回头了
走了就别回头了 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.

提交回复
热议问题