[PATCH v1 v2 0/4] Modernize U-Boot code formatting with clang-format
Javier Tia
javier.tia at linaro.org
Mon Sep 1 19:47:51 CEST 2025
This patch series modernizes U-Boot's code formatting infrastructure by
transitioning from the legacy scripts/Lindent tool to clang-format, aligning
with current Linux kernel practices and providing a more robust and
comprehensive formatting solution.
Changes in v2:
- Replace Lindent with clang-format before remove it
v1: https://lore.kernel.org/u-boot/20250829233951.547352-1-javier.tia@linaro.org/
- Removal of the obsolete scripts/Lindent wrapper
- Documentation updates for the coding style guide
- Migration of existing tools to use clang-format
- Copy .clang-format from Linux kernel v6.16 tag
v0: https://lore.kernel.org/u-boot/20250829190058.GY124814@bill-the-cat/
Javier Tia (4):
clang-format: Add configuration file
tools: zynqmp_psu_init_minimize.sh: Switch to clang-format
Lindent: Remove wrapper around indent tool
doc: Update U-Boot coding style guide with clang-format usage
.clang-format | 804 ++++++++++++++++++++++++++++++
.gitignore | 1 +
doc/develop/codingstyle.rst | 40 +-
scripts/Lindent | 18 -
tools/zynqmp_psu_init_minimize.sh | 2 +-
5 files changed, 844 insertions(+), 21 deletions(-)
create mode 100644 .clang-format
delete mode 100755 scripts/Lindent
--
2.51.0
More information about the U-Boot
mailing list