summaryrefslogtreecommitdiffstats
path: root/test/expect/gccxml.any.Class-implicit-member-const.xml.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-28 13:45:35 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-28 17:15:00 (GMT)
commitf0c00cb8bd3c5e6c38c6ee47370c15630e7446eb (patch)
tree2889095a7ca034ba79e9485052836c96d56bf3c0 /test/expect/gccxml.any.Class-implicit-member-const.xml.txt
parentbafe43d6438fa5ce0ef778d5d713cd7f594370b9 (diff)
downloadCastXML-f0c00cb8bd3c5e6c38c6ee47370c15630e7446eb.zip
CastXML-f0c00cb8bd3c5e6c38c6ee47370c15630e7446eb.tar.gz
CastXML-f0c00cb8bd3c5e6c38c6ee47370c15630e7446eb.tar.bz2
Output: Refactor generation of CvQualifiedType elements
Previously our handling of cv-qualified types did not account for multiple locally cv-qualified types encountered through multiple levels of desugaring. This could lead to CvQualifiedType elements that reference elements that are generated with a different id. Refactor our internal representation of dump nodes to keep cv-qualifiers in the node ids. Teach AddTypeDumpNode to collect cv-qualifiers from each level of desugaring and compute their union. Once the desugared unqualified type is found, generate one CvQualifiedType element for the qualified type, if any. Update the expected test output to account for the new ordering of nodes. Mark the Class-template-constructor-template test case as no longer broken because this approach fixes it. Add test cases covering cv-qualifiers added at different layers of desugaring (via "T const" where T is already a "const" type in a template instantiation). GitHub-Issue: 10
Diffstat (limited to 'test/expect/gccxml.any.Class-implicit-member-const.xml.txt')
-rw-r--r--test/expect/gccxml.any.Class-implicit-member-const.xml.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/expect/gccxml.any.Class-implicit-member-const.xml.txt b/test/expect/gccxml.any.Class-implicit-member-const.xml.txt
index d240fdf..99d41d8 100644
--- a/test/expect/gccxml.any.Class-implicit-member-const.xml.txt
+++ b/test/expect/gccxml.any.Class-implicit-member-const.xml.txt
@@ -1,16 +1,16 @@
^<\?xml version="1.0"\?>
<GCC_XML[^>]*>
<Class id="_1" name="start" context="_2" location="f1:1" file="f1" line="1" members="_3 _4 _5 _6" size="[0-9]+" align="[0-9]+"/>
- <Field id="_3" name="data" type="_8c" context="_1" access="private" location="f1:2" file="f1" line="2" offset="0"/>
+ <Field id="_3" name="data" type="_7c" context="_1" access="private" location="f1:2" file="f1" line="2" offset="0"/>
<Constructor id="_4" name="start" context="_1" access="public" location="f1:4" file="f1" line="4"/>
<Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throws="")?>
<Argument type="_9" location="f1:1" file="f1" line="1"/>
</Constructor>
<Destructor id="_6" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throws="")?/>
- <CvQualifiedType id="_8c" type="_8" const="1"/>
- <FundamentalType id="_8" name="int" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_7" name="int" size="[0-9]+" align="[0-9]+"/>
+ <CvQualifiedType id="_7c" type="_7" const="1"/>
<ReferenceType id="_9" type="_1c"/>
- <Namespace id="_2" name="::"/>
<CvQualifiedType id="_1c" type="_1" const="1"/>
+ <Namespace id="_2" name="::"/>
<File id="f1" name=".*/test/input/Class-implicit-member-const.cxx"/>
</GCC_XML>$