summaryrefslogtreecommitdiffstats
path: root/test/expect/gccxml.any.OperatorMethod-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.OperatorMethod-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.OperatorMethod-annotate.xml.txt')
-rw-r--r--test/expect/gccxml.any.OperatorMethod-annotate.xml.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.OperatorMethod-annotate.xml.txt b/test/expect/gccxml.any.OperatorMethod-annotate.xml.txt
new file mode 100644
index 0000000..692cd5e
--- /dev/null
+++ b/test/expect/gccxml.any.OperatorMethod-annotate.xml.txt
@@ -0,0 +1,21 @@
+^<\?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 _7" size="[0-9]+" align="[0-9]+"/>
+ <OperatorMethod id="_3" name="&lt;&lt;" returns="_8" context="_1" access="private" location="f1:2" file="f1" line="2" mangled="[^"]+" attributes="annotate\(an annotation\)">
+ <Argument type="_9" location="f1:2" file="f1" line="2"/>
+ </OperatorMethod>
+ <Constructor id="_4" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <Constructor id="_5" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?>
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </Constructor>
+ <OperatorMethod id="_6" name="=" returns="_8" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")? mangled="[^"]+">
+ <Argument type="_10" location="f1:1" file="f1" line="1"/>
+ </OperatorMethod>
+ <Destructor id="_7" name="start" context="_1" access="public" location="f1:1" file="f1" line="1" inline="1" artificial="1"( throw="")?/>
+ <ReferenceType id="_8" type="_1"/>
+ <FundamentalType id="_9" name="int" size="[0-9]+" align="[0-9]+"/>
+ <ReferenceType id="_10" type="_1c"/>
+ <CvQualifiedType id="_1c" type="_1" const="1"/>
+ <Namespace id="_2" name="::"/>
+ <File id="f1" name=".*/test/input/OperatorMethod-annotate.cxx"/>
+</GCC_XML>$