Skip to content

Provide a way to add spaces inside an initalizer list when formatting #34646

Open
@hughbe

Description

@hughbe
Bugzilla Link 35298
Version 5.0
OS MacOS X

Extended Description

E.g.

static CapClass vtable = { CustomLineCapTypeAdjustableArrow,
gdip_adjust_arrowcap_setup,
gdip_adjust_arrowcap_clone_cap,
gdip_adjust_arrowcap_destroy,
gdip_adjust_arrowcap_draw };

Formatting this code with clang-format removes the spaces inside the initializer list:

static CapClass vtable = {CustomLineCapTypeAdjustableArrow,
gdip_adjust_arrowcap_setup,
gdip_adjust_arrowcap_clone_cap,
gdip_adjust_arrowcap_destroy,
gdip_adjust_arrowcap_draw};

Please provide a way (e.g. something like SpacesInSquareBrackets) to provide the functionality to add spaces inside an initializer list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions