summaryrefslogtreecommitdiffstats
path: root/test/expect/gccxml.any.implicit-decl-ms.xml.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-11 18:49:22 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-11 18:51:06 (GMT)
commit2bba2e9e8900666ca92a7abb848ee8e5756462d8 (patch)
tree359d4dd98514b54ccf2b71c1fb178fc21f8d3215 /test/expect/gccxml.any.implicit-decl-ms.xml.txt
parent81475d7fc881a5cdaa2e2a1e61ad335a52549093 (diff)
downloadCastXML-2bba2e9e8900666ca92a7abb848ee8e5756462d8.zip
CastXML-2bba2e9e8900666ca92a7abb848ee8e5756462d8.tar.gz
CastXML-2bba2e9e8900666ca92a7abb848ee8e5756462d8.tar.bz2
Output: Generate location attributes for builtin declarations
Report a file id "f0" named "<builtin>" for declarations that are generated by the compiler and have no reference location in the source. Add a test case covering the MSVC builtin "size_t" typedef.
Diffstat (limited to 'test/expect/gccxml.any.implicit-decl-ms.xml.txt')
-rw-r--r--test/expect/gccxml.any.implicit-decl-ms.xml.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.implicit-decl-ms.xml.txt b/test/expect/gccxml.any.implicit-decl-ms.xml.txt
new file mode 100644
index 0000000..d6ac862
--- /dev/null
+++ b/test/expect/gccxml.any.implicit-decl-ms.xml.txt
@@ -0,0 +1,11 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1">
+ <Argument type="_2" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <Typedef id="_2" name="size_t" type="_4" context="_3" location="f0:0" file="f0" line="0"/>
+ <FundamentalType id="_4" name="unsigned int"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f0" name="&lt;builtin&gt;"/>
+ <File id="f1" name=".*/test/input/implicit-decl-ms.cxx"/>
+</GCC_XML>$