Skip to content

Commit

Permalink
Bug 733451 - volatile declaration on member functions is not handled …
Browse files Browse the repository at this point in the history
…as xml attribute
  • Loading branch information
Dimitri van Heesch committed Aug 8, 2014
1 parent ed8ce3c commit 97d12d0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/compound.xsd
Expand Up @@ -145,12 +145,12 @@
<xsd:attribute name="id" type="xsd:string" />
<xsd:attribute name="prot" type="DoxProtectionKind" />
<xsd:attribute name="static" type="DoxBool" />
<xsd:attribute name="const" type="DoxBool" />
<xsd:attribute name="explicit" type="DoxBool" />
<xsd:attribute name="inline" type="DoxBool" />
<xsd:attribute name="virt" type="DoxVirtualKind" />
<xsd:attribute name="volatile" type="DoxBool" />
<xsd:attribute name="mutable" type="DoxBool" />
<xsd:attribute name="const" type="DoxBool" use="optional"/>
<xsd:attribute name="explicit" type="DoxBool" use="optional"/>
<xsd:attribute name="inline" type="DoxBool" use="optional"/>
<xsd:attribute name="virt" type="DoxVirtualKind" use="optional"/>
<xsd:attribute name="volatile" type="DoxBool" use="optional"/>
<xsd:attribute name="mutable" type="DoxBool" use="optional"/>
<!-- Qt property -->
<xsd:attribute name="readable" type="DoxBool" use="optional"/>
<xsd:attribute name="writable" type="DoxBool" use="optional"/>
Expand Down
6 changes: 5 additions & 1 deletion src/xmlgen.cpp
Expand Up @@ -646,6 +646,11 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
t << " required=\"yes\"";
}

if (al && al->volatileSpecifier)
{
t << " volatile=\"yes\"";
}

t << " virt=\"";
switch (md->virtualness())
{
Expand All @@ -671,7 +676,6 @@ static void generateXMLForMember(MemberDef *md,FTextStream &ti,FTextStream &t,De
{
t << " initonly=\"yes\"";
}

if (md->isAttribute())
{
t << " attribute=\"yes\"";
Expand Down

0 comments on commit 97d12d0

Please sign in to comment.