We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa02b9 commit 906cbbbCopy full SHA for 906cbbb
libc/utils/hdrgen/function.py
@@ -22,7 +22,7 @@ def __init__(
22
23
def __str__(self):
24
attributes_str = " ".join(self.attributes)
25
- arguments_str = ", ".join(self.arguments)
+ arguments_str = ", ".join(self.arguments) if self.arguments else "void"
26
if attributes_str == "":
27
result = f"{self.return_type} {self.name}({arguments_str})"
28
else:
libc/utils/hdrgen/tests/expected_output/test_header.h
@@ -28,10 +28,10 @@ enum {
29
__BEGIN_C_DECLS
30
31
-CONST_FUNC_A void func_a() __NOEXCEPT;
+CONST_FUNC_A void func_a(void) __NOEXCEPT;
32
33
#ifdef LIBC_TYPES_HAS_FLOAT128
34
-float128 func_b() __NOEXCEPT;
+float128 func_b(void) __NOEXCEPT;
35
#endif // LIBC_TYPES_HAS_FLOAT128
36
37
#ifdef LIBC_TYPES_HAS_FLOAT16
0 commit comments