mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
Everywhere: void arguments to C functions
Problem: - C functions with no arguments require a single `void` in the argument list. Solution: - Put the `void` in the argument list of functions in C header files.
This commit is contained in:
parent
b990fc5d3a
commit
b2316701a8
14 changed files with 29 additions and 29 deletions
|
@ -44,9 +44,9 @@ TEST_CASE(generate_c_code)
|
|||
SourceGenerator generator { builder };
|
||||
generator.set("name", "foo");
|
||||
|
||||
generator.append("const char* @name@ () { return \"@name@\"; }");
|
||||
generator.append("const char* @name@ (void) { return \"@name@\"; }");
|
||||
|
||||
EXPECT_EQ(generator.as_string_view(), "const char* foo () { return \"foo\"; }");
|
||||
EXPECT_EQ(generator.as_string_view(), "const char* foo (void) { return \"foo\"; }");
|
||||
}
|
||||
|
||||
TEST_CASE(scoped)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue