rename: Add a test for rename-all=prefix:
This commit is contained in:
@@ -12,3 +12,5 @@ void test_snake_case(int32_t foo_bar);
|
||||
void test_screaming_snake_case(int32_t FOO_BAR);
|
||||
|
||||
void test_gecko_case(int32_t aFooBar);
|
||||
|
||||
void test_prefix(int32_t prefix_foo_bar);
|
||||
|
||||
@@ -17,6 +17,8 @@ void test_screaming_snake_case(int32_t FOO_BAR);
|
||||
|
||||
void test_gecko_case(int32_t aFooBar);
|
||||
|
||||
void test_prefix(int32_t prefix_foo_bar);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif // __cplusplus
|
||||
|
||||
@@ -16,4 +16,6 @@ void test_screaming_snake_case(int32_t FOO_BAR);
|
||||
|
||||
void test_gecko_case(int32_t aFooBar);
|
||||
|
||||
void test_prefix(int32_t prefix_foo_bar);
|
||||
|
||||
} // extern "C"
|
||||
|
||||
@@ -15,3 +15,5 @@ cdef extern from *:
|
||||
void test_screaming_snake_case(int32_t FOO_BAR);
|
||||
|
||||
void test_gecko_case(int32_t aFooBar);
|
||||
|
||||
void test_prefix(int32_t prefix_foo_bar);
|
||||
|
||||
@@ -17,3 +17,7 @@ pub extern "C" fn test_screaming_snake_case(foo_bar: i32) {}
|
||||
/// cbindgen:rename-all=GeckoCase
|
||||
#[no_mangle]
|
||||
pub extern "C" fn test_gecko_case(foo_bar: i32) {}
|
||||
|
||||
/// cbindgen:rename-all=prefix:prefix_
|
||||
#[no_mangle]
|
||||
pub extern "C" fn test_prefix(foo_bar: i32) {}
|
||||
|
||||
Reference in New Issue
Block a user