|
@@ -136,6 +136,14 @@ def trim_native_function_name(function, platform, normalize_lambdas=True):
|
|
if function.startswith(("[", "+[", "-[")):
|
|
if function.startswith(("[", "+[", "-[")):
|
|
return function
|
|
return function
|
|
|
|
|
|
|
|
+ # Remove special `[clone .foo]` annotations for cloned/split functions
|
|
|
|
+ def process_brackets(value, start):
|
|
|
|
+ if value.startswith("clone ."):
|
|
|
|
+ return ""
|
|
|
|
+ return "[%s]" % value
|
|
|
|
+
|
|
|
|
+ function = replace_enclosed_string(function, "[", "]", process_brackets).rstrip()
|
|
|
|
+
|
|
# Chop off C++ trailers
|
|
# Chop off C++ trailers
|
|
while True:
|
|
while True:
|
|
match = _cpp_trailer_re.search(function)
|
|
match = _cpp_trailer_re.search(function)
|
|
@@ -199,14 +207,6 @@ def trim_native_function_name(function, platform, normalize_lambdas=True):
|
|
|
|
|
|
function = replace_enclosed_string(function, "<", ">", process_generics)
|
|
function = replace_enclosed_string(function, "<", ">", process_generics)
|
|
|
|
|
|
- # Remove special `[clone .foo]` annotations for cloned/split functions
|
|
|
|
- def process_brackets(value, start):
|
|
|
|
- if value.startswith("clone ."):
|
|
|
|
- return ""
|
|
|
|
- return "[%s]" % value
|
|
|
|
-
|
|
|
|
- function = replace_enclosed_string(function, "[", "]", process_brackets)
|
|
|
|
-
|
|
|
|
is_thunk = "thunk for " in function # swift
|
|
is_thunk = "thunk for " in function # swift
|
|
|
|
|
|
tokens = split_func_tokens(function)
|
|
tokens = split_func_tokens(function)
|