mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-03 16:50:31 +00:00
clang-tidy compatibility
This commit is contained in:
parent
2cafdab279
commit
f6ae40bd07
@ -114,7 +114,7 @@ struct handle_type_name<typing::Callable<Return(Args...)>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
inline bool cpp_name_needs_typing_annotated(const char *cpp_name) {
|
inline bool cpp_name_needs_typing_annotated(const char *cpp_name) {
|
||||||
while (*cpp_name) {
|
while (*cpp_name != '\0') {
|
||||||
char c = *cpp_name++;
|
char c = *cpp_name++;
|
||||||
if (c == ':' || c == '<') { // Assuming valid names, there is no need to check for '>'.
|
if (c == ':' || c == '<') { // Assuming valid names, there is no need to check for '>'.
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user