Skip to content

Option --space-after-function-name doesn't work with function pointer syntax #116

@biozic

Description

@biozic

I think it's a recent change.

int foo(void);

typedef int (*Fun0)(void);
typedef int (*Fun1)(int (*param)(void));

struct Foo {
  int (*bar)(void);
};

when run with --space-after-function-name=false, gives:

int foo();

alias Fun0 = int function ();
alias Fun1 = int function (int function () param);

struct Foo
{
    int function () bar;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions