Skip to content

Redundant spaces before new line after format document use clang-format #56299

Closed as not planned
@weycen

Description

@weycen

Hi, i find when i format a document use clang-format, it will add redundant spaces before newline when this line is too long to break.
Seems it want to align to " in first line, we don't need redundant spaces before new line, only need Tab.

  • Code sample

https://github.com/ARM-software/arm-trusted-firmware/blob/caca0e57b8c4cceafa6812f2351419744648b890/bl31/bl31_main.c#L258-L259

void __init bl31_prepare_next_image_entry(void)
{
	INFO("BL31: Preparing for EL3 exit to %s world\n",
		(image_type == SECURE) ? "secure" : "normal");
}

Before format:
image

After format:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-formatobsoleteIssues with old (unsupported) versions of LLVM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions