llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.61k stars 11.35k forks source link

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

Open weycen opened 2 years ago

weycen commented 2 years ago

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.

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

llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-format