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/input/OperatorMethod-annotate.cxx | |
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/input/OperatorMethod-annotate.cxx')
-rw-r--r-- | test/input/OperatorMethod-annotate.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/input/OperatorMethod-annotate.cxx b/test/input/OperatorMethod-annotate.cxx new file mode 100644 index 0000000..3384ece --- /dev/null +++ b/test/input/OperatorMethod-annotate.cxx @@ -0,0 +1,3 @@ +class start { + __attribute__ ((annotate ("an annotation"))) start& operator<<(int); +}; |