Files
retroSoC/quality/embedded_c_policy.json
T
maksyuki 0d4999a794 refactor: refactor embedded C policy and enhance warning checks
- Updated the default output path in  to .
- Introduced a new  file to define excluded prefixes, compatibility files, and forbidden calls for embedded C sources.
- Modified  to improve compiler flags and source file organization.
- Added scripts for checking C warnings and embedded C compliance, ensuring self-owned sources are validated against the policy.
- Implemented regression tests to capture and report self-owned C compiler warnings during builds.
- Created a new test suite for runtime tests of SDK utilities, ensuring deterministic behavior.
- Enhanced existing test scripts to include checks for C warnings and compliance with the embedded C policy.
2026-07-11 12:43:26 +08:00

28 lines
533 B
JSON

{
"excluded_prefixes": [
"app/coremark/coremark-main/",
"app/fatfs/ff16/",
"app/lvgl/lvgl-main/",
"app/middleware/fatfs/ffconf.h",
"app/ports/lvgl/",
"crt/inc/",
"crt/arch/riscv/pico_irq/"
],
"compatibility_files": [
"crt/include/retrosoc/lib/string.h",
"crt/src/lib/string.c",
"crt/include/retrosoc/lib/stdlib.h",
"crt/src/lib/stdlib.c"
],
"forbidden_calls": [
"strcpy",
"strcat",
"strncpy",
"sprintf",
"vsprintf",
"malloc",
"free",
"atoi"
]
}