[CastXML] Windows __declspec(dllexport) in generated XML?
Mark Russell
m.a.russell at me.com
Mon Aug 28 20:56:01 EDT 2017
Ahh that is exactly what I needed. I hacked something quick together with this info and it gave me exactly what I needed.
Basically I added the following to the ASTVisitor::GetDeclAttributes() method:
if (d->hasAttr<clang::DLLExportAttr>()) {
attrs.push_back("dllexport");
}
if (d->hasAttr<clang::DLLImportAttr>()) {
attrs.push_back("dllimport");
}
If you're good with the text I'm using for the attrs collection, I'll try to setup a pull request with this change sometime tomorrow. Hopefully it'll prove useful to someone else as well.
Mark R
On Aug 28, 2017, at 06:37 AM, Brad King <brad.king at kitware.com> wrote:
On 08/27/2017 03:08 PM, Mark Russell wrote:
how the __declspec(dllexport) is reflected in the generated XML.
It isn't currently. Take a look at `src/Output.cxx` in the
`ASTVisitor::GetDeclAttributes` method. It should be possible
to add code there for DLLExportAttr and DLLImportAttr.
-Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/castxml/attachments/20170829/6c07906f/attachment.html>
More information about the CastXML
mailing list