From 2e1cf8d9812a1613c7d79b283146c08bd98a547e Mon Sep 17 00:00:00 2001 From: thomax2 Date: Fri, 7 Nov 2025 17:00:33 +0800 Subject: [PATCH] utilize the clang-format-ignore mechanism in bsp/nxp --- .../imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore | 10 ++++++++++ bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml | 6 ------ bsp/nxp/imx/imxrt/libraries/.ignore_format.yml | 4 ---- bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml | 8 -------- bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore | 9 +++++++++ bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml | 4 ---- bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml | 4 ---- bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml | 4 ---- 8 files changed, 19 insertions(+), 30 deletions(-) create mode 100644 bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore delete mode 100644 bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml delete mode 100644 bsp/nxp/imx/imxrt/libraries/.ignore_format.yml delete mode 100644 bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml create mode 100644 bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml delete mode 100644 bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml delete mode 100644 bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml diff --git a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore new file mode 100644 index 0000000000..82046b894f --- /dev/null +++ b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore @@ -0,0 +1,10 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP imxrt1060-nxp-evk library +/board/MCUX_Config/ +/xip/ \ No newline at end of file diff --git a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml deleted file mode 100644 index ea728a5a48..0000000000 --- a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml +++ /dev/null @@ -1,6 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- board/board.c -- board/MCUX_Config -- xip diff --git a/bsp/nxp/imx/imxrt/libraries/.ignore_format.yml b/bsp/nxp/imx/imxrt/libraries/.ignore_format.yml deleted file mode 100644 index b5c6019360..0000000000 --- a/bsp/nxp/imx/imxrt/libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MIMXRT1060 diff --git a/bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml b/bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml deleted file mode 100644 index 6235c0a1e1..0000000000 --- a/bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml +++ /dev/null @@ -1,8 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- LPC55S6X -- LPC55S06 -- LPC5502 -- LPC55S28 -- LPC55S36 \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore new file mode 100644 index 0000000000..9a657fbe1a --- /dev/null +++ b/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore @@ -0,0 +1,9 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP MCXA library +/MCXA153/ \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml b/bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml deleted file mode 100644 index 6b58f2d7f6..0000000000 --- a/bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MCXA153 diff --git a/bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml b/bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml deleted file mode 100644 index 44315486a7..0000000000 --- a/bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MCXC444 diff --git a/bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml b/bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml deleted file mode 100644 index f4d6178648..0000000000 --- a/bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MCXN947