diff options
author | Brad King <brad.king@kitware.com> | 2015-05-27 13:25:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-05-27 13:25:53 (GMT) |
commit | e1f6cbcff527d7cfa9e0fa456c8bd05860915341 (patch) | |
tree | c0ecd8a4dc2cdff6d467082e7548e8765589f6cd /src | |
parent | 23931168b2a1f251154eeb5bd72eca39d72fc21b (diff) | |
download | CastXML-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.cxx | 2 |
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()) { |