format/rsoc:clang format ignore migration#10828
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: bsp_mcxaReviewers: @hywing Changed Files (Click to expand)
🏷️ Tag: bsp_mcxnReviewers: @hywing Changed Files (Click to expand)
🏷️ Tag: bsp_mm32f526xReviewers: @Maihuanyi Changed Files (Click to expand)
🏷️ Tag: bsp_renesasReviewers: @kurisaW Changed Files (Click to expand)
🏷️ Tag: bsp_stm32Reviewers: @Liang1795 @hamburger-os @wdfk-prog Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-11-13 10:11 CST)
📝 Review Instructions
|
|
@westcity-YOLO 感谢PR,作者先签署下CLA |
|
PR的标题建议简洁些,不用添加姓名,主要是可以说清楚这个PR干了什么事情即可 |
bsp/stm32/.clang-format-ignore
Outdated
| /libraries/STM32U5xx_HAL/ | ||
| /libraries/STM32H5xx_HAL/ | ||
| /libraries/STM32WBxx_HAL/ | ||
| /libraries/STM32WLxx_HAL/ |
bsp/stm32/.clang-format-ignore
Outdated
| /stm32wb55-st-nucleo/board/CubeMX_Config/ | ||
| /stm32wl55-st-nucleo/board/CubeMX_Config/ | ||
| /stm32wle5-yizhilian-lm401/board/CubeMX_Config/ | ||
| /stm32wle5-yizhilian-lm402/board/CubeMX_Config/ |
ecd3f09 to
64be3ed
Compare
64be3ed to
fc67c57
Compare
| # 4. clang-format will recursively apply the .clang-format-ignore rules. | ||
|
|
||
| # Renesas Vendor library | ||
| <<<<<<< HEAD |
拉取/合并请求描述 (PR description)
为什么提交这份PR (why to submit this PR)
迁移 RT-Thread 项目的代码格式化忽略机制,从自定义的
.ignore_format.yml格式迁移到 clang-format 原生的.clang-format-ignore机制,以统一代码格式化工具的使用。你的解决方案是什么 (what is your solution)
删除所有原有的
.ignore_format.yml文件,并在相应位置创建.clang-format-ignore文件,使用 clang-format 原生的忽略语法规则。新的忽略机制采用类似.gitignore的语法,支持通配符模式和路径匹配。请提供验证的bsp和config (provide the config and bsp)
新增的 .clang-format-ignore 文件列表(25个涉及13个BSP):
bsp/Vango/v85xx/Libraries/.clang-format-ignorebsp/Vango/v85xxp/Libraries/.clang-format-ignorebsp/microchip/samc21/.clang-format-ignorebsp/microchip/samd51-adafruit-metro-m4/.clang-format-ignorebsp/microchip/samd51-seeed-wio-terminal/.clang-format-ignorebsp/microchip/same54/.clang-format-ignorebsp/microchip/same70/.clang-format-ignorebsp/microchip/saml10/.clang-format-ignorebsp/mm32f103x/.clang-format-ignorebsp/mm32f327x/.clang-format-ignorebsp/mm32f526x/.clang-format-ignorebsp/n32/libraries/.clang-format-ignorebsp/n32g452xx/.clang-format-ignorebsp/nxp/imx/imxrt/libraries/.clang-format-ignorebsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignorebsp/nxp/mcx/mcxa/Libraries/.clang-format-ignorebsp/nxp/mcx/mcxc/Libraries/.clang-format-ignorebsp/nxp/mcx/mcxn/Libraries/.clang-format-ignorebsp/renesas/libraries/.clang-format-ignorebsp/stm32/libraries/.clang-format-ignorebsp/tae32f5300/.clang-format-ignorebsp/wch/arm/.clang-format-ignorebsp/wch/risc-v/.clang-format-ignorebsp/yichip/yc3121-pos/.clang-format-ignorebsp/yichip/yc3122-pos/Libraries/.clang-format-ignore测试情况
已在本地验证:
.clang-format-ignore文件创建成功.ignore_format.yml文件删除成功当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up