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

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

    The DMS Software Reengineering Toolkit is general purpose program analysis and transformation machinery. Its C++ Front End builds on DMS to provide full featured C++ parsing for a variety of common C++ dialects, can process set of C++ classes simulataneously, and constructs full name/type/access information that you can use any way you want. Information is tagged as to precise origin file/line/column. (It includes a full preprocessor).

    You are right; regex can't even come close to this.

提交回复
热议问题