[libc-commits] [libc] [libc] Elide extra space in hdrgen function declarations (PR #127287)
Caslyn Tonelli via libc-commits
libc-commits at lists.llvm.org
Fri Feb 14 16:58:11 PST 2025
================
@@ -81,4 +81,7 @@ def collapse(type_string):
def __str__(self):
attrs_str = "".join(f"{attr} " for attr in self.attributes)
arguments_str = ", ".join(self.arguments) if self.arguments else "void"
- return attrs_str + f"{self.return_type} {self.name}({arguments_str})"
+ type_str = str(self.return_type)
+ if type_str[-1].isalnum() or type_str[-1] == "_":
----------------
Caslyn wrote:
I think it could help to have a quick comment here
https://github.com/llvm/llvm-project/pull/127287
More information about the libc-commits
mailing list