summaryrefslogtreecommitdiffstats
path: root/test/expect/gccxml.any.Function-annotate.xml.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-18 17:52:39 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-18 19:12:18 (GMT)
commite73fba54fd7347b94a6951903eac8479495654f2 (patch)
treefe8e1ebc6975072b83e0689414ebc40cd1998c67 /test/expect/gccxml.any.Function-annotate.xml.txt
parentc7c836f667300470f12820fe9128e10afbbe2267 (diff)
downloadCastXML-e73fba54fd7347b94a6951903eac8479495654f2.zip
CastXML-e73fba54fd7347b94a6951903eac8479495654f2.tar.gz
CastXML-e73fba54fd7347b94a6951903eac8479495654f2.tar.bz2
Output: Add annotate() to function declaration attributes=""
While CastXML cannot support the `gccxml()` attribute because Clang does not define it, we can support the `annotate()` attribute that Clang provides for arbitrary string annotations. This should fill the same use case as the `gccxml()` attribute did for clients. GitHub-Issue: 25
Diffstat (limited to 'test/expect/gccxml.any.Function-annotate.xml.txt')
-rw-r--r--test/expect/gccxml.any.Function-annotate.xml.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.Function-annotate.xml.txt b/test/expect/gccxml.any.Function-annotate.xml.txt
new file mode 100644
index 0000000..3f98887
--- /dev/null
+++ b/test/expect/gccxml.any.Function-annotate.xml.txt
@@ -0,0 +1,10 @@
+^<\?xml version="1.0"\?>
+<GCC_XML[^>]*>
+ <Function id="_1" name="start" returns="_2" context="_3" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="annotate\(an annotation\)">
+ <Argument type="_4" location="f1:1" file="f1" line="1"/>
+ </Function>
+ <FundamentalType id="_2" name="void" size="[0-9]+" align="[0-9]+"/>
+ <FundamentalType id="_4" name="int" size="[0-9]+" align="[0-9]+"/>
+ <Namespace id="_3" name="::"/>
+ <File id="f1" name=".*/test/input/Function-annotate.cxx"/>
+</GCC_XML>$