mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-21 23:25:20 -04:00
1213b3dfb1
remove `clap` dependency 🎉
update the book installation instructions
28 lines
418 B
C++
28 lines
418 B
C++
// bindgen-flags: --bitfield-enum "Foo|Buz|NS_.*|DUMMY_.*" --rustified-enum ".*" -- -std=c++11
|
|
|
|
enum Foo {
|
|
Bar = 1 << 1,
|
|
Baz = 1 << 2,
|
|
Duplicated = 1 << 2,
|
|
Negative = -3,
|
|
};
|
|
|
|
enum class Buz : signed char {
|
|
Bar = 1 << 1,
|
|
Baz = 1 << 2,
|
|
Duplicated = 1 << 2,
|
|
Negative = -3,
|
|
};
|
|
|
|
enum {
|
|
NS_FOO = 1 << 0,
|
|
NS_BAR = 1 << 1,
|
|
};
|
|
|
|
class Dummy {
|
|
enum {
|
|
DUMMY_FOO = 1 << 0,
|
|
DUMMY_BAR = 1 << 1,
|
|
};
|
|
};
|