diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2015-07-07 20:13:59 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2015-07-07 20:13:59 +0000 |
commit | 2a7fb83f490c86f530efe5a83f720c95e03f883d (patch) | |
tree | a9350a7d3fdc4335c536908bc3023cf10f4dc6ca /gcc/c-family/c-ada-spec.c | |
parent | fe21b3c292c3d93f6102c739ab32c9aeebffc0dd (diff) | |
download | gcc-2a7fb83f490c86f530efe5a83f720c95e03f883d.zip gcc-2a7fb83f490c86f530efe5a83f720c95e03f883d.tar.gz gcc-2a7fb83f490c86f530efe5a83f720c95e03f883d.tar.bz2 |
c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
c-family/
* c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
* c-ada-spec.c (print_ada_declaration): Skip move constructors.
cp/
* decl2.c (cpp_check): Deal with IS_MOVE_CONSTRUCTOR.
From-SVN: r225525
Diffstat (limited to 'gcc/c-family/c-ada-spec.c')
-rw-r--r-- | gcc/c-family/c-ada-spec.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/c-family/c-ada-spec.c b/gcc/c-family/c-ada-spec.c index 41d612f..abe22d7 100644 --- a/gcc/c-family/c-ada-spec.c +++ b/gcc/c-family/c-ada-spec.c @@ -2891,6 +2891,7 @@ print_ada_declaration (pretty_printer *buffer, tree t, tree type, int spc) bool is_constructor = false; bool is_destructor = false; bool is_copy_constructor = false; + bool is_move_constructor = false; if (!decl_name) return 0; @@ -2901,11 +2902,12 @@ print_ada_declaration (pretty_printer *buffer, tree t, tree type, int spc) is_constructor = cpp_check (t, IS_CONSTRUCTOR); is_destructor = cpp_check (t, IS_DESTRUCTOR); is_copy_constructor = cpp_check (t, IS_COPY_CONSTRUCTOR); + is_move_constructor = cpp_check (t, IS_MOVE_CONSTRUCTOR); } - /* Skip copy constructors: some are internal only, and those that are - not cannot be called easily from Ada anyway. */ - if (is_copy_constructor) + /* Skip copy constructors and C++11 move constructors: some are internal + only and those that are not cannot be called easily from Ada. */ + if (is_copy_constructor || is_move_constructor) return 0; if (is_constructor || is_destructor) |