Skip to content

[clang-tidy] Check to add void to functions without parameters in C #142629

@parmi93

Description

@parmi93

I would like clang tidy to add void for functions without parameters, as in the following example:

void foo();

void foo()
{
    printf("Hello World!");
}
void foo(void);

void foo(void)
{
    printf("Hello World!");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions