-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in CamelCase rename rule (should be lowerCamelCase)
- Loading branch information
1 parent
0928410
commit 20ddfff
Showing
6 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <stdarg.h> | ||
#include <stdbool.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
|
||
void test_camel_case(int32_t fooBar); | ||
|
||
void test_pascal_case(int32_t FooBar); | ||
|
||
void test_snake_case(int32_t foo_bar); | ||
|
||
void test_screaming_snake_case(int32_t FOO_BAR); | ||
|
||
void test_gecko_case(int32_t aFooBar); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <stdarg.h> | ||
#include <stdbool.h> | ||
#include <stdint.h> | ||
#include <stdlib.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif // __cplusplus | ||
|
||
void test_camel_case(int32_t fooBar); | ||
|
||
void test_pascal_case(int32_t FooBar); | ||
|
||
void test_snake_case(int32_t foo_bar); | ||
|
||
void test_screaming_snake_case(int32_t FOO_BAR); | ||
|
||
void test_gecko_case(int32_t aFooBar); | ||
|
||
#ifdef __cplusplus | ||
} // extern "C" | ||
#endif // __cplusplus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <cstdarg> | ||
#include <cstdint> | ||
#include <cstdlib> | ||
#include <ostream> | ||
#include <new> | ||
|
||
extern "C" { | ||
|
||
void test_camel_case(int32_t fooBar); | ||
|
||
void test_pascal_case(int32_t FooBar); | ||
|
||
void test_snake_case(int32_t foo_bar); | ||
|
||
void test_screaming_snake_case(int32_t FOO_BAR); | ||
|
||
void test_gecko_case(int32_t aFooBar); | ||
|
||
} // extern "C" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from libc.stdint cimport int8_t, int16_t, int32_t, int64_t, intptr_t | ||
from libc.stdint cimport uint8_t, uint16_t, uint32_t, uint64_t, uintptr_t | ||
cdef extern from *: | ||
ctypedef bint bool | ||
ctypedef struct va_list | ||
|
||
cdef extern from *: | ||
|
||
void test_camel_case(int32_t fooBar); | ||
|
||
void test_pascal_case(int32_t FooBar); | ||
|
||
void test_snake_case(int32_t foo_bar); | ||
|
||
void test_screaming_snake_case(int32_t FOO_BAR); | ||
|
||
void test_gecko_case(int32_t aFooBar); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/// cbindgen:rename-all=CamelCase | ||
#[no_mangle] | ||
pub extern "C" fn test_camel_case(foo_bar: i32) {} | ||
|
||
/// cbindgen:rename-all=PascalCase | ||
#[no_mangle] | ||
pub extern "C" fn test_pascal_case(foo_bar: i32) {} | ||
|
||
/// cbindgen:rename-all=SnakeCase | ||
#[no_mangle] | ||
pub extern "C" fn test_snake_case(foo_bar: i32) {} | ||
|
||
/// cbindgen:rename-all=ScreamingSnakeCase | ||
#[no_mangle] | ||
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) {} |