summaryrefslogtreecommitdiffstats
path: root/test/expect/gccxml.any.Namespace-repeat-start.xml.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-23 17:36:21 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-23 17:38:28 (GMT)
commitd687d1d00346d81cf51bc9eb177d1c090b608bbe (patch)
tree2d06ac9366a70de9c4f016f719fbdb7e87c4d9c9 /test/expect/gccxml.any.Namespace-repeat-start.xml.txt
parent94256f359999905034ff0065b2a7627348c35220 (diff)
downloadCastXML-d687d1d00346d81cf51bc9eb177d1c090b608bbe.zip
CastXML-d687d1d00346d81cf51bc9eb177d1c090b608bbe.tar.gz
CastXML-d687d1d00346d81cf51bc9eb177d1c090b608bbe.tar.bz2
Output: Traverse namespace redeclarations
A namespace may be redeclared to add more members: namespace ns { void f1(); } namespace ns { void f2(); } Fix our AST traversal to consider members from all redeclarations of each namespace instead of only the canonical (first) one. Previously we generated members from later redeclarations only if they were referenced from other declarations we happened to encounter. Reported-by: Michka Popoff <michkapopoff@gmail.com>
Diffstat (limited to 'test/expect/gccxml.any.Namespace-repeat-start.xml.txt')
-rw-r--r--test/expect/gccxml.any.Namespace-repeat-start.xml.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.Namespace-repeat-start.xml.txt b/test/expect/gccxml.any.Namespace-repeat-start.xml.txt
new file mode 100644
index 0000000..7ead3fe
--- /dev/null
+++ b/test/expect/gccxml.any.Namespace-repeat-start.xml.txt
@@ -0,0 +1,9 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Namespace id="_1" name="start" context="_2" members="_3 _4"/>
+ <Function id="_3" name="f1" returns="_5" context="_1" location="f1:2" file="f1" line="2"/>
+ <Function id="_4" name="f2" returns="_5" context="_1" location="f1:5" file="f1" line="5"/>
+ <FundamentalType id="_5" name="void"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/Namespace-repeat-start.cxx"/>
+</GCC_XML>$