<html><body><div>Ahh that is exactly what I needed. I hacked something quick together with this info and it gave me exactly what I needed.</div><div><br data-mce-bogus="1"></div><div>Basically I added the following to the ASTVisitor::GetDeclAttributes() method:</div><div> if (d->hasAttr<clang::DLLExportAttr>()) {<br> attrs.push_back("dllexport");<br> }<br><br> if (d->hasAttr<clang::DLLImportAttr>()) {<br> attrs.push_back("dllimport");<br> }<br></div><div><br data-mce-bogus="1"></div><div>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.</div><div><br data-mce-bogus="1"></div><div><br>Mark R</div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br>On Aug 28, 2017, at 06:37 AM, Brad King <brad.king@kitware.com> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch"><span class="body-text-content">On 08/27/2017 03:08 PM, Mark Russell wrote:<br><blockquote type="cite" class="quoted-plain-text">how the __declspec(dllexport) is reflected in the generated XML.</blockquote><br>It isn't currently. Take a look at `src/Output.cxx` in the<br>`ASTVisitor::GetDeclAttributes` method. It should be possible<br>to add code there for DLLExportAttr and DLLImportAttr.<br><br>-Brad<br></span></div></div></blockquote></div></body></html>