summaryrefslogtreecommitdiffstats
path: root/test/input/Method-rvalue-reference.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-11 15:09:21 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-11 15:54:32 (GMT)
commitaeb49468598774f683f1bc8bb50bd0e301a80fa3 (patch)
treecb52a73831ade1cef721e39722064fdb9e079a16 /test/input/Method-rvalue-reference.cxx
parent1a34898d200aff27a16c4efb67b783ccbcb44008 (diff)
downloadCastXML-aeb49468598774f683f1bc8bb50bd0e301a80fa3.zip
CastXML-aeb49468598774f683f1bc8bb50bd0e301a80fa3.tar.gz
CastXML-aeb49468598774f683f1bc8bb50bd0e301a80fa3.tar.bz2
Output: Drop functions with rvalue reference types from gccxml output
Improve support for -std=c++11 with --castxml-gccxml by dropping all functions and class methods whose signature contains a rvalue reference. This subsumes the previous check for implicit move constructors and implicit move assignment operators and extends it to explicitly written declarations too. Add test cases to verify that such declarations are excluded from the output.
Diffstat (limited to 'test/input/Method-rvalue-reference.cxx')
-rw-r--r--test/input/Method-rvalue-reference.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/input/Method-rvalue-reference.cxx b/test/input/Method-rvalue-reference.cxx
new file mode 100644
index 0000000..30c12ee
--- /dev/null
+++ b/test/input/Method-rvalue-reference.cxx
@@ -0,0 +1,9 @@
+class start {
+ start(start&);
+ start(start&&);
+ start& operator=(start&);
+ start& operator=(start&&);
+ int method(int);
+ int method(int&&);
+ int&& method(int, int);
+};