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.Function-calling-convention-ms-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.Function-calling-convention-ms-annotate.xml.txt')
-rw-r--r-- | test/expect/gccxml.any.Function-calling-convention-ms-annotate.xml.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/expect/gccxml.any.Function-calling-convention-ms-annotate.xml.txt b/test/expect/gccxml.any.Function-calling-convention-ms-annotate.xml.txt new file mode 100644 index 0000000..ba7fb08 --- /dev/null +++ b/test/expect/gccxml.any.Function-calling-convention-ms-annotate.xml.txt @@ -0,0 +1,26 @@ +^<\?xml version="1.0"\?> +<GCC_XML[^>]*> + <Function id="_1" name="start" returns="_5" context="_6" location="f1:1" file="f1" line="1" mangled="[^"]+" attributes="annotate\(an annotation\)"> + <Argument type="_7" location="f1:1" file="f1" line="1"/> + </Function> + <Function id="_2" name="start" returns="_5" context="_6" location="f1:2" file="f1" line="2" mangled="[^"]+" attributes="__stdcall__ annotate\(an annotation\)"> + <Argument type="_8" location="f1:2" file="f1" line="2"/> + </Function> + <Function id="_3" name="start" returns="_5" context="_6" location="f1:3" file="f1" line="3" mangled="[^"]+" attributes="__fastcall__ annotate\(an annotation\)"> + <Argument type="_9" location="f1:3" file="f1" line="3"/> + </Function> + <Function id="_4" name="start" returns="_5" context="_6" location="f1:4" file="f1" line="4" mangled="[^"]+" attributes="__thiscall__ annotate\(an annotation\)"> + <Argument type="_10" location="f1:4" file="f1" line="4"/> + </Function> + <FundamentalType id="_5" name="void" size="[0-9]+" align="[0-9]+"/> + <PointerType id="_7" type="_11"/> + <PointerType id="_8" type="_12"/> + <PointerType id="_9" type="_13"/> + <PointerType id="_10" type="_14"/> + <Namespace id="_6" name="::"/> + <FunctionType id="_11" returns="_5"/> + <FunctionType id="_12" returns="_5" attributes="__stdcall__"/> + <FunctionType id="_13" returns="_5" attributes="__fastcall__"/> + <FunctionType id="_14" returns="_5" attributes="__thiscall__"/> + <File id="f1" name=".*/test/input/Function-calling-convention-ms-annotate.cxx"/> +</GCC_XML>$ |