summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomax2 <[email protected]>2025-11-07 17:00:33 +0800
committerGitHub <[email protected]>2025-11-07 17:00:33 +0800
commit2e1cf8d9812a1613c7d79b283146c08bd98a547e (patch)
tree5ce5d5eb297f02b061cad6a8a361dc1f155e9260
parent95f728731317b5e84bac30ae23871870a6b63c96 (diff)
utilize the clang-format-ignore mechanism in bsp/nxp
-rw-r--r--bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore10
-rw-r--r--bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml6
-rw-r--r--bsp/nxp/imx/imxrt/libraries/.ignore_format.yml4
-rw-r--r--bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml8
-rw-r--r--bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore9
-rw-r--r--bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml4
-rw-r--r--bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml4
-rw-r--r--bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml4
8 files changed, 19 insertions, 30 deletions
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