summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-27 13:25:53 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-27 13:25:53 (GMT)
commite1f6cbcff527d7cfa9e0fa456c8bd05860915341 (patch)
treec0ecd8a4dc2cdff6d467082e7548e8765589f6cd /src
parent23931168b2a1f251154eeb5bd72eca39d72fc21b (diff)
downloadCastXML-e1f6cbcff527d7cfa9e0fa456c8bd05860915341.zip
CastXML-e1f6cbcff527d7cfa9e0fa456c8bd05860915341.tar.gz
CastXML-e1f6cbcff527d7cfa9e0fa456c8bd05860915341.tar.bz2
Output: Move function type attributes to end of element attribute list
Function type attributes like attributes="__thiscall__" are specific to the architecture and so may need to be filtered during testing. Move them to be the last xml attribute in their element to make filtering easier.
Diffstat (limited to 'src')
-rw-r--r--src/Output.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Output.cxx b/src/Output.cxx
index b74ff07..60a8359 100644
--- a/src/Output.cxx
+++ b/src/Output.cxx
@@ -1285,12 +1285,12 @@ void ASTVisitor::OutputFunctionHelper(clang::FunctionDecl const* d,
if (clang::FunctionProtoType const* fpt =
d->getType()->getAs<clang::FunctionProtoType>()) {
- this->PrintFunctionTypeAttributes(fpt);
this->PrintThrowsAttribute(fpt, dn->Complete);
if (!clang::isa<clang::CXXConstructorDecl>(d) &&
!clang::isa<clang::CXXDestructorDecl>(d)) {
this->PrintMangledAttribute(d);
}
+ this->PrintFunctionTypeAttributes(fpt);
}
if(unsigned np = d->getNumParams()) {