Open weycen opened 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.
"
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:
After format:
@llvm/issue-subscribers-clang-format
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 needTab
.https://github.com/ARM-software/arm-trusted-firmware/blob/caca0e57b8c4cceafa6812f2351419744648b890/bl31/bl31_main.c#L258-L259
Before format:![image](https://user-images.githubusercontent.com/22557692/176403792-cff3b096-df5b-4f68-ba63-4ae290f69d07.png)
After format:![image](https://user-images.githubusercontent.com/22557692/176403858-9ab5c442-eed1-4c24-9fa6-77ccb20ea0c6.png)