mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-08-27 05:31:15 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
75 lines
1.3 KiB
C++
75 lines
1.3 KiB
C++
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq --with-derive-partialord --with-derive-ord --rust-target 1.40
|
|
//
|
|
class C {
|
|
int a;
|
|
// More than rust limits (32)
|
|
char big_array[33];
|
|
};
|
|
|
|
class C_with_zero_length_array {
|
|
int a;
|
|
// More than rust limits (32)
|
|
char big_array[33];
|
|
char zero_length_array[0];
|
|
};
|
|
|
|
class C_with_zero_length_array_2 {
|
|
int a;
|
|
char zero_length_array[0];
|
|
};
|
|
|
|
class C_with_incomplete_array {
|
|
int a;
|
|
// More than rust limits (32)
|
|
char big_array[33];
|
|
char incomplete_array[];
|
|
};
|
|
|
|
class C_with_incomplete_array_2 {
|
|
int a;
|
|
char incomplete_array[];
|
|
};
|
|
|
|
class C_with_zero_length_array_and_incomplete_array {
|
|
int a;
|
|
// More than rust limits (32)
|
|
char big_array[33];
|
|
char zero_length_array[0];
|
|
char incomplete_array[];
|
|
};
|
|
|
|
class C_with_zero_length_array_and_incomplete_array_2 {
|
|
int a;
|
|
char zero_length_array[0];
|
|
char incomplete_array[];
|
|
};
|
|
|
|
class WithDtor {
|
|
int b;
|
|
|
|
~WithDtor() {}
|
|
};
|
|
|
|
class IncompleteArrayNonCopiable {
|
|
void* whatever;
|
|
C incomplete_array[];
|
|
};
|
|
|
|
union Union {
|
|
float d;
|
|
int i;
|
|
};
|
|
|
|
class WithUnion {
|
|
Union data;
|
|
};
|
|
|
|
class RealAbstractionWithTonsOfMethods {
|
|
void foo();
|
|
public:
|
|
void bar() const;
|
|
void bar();
|
|
void bar(int foo);
|
|
static void sta();
|
|
};
|