[cfe-dev] Tool to remove class export macro

spsaxena via cfe-dev cfe-dev at lists.llvm.org
Wed Aug 22 16:11:13 PDT 2018


Hi
I am new to clang tools. I am trying to create a tool that can help to
remove export macros from my exported c++ classes and apply them to its
member functions.

For applying to member functions I hooked into VisitFunctionDecl and
updated the functions with DLLExportAttr, however I am not able to find
right place where to hook so that I can remove export macros from my
clasess, so that I can achieve the following

class *EXPORT* classname {
public:
void memFn() {}
}

changed to

class classname {
public:
*EXPORT* void memFn() {}
}


Thanks
-sp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180823/470c7469/attachment.html>


More information about the cfe-dev mailing list