summaryrefslogtreecommitdiffstats
path: root/test/input/Function-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/Function-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/Function-annotate.cxx')
-rw-r--r--test/input/Function-annotate.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/input/Function-annotate.cxx b/test/input/Function-annotate.cxx
new file mode 100644
index 0000000..d7aaf79
--- /dev/null
+++ b/test/input/Function-annotate.cxx
@@ -0,0 +1 @@
+__attribute__ ((annotate ("an annotation"))) void start(int);