c++ - How to map a function name back to the macro with clang frontend? -
i'm using clang front-end parse code , need macros. given trivial example:
#define createfile createfilea struct test { virtual void createfile() = 0; };
i functiondecl astvisitor, functiondecl->getname() returns "createfilea". how can figure out "createfile"? assume clang::preprocessor class help.
thanks.
Comments
Post a Comment