utilize the clang-format-ignore mechanism in bsp/nxp (#10764)#10827
utilize the clang-format-ignore mechanism in bsp/nxp (#10764)#10827Rbb666 merged 2 commits intoRT-Thread:masterfrom
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)
📊 Current Review Status (Last Updated: 2025-10-22 10:24 CST)
📝 Review Instructions
|
| @@ -0,0 +1,13 @@ | |||
| # .clang-format-ignore File Description: | |||
| @@ -0,0 +1,9 @@ | |||
| # .clang-format-ignore File Description: | |||
| @@ -0,0 +1,9 @@ | |||
| # .clang-format-ignore File Description: | |||
| @@ -0,0 +1,9 @@ | |||
| # .clang-format-ignore File Description: | |||
There was a problem hiding this comment.
自动化流程有两个报错
1.
RT-Thread BSP Static Build Check / arm-none-bsp-smart (pull_request)Failing after 1m
[cpp_check.py 80 INFO]
[cpp_check.py 79 INFO] Checking components/drivers/ktime/src/hrtimer.c ...
Checking components/drivers/ktime/src/hrtimer.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;...
Checking components/drivers/ktime/src/hrtimer.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;;ARCH_CPU_64BIT...
[cpp_check.py 80 INFO]
[cpp_check.py 79 INFO] Checking components/lwp/lwp.c ...
Checking components/lwp/lwp.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;;RT_USING_DFS=1;RT_USING_MUSLLIBC...
[cpp_check.py 80 INFO]
[cpp_check.py 79 INFO] Checking components/utilities/utest/utest.c ...
[cpp_check.py 80 INFO] components/utilities/utest/utest.c:26:2: error: #error "RT_CONSOLEBUF_SIZE is less than 256!" [preprocessorErrorDirective]
#error "RT_CONSOLEBUF_SIZE is less than 256!"
^
[cpp_check.py 79 INFO] Checking libcpu/aarch64/common/mmu.c ...
Checking libcpu/aarch64/common/mmu.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;...
Checking libcpu/aarch64/common/mmu.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;;ARCH_USING_ASID...
Checking libcpu/aarch64/common/mmu.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;;KERNEL_ASPACE_START...
Checking libcpu/aarch64/common/mmu.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;;RT_DEBUGGING_ALIASING...
Checking libcpu/aarch64/common/mmu.c: RT_ASSERT(x)=;RTM_EXPORT(x)=;rt_list_for_each_entry(a,b,c)=a=(void*)b;;RT_USING_SMART...
[cpp_check.py 80 INFO]
[cpp_check.py 111 ERROR] static code analysis(cppcheck) fail.
Error: Process completed with exit code 1.
2.
Static code analysis / Static code analysis (pull_request)Failing after 2m
In file included from drivers/imx6ull.h:18,
from drivers/board.h:14,
from drivers/board.c:18:
/home/runner/work/rt-thread/rt-thread/components/lwp/lwp.h:88:2: error: #error "No compatible lwp set status provided for this libc"
88 | #error "No compatible lwp set status provided for this libc"
| ^~~~~
In file included from drivers/imx6ull.h:18,
from drivers/board.h:14,
from drivers/bsp_clock.c:12:
/home/runner/work/rt-thread/rt-thread/components/lwp/lwp.h:88:2: error: #error "No compatible lwp set status provided for this libc"
88 | #error "No compatible lwp set status provided for this libc"
| ^~~~~
In file included from drivers/imx6ull.h:18,
from drivers/board.h:14,
from drivers/drv_common.c:14:
/home/runner/work/rt-thread/rt-thread/components/lwp/lwp.h:88:2: error: #error "No compatible lwp set status provided for this libc"
88 | #error "No compatible lwp set status provided for this libc"
| ^~~~~
In file included from drivers/imx6ull.h:18,
from drivers/board.h:14,
from drivers/drv_common.h:15,
from drivers/drv_adc.c:24:
/home/runner/work/rt-thread/rt-thread/components/lwp/lwp.h:88:2: error: #error "No compatible lwp set status provided for this libc"
88 | #error "No compatible lwp set status provided for this libc"
| ^~~~~
scons: *** [build/drivers/board.o] Error 1
scons: *** [build/drivers/bsp_clock.o] Error 1
drivers/drv_adc.c:32:17: warning: 'imx6ull_adc_convert' defined but not used [-Wunused-function]
32 | static rt_err_t imx6ull_adc_convert(struct rt_adc_device *device, rt_uint32_t channel, rt_uint32_t *value)
| ^~~~~~~~~~~~~~~~~~~
drivers/drv_adc.c:27:17: warning: 'imx6ull_adc_enabled' defined but not used [-Wunused-function]
27 | static rt_err_t imx6ull_adc_enabled(struct rt_adc_device *device, rt_uint32_t channel, rt_bool_t enabled)
| ^~~~~~~~~~~~~~~~~~~
scons: *** [build/drivers/drv_common.o] Error 1
scons: *** [build/drivers/drv_adc.o] Error 1
scons: building terminated because of errors.
scons -c
Error: build nxp/imx/imx6ull-smart failed
Error: Process completed with exit code 1.
我看 和 .clang-format-ignore 修改无关,需要做什么使检查通过么?
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
你的解决方案是什么 (what is your solution)
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 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