Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 1 | // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| 2 | // Exceptions. See /LICENSE for license information. |
| 3 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 4 | |
Lukasz Anforowicz | 19e057d | 2022-10-28 12:03:23 -0700 | [diff] [blame] | 5 | // Automatically @generated Rust bindings for the following C++ target: |
| 6 | // //rs_bindings_from_cc/test/golden:namespace_cc |
| 7 | |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 8 | #include <cstddef> |
| 9 | #include <memory> |
| 10 | |
| 11 | #include "rs_bindings_from_cc/support/cxx20_backports.h" |
Lukasz Anforowicz | 4ee9c22 | 2022-04-13 09:33:36 -0700 | [diff] [blame] | 12 | #include "rs_bindings_from_cc/support/offsetof.h" |
Lukasz Anforowicz | 121338a | 2022-11-01 14:28:32 -0700 | [diff] [blame^] | 13 | |
| 14 | // Public headers of the C++ library being wrapped. |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 15 | #include "rs_bindings_from_cc/test/golden/namespace.h" |
| 16 | |
| 17 | #pragma clang diagnostic push |
| 18 | #pragma clang diagnostic ignored "-Wthread-safety-analysis" |
| 19 | extern "C" void __rust_thunk___ZN23test_namespace_bindings1SC1Ev( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 20 | struct test_namespace_bindings::S* __this) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 21 | crubit::construct_at(__this); |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 22 | } |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 23 | extern "C" void __rust_thunk___ZN23test_namespace_bindings1SC1EOS0_( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 24 | struct test_namespace_bindings::S* __this, |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 25 | struct test_namespace_bindings::S* __param_0) { |
| 26 | crubit::construct_at(__this, std::move(*__param_0)); |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 27 | } |
Rosica Dejanovska | a08b386 | 2022-06-02 08:22:49 -0700 | [diff] [blame] | 28 | extern "C" void |
| 29 | __rust_thunk___ZN23test_namespace_bindings15inline_functionEv() { |
| 30 | test_namespace_bindings::inline_function(); |
| 31 | } |
Rosica Dejanovska | 6efd17f | 2022-05-11 08:09:57 -0700 | [diff] [blame] | 32 | extern "C" void __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1Ev( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 33 | struct test_namespace_bindings_reopened::inner::S* __this) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 34 | crubit::construct_at(__this); |
Rosica Dejanovska | 6efd17f | 2022-05-11 08:09:57 -0700 | [diff] [blame] | 35 | } |
| 36 | extern "C" void |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 37 | __rust_thunk___ZN32test_namespace_bindings_reopened5inner1SC1EOS1_( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 38 | struct test_namespace_bindings_reopened::inner::S* __this, |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 39 | struct test_namespace_bindings_reopened::inner::S* __param_0) { |
| 40 | crubit::construct_at(__this, std::move(*__param_0)); |
Devin Jeanpierre | 5641325 | 2022-06-02 18:48:24 -0700 | [diff] [blame] | 41 | } |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 42 | extern "C" void |
| 43 | __rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1Ev( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 44 | struct test_namespace_bindings_inline::inner::StructInInlineNamespace* |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 45 | __this) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 46 | crubit::construct_at(__this); |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 47 | } |
| 48 | extern "C" void |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 49 | __rust_thunk___ZN30test_namespace_bindings_inline5inner23StructInInlineNamespaceC1EOS1_( |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 50 | struct test_namespace_bindings_inline::inner::StructInInlineNamespace* |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 51 | __this, |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 52 | struct test_namespace_bindings_inline::inner::StructInInlineNamespace* |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 53 | __param_0) { |
Lukasz Anforowicz | 07b3390 | 2022-07-13 15:27:03 -0700 | [diff] [blame] | 54 | crubit::construct_at(__this, std::move(*__param_0)); |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 55 | } |
Lukasz Anforowicz | 4e2e016 | 2022-09-01 07:07:32 -0700 | [diff] [blame] | 56 | extern "C" void __rust_thunk___ZN4impl3fooEv() { impl::foo(); } |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 57 | |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 58 | static_assert(sizeof(struct test_namespace_bindings::S) == 4); |
| 59 | static_assert(alignof(struct test_namespace_bindings::S) == 4); |
| 60 | static_assert(CRUBIT_OFFSET_OF(i, struct test_namespace_bindings::S) == 0); |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 61 | |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 62 | static_assert(sizeof(struct test_namespace_bindings_reopened::inner::S) == 1); |
| 63 | static_assert(alignof(struct test_namespace_bindings_reopened::inner::S) == 1); |
Rosica Dejanovska | 6efd17f | 2022-05-11 08:09:57 -0700 | [diff] [blame] | 64 | |
Lukasz Anforowicz | d4742ff | 2022-07-11 17:05:02 -0700 | [diff] [blame] | 65 | static_assert(sizeof(struct test_namespace_bindings_inline::inner:: |
| 66 | StructInInlineNamespace) == 1); |
| 67 | static_assert(alignof(struct test_namespace_bindings_inline::inner:: |
| 68 | StructInInlineNamespace) == 1); |
Rosica Dejanovska | 4180ffe | 2022-06-09 06:01:05 -0700 | [diff] [blame] | 69 | |
Rosica Dejanovska | dd9a903 | 2022-04-12 07:34:41 -0700 | [diff] [blame] | 70 | #pragma clang diagnostic pop |