summaryrefslogtreecommitdiffstats
path: root/test/input/Constructor-annotate.cxx
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/input/Constructor-annotate.cxx
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/input/Constructor-annotate.cxx')
-rw-r--r--test/input/Constructor-annotate.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/input/Constructor-annotate.cxx b/test/input/Constructor-annotate.cxx
new file mode 100644
index 0000000..94cf13e
--- /dev/null
+++ b/test/input/Constructor-annotate.cxx
@@ -0,0 +1,3 @@
+class start {
+ __attribute__ ((annotate ("an annotation"))) start();
+};