Open mmomtchev opened 1 year ago
I am trying to use the library to write a simple splitter that extracts all declarations in a single .h
file and then splits the code definitions in multiple source files in order to bring down this huge codebase that has been generated by SWIG down to manageable levels.
I don't see a seg fault with the latest code but I do get a parsing error. The file uses macros to its extreme. The goal of cppparser is to allow parsing of all valid C++ files, but as of now handling of macros like this, which will need to do limited preprocessing before parsing, is not the priority.
I get a segfault when trying to analyze this file: https://github.com/mmomtchev/node-magickwand/raw/84e1cdff82aae838233202e76b9ca01815e9ebec/Magick%2B%2B.cxx
I am using a very basic walking of the outermost members:
The output is: