diff options
author | Brad King <brad.king@kitware.com> | 2015-08-18 17:52:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-08-18 19:12:18 (GMT) |
commit | e73fba54fd7347b94a6951903eac8479495654f2 (patch) | |
tree | fe8e1ebc6975072b83e0689414ebc40cd1998c67 /test/expect/gccxml.any.Destructor-annotate.xml.txt | |
parent | c7c836f667300470f12820fe9128e10afbbe2267 (diff) | |
download | CastXML-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.Destructor-annotate.xml.txt')
-rw-r--r-- | test/expect/gccxml.any.Destructor-annotate.xml.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.Destructor-annotate.xml.txt b/test/expect/gccxml.any.Destructor-annotate.xml.txt new file mode 100644 index 0000000..0660f79 --- /dev/null +++ b/test/expect/gccxml.any.Destructor-annotate.xml.txt @@ -0,0 +1,17 @@ +^<\?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]+"/> + <Destructor id="_3" name="start" context="_1" access="private" location="f1:2" file="f1" line="2" attributes="annotate\(an annotation\)"/> + <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="_7" 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="_7" location="f1:1" file="f1" line="1"/> + </OperatorMethod> + <ReferenceType id="_7" type="_1c"/> + <CvQualifiedType id="_1c" type="_1" const="1"/> + <ReferenceType id="_8" type="_1"/> + <Namespace id="_2" name="::"/> + <File id="f1" name=".*/test/input/Destructor-annotate.cxx"/> +</GCC_XML>$ |