diff --git a/.clang-format b/.clang-format index ebcac082c6a..ab2163ae457 100644 --- a/.clang-format +++ b/.clang-format @@ -10,7 +10,7 @@ AccessModifierOffset: -1 AlignAfterOpenBracket: Align AlignArrayOfStructures: None AlignConsecutiveAssignments: - Enabled: false + Enabled: true AcrossEmptyLines: false AcrossComments: false AlignCompound: true @@ -236,4 +236,4 @@ WhitespaceSensitiveMacros: - CF_SWIFT_NAME - NS_SWIFT_NAME - PP_STRINGIZE - - STRINGIZE \ No newline at end of file + - STRINGIZE diff --git a/.clang-format-ignore b/.clang-format-ignore new file mode 100644 index 00000000000..d3df69179fa --- /dev/null +++ b/.clang-format-ignore @@ -0,0 +1,27 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# + +# .git/.gihub/.vscode etc +.*/** +# documentation +documentation/** +# tools +tools/** + +# rtconfig.h +**/rtconfig.h +# Arm CMSIS +**/CMSIS/** +# cubemx auto generated +**/CubeMX_Config/** diff --git a/bsp/.clang-format b/bsp/.clang-format deleted file mode 100644 index 2a36a9c4393..00000000000 --- a/bsp/.clang-format +++ /dev/null @@ -1,11 +0,0 @@ -# Available style options are described in https://clang.llvm.org/docs/ClangFormatStyleOptions.html -# -# An easy way to create the .clang-format file is: -# -# clang-format -style=llvm -dump-config > .clang-format -# ---- -Language: Cpp -DisableFormat: true ---- - diff --git a/bsp/Infineon/psoc6-evaluationkit-062S2/libs/.clang-format-ignore b/bsp/Infineon/psoc6-evaluationkit-062S2/libs/.clang-format-ignore new file mode 100644 index 00000000000..70fbf240c71 --- /dev/null +++ b/bsp/Infineon/psoc6-evaluationkit-062S2/libs/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +TARGET_RTT-062S2/** diff --git a/bsp/Vango/v85xx/Libraries/.clang-format-ignore b/bsp/Vango/v85xx/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..cc4fbcac3c9 --- /dev/null +++ b/bsp/Vango/v85xx/Libraries/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CMSIS/** +VangoV85xx_standard_peripheral/** diff --git a/bsp/Vango/v85xxp/Libraries/.clang-format-ignore b/bsp/Vango/v85xxp/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..429b80f19f8 --- /dev/null +++ b/bsp/Vango/v85xxp/Libraries/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CMSIS/** +VangoV85xxP_standard_peripheral/** diff --git a/bsp/acm32/acm32f0x0-nucleo/.clang-format-ignore b/bsp/acm32/acm32f0x0-nucleo/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/acm32/acm32f0x0-nucleo/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/acm32/acm32f4xx-nucleo/.clang-format-ignore b/bsp/acm32/acm32f4xx-nucleo/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/acm32/acm32f4xx-nucleo/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/apm32/libraries/.clang-format-ignore b/bsp/apm32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..48fc5ed1eea --- /dev/null +++ b/bsp/apm32/libraries/.clang-format-ignore @@ -0,0 +1,18 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +APM32F0xx_Library/** +APM32F10x_Library/** +APM32F4xx_Library/** +APM32E10x_Library/** +APM32S10x_Library/** diff --git a/bsp/at32/libraries/.clang-format-ignore b/bsp/at32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..f2799b597ce --- /dev/null +++ b/bsp/at32/libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CMSIS/** diff --git a/bsp/bouffalo_lab/libraries/bl_mcu_sdk/.clang-format-ignore b/bsp/bouffalo_lab/libraries/bl_mcu_sdk/.clang-format-ignore new file mode 100644 index 00000000000..b96d9d026cd --- /dev/null +++ b/bsp/bouffalo_lab/libraries/bl_mcu_sdk/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +drivers/** +tools/** diff --git a/bsp/core-v-mcu/Libraries/core_v_hal_libraries/.clang-format-ignore b/bsp/core-v-mcu/Libraries/core_v_hal_libraries/.clang-format-ignore new file mode 100644 index 00000000000..1d5ac7607f4 --- /dev/null +++ b/bsp/core-v-mcu/Libraries/core_v_hal_libraries/.clang-format-ignore @@ -0,0 +1,16 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bmsis/** +core_v_hal/** +core_v_udma_driver/** diff --git a/bsp/core-v-mcu/Libraries/core_v_hal_libraries/bmsis/core-v-mcu/source/.clang-format-ignore b/bsp/core-v-mcu/Libraries/core_v_hal_libraries/bmsis/core-v-mcu/source/.clang-format-ignore new file mode 100644 index 00000000000..ef9835883fb --- /dev/null +++ b/bsp/core-v-mcu/Libraries/core_v_hal_libraries/bmsis/core-v-mcu/source/.clang-format-ignore @@ -0,0 +1,16 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +core-v-mcu.c/** +crt0.S/** +vectors.S/** diff --git a/bsp/cvitek/drivers/.clang-format-ignore b/bsp/cvitek/drivers/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/cvitek/drivers/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/essemi/es32f0654/.clang-format-ignore b/bsp/essemi/es32f0654/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/essemi/es32f0654/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/essemi/es32f369x/.clang-format-ignore b/bsp/essemi/es32f369x/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/essemi/es32f369x/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/essemi/es32vf2264/.clang-format-ignore b/bsp/essemi/es32vf2264/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/essemi/es32vf2264/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/fm33lc026/.clang-format-ignore b/bsp/fm33lc026/.clang-format-ignore new file mode 100644 index 00000000000..88f8b74f46b --- /dev/null +++ b/bsp/fm33lc026/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +libraries/** diff --git a/bsp/ft32/libraries/.clang-format-ignore b/bsp/ft32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..59e4b25d255 --- /dev/null +++ b/bsp/ft32/libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +FT32F0xx/** diff --git a/bsp/gd32/arm/libraries/.clang-format-ignore b/bsp/gd32/arm/libraries/.clang-format-ignore new file mode 100644 index 00000000000..51eb8a80922 --- /dev/null +++ b/bsp/gd32/arm/libraries/.clang-format-ignore @@ -0,0 +1,17 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +GD32F10x_Firmware_Library/** +GD32F20x_Firmware_Library/** +GD32F30x_Firmware_Library/** +GD32F4xx_Firmware_Library/** diff --git a/bsp/hc32/libraries/.clang-format-ignore b/bsp/hc32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..ba76d5ec67d --- /dev/null +++ b/bsp/hc32/libraries/.clang-format-ignore @@ -0,0 +1,17 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +hc32f4a0_ddl/** +hc32f460_ddl/** +hc32f448_ddl/** +hc32f472_ddl/** diff --git a/bsp/hc32l136/.clang-format-ignore b/bsp/hc32l136/.clang-format-ignore new file mode 100644 index 00000000000..4f25943e815 --- /dev/null +++ b/bsp/hc32l136/.clang-format-ignore @@ -0,0 +1,13 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# diff --git a/bsp/hc32l196/.clang-format-ignore b/bsp/hc32l196/.clang-format-ignore new file mode 100644 index 00000000000..76ca5ac992c --- /dev/null +++ b/bsp/hc32l196/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/** diff --git a/bsp/hk32/.clang-format-ignore b/bsp/hk32/.clang-format-ignore new file mode 100644 index 00000000000..4f25943e815 --- /dev/null +++ b/bsp/hk32/.clang-format-ignore @@ -0,0 +1,13 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# diff --git a/bsp/hpmicro/.clang-format-ignore b/bsp/hpmicro/.clang-format-ignore new file mode 100644 index 00000000000..5895e881977 --- /dev/null +++ b/bsp/hpmicro/.clang-format-ignore @@ -0,0 +1,35 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +hpm6200evk/startup/** +hpm6200evk/board/** +hpm6300evk/startup/** +hpm6300evk/board/** +hpm6750evk/startup/** +hpm6750evk/board/** +hpm6750evk2/startup/** +hpm6750evk2/board/** +hpm6750evkmini/startup/** +hpm6750evkmini/board/** +hpm5300evk/startup/** +hpm5300evk/board/** +hpm5301evklite/startup/** +hpm5301evklite/board/** +hpm6800evk/startup/** +hpm6800evk/board/** +hpm6e00evk/startup/** +hpm6e00evk/board/** +hpm6p00evk/startup/** +hpm6p00evk/board/** +hpm5e00evk/startup/** +hpm5e00evk/board/** diff --git a/bsp/ht32/libraries/.clang-format-ignore b/bsp/ht32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..7c11405f5bb --- /dev/null +++ b/bsp/ht32/libraries/.clang-format-ignore @@ -0,0 +1,16 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +HT32_STD_1xxxx_FWLib/** +HT32_STD_5xxxx_FWLib/** +usbd_library/** diff --git a/bsp/microchip/samc21/.clang-format-ignore b/bsp/microchip/samc21/.clang-format-ignore new file mode 100644 index 00000000000..21badba3f2b --- /dev/null +++ b/bsp/microchip/samc21/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp/** diff --git a/bsp/microchip/samd51-adafruit-metro-m4/.clang-format-ignore b/bsp/microchip/samd51-adafruit-metro-m4/.clang-format-ignore new file mode 100644 index 00000000000..21badba3f2b --- /dev/null +++ b/bsp/microchip/samd51-adafruit-metro-m4/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp/** diff --git a/bsp/microchip/samd51-seeed-wio-terminal/.clang-format-ignore b/bsp/microchip/samd51-seeed-wio-terminal/.clang-format-ignore new file mode 100644 index 00000000000..21badba3f2b --- /dev/null +++ b/bsp/microchip/samd51-seeed-wio-terminal/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp/** diff --git a/bsp/microchip/same54/.clang-format-ignore b/bsp/microchip/same54/.clang-format-ignore new file mode 100644 index 00000000000..21badba3f2b --- /dev/null +++ b/bsp/microchip/same54/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp/** diff --git a/bsp/microchip/same70/.clang-format-ignore b/bsp/microchip/same70/.clang-format-ignore new file mode 100644 index 00000000000..21badba3f2b --- /dev/null +++ b/bsp/microchip/same70/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp/** diff --git a/bsp/microchip/saml10/.clang-format-ignore b/bsp/microchip/saml10/.clang-format-ignore new file mode 100644 index 00000000000..21badba3f2b --- /dev/null +++ b/bsp/microchip/saml10/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp/** diff --git a/bsp/mm32f103x/.clang-format-ignore b/bsp/mm32f103x/.clang-format-ignore new file mode 100644 index 00000000000..76ca5ac992c --- /dev/null +++ b/bsp/mm32f103x/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/** diff --git a/bsp/mm32f327x/.clang-format-ignore b/bsp/mm32f327x/.clang-format-ignore new file mode 100644 index 00000000000..76ca5ac992c --- /dev/null +++ b/bsp/mm32f327x/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/** diff --git a/bsp/mm32f526x/.clang-format-ignore b/bsp/mm32f526x/.clang-format-ignore new file mode 100644 index 00000000000..76ca5ac992c --- /dev/null +++ b/bsp/mm32f526x/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/** diff --git a/bsp/n32/libraries/.clang-format-ignore b/bsp/n32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..e333acb7146 --- /dev/null +++ b/bsp/n32/libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +N32G45x_Firmware_Library/** diff --git a/bsp/n32g452xx/.clang-format-ignore b/bsp/n32g452xx/.clang-format-ignore new file mode 100644 index 00000000000..b7f1d306f3b --- /dev/null +++ b/bsp/n32g452xx/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/N32_Std_Driver/** 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 00000000000..8b645f15ec1 --- /dev/null +++ b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore @@ -0,0 +1,16 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +board/board.c/** +board/MCUX_Config/** +xip/** diff --git a/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore b/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore new file mode 100644 index 00000000000..3d969186efa --- /dev/null +++ b/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +MIMXRT1060/** diff --git a/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore b/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..a25e99ec173 --- /dev/null +++ b/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore @@ -0,0 +1,18 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +LPC55S6X/** +LPC55S06/** +LPC5502/** +LPC55S28/** +LPC55S36/** 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 00000000000..97a8e01cf75 --- /dev/null +++ b/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +MCXA153/** diff --git a/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..57ce83ea14e --- /dev/null +++ b/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +MCXC444/** diff --git a/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..672e4c745a1 --- /dev/null +++ b/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +MCXN947/** diff --git a/bsp/renesas/libraries/.clang-format-ignore b/bsp/renesas/libraries/.clang-format-ignore new file mode 100644 index 00000000000..31d5ecc7f5f --- /dev/null +++ b/bsp/renesas/libraries/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +bsp-template/** diff --git a/bsp/renesas/libraries/bsp-template/.clang-format-ignore b/bsp/renesas/libraries/bsp-template/.clang-format-ignore new file mode 100644 index 00000000000..217068fb77a --- /dev/null +++ b/bsp/renesas/libraries/bsp-template/.clang-format-ignore @@ -0,0 +1,17 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +ra/** +ra_gen/** +ra_cfg/** +RTE/** diff --git a/bsp/renesas/ra4m1-ek/.clang-format-ignore b/bsp/renesas/ra4m1-ek/.clang-format-ignore new file mode 100644 index 00000000000..217068fb77a --- /dev/null +++ b/bsp/renesas/ra4m1-ek/.clang-format-ignore @@ -0,0 +1,17 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +ra/** +ra_gen/** +ra_cfg/** +RTE/** diff --git a/bsp/rockchip/common/.clang-format-ignore b/bsp/rockchip/common/.clang-format-ignore new file mode 100644 index 00000000000..58fc016e6a6 --- /dev/null +++ b/bsp/rockchip/common/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +rk_hal/** diff --git a/bsp/stm32/libraries/.clang-format-ignore b/bsp/stm32/libraries/.clang-format-ignore new file mode 100644 index 00000000000..cb14b751226 --- /dev/null +++ b/bsp/stm32/libraries/.clang-format-ignore @@ -0,0 +1,31 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +STM32F0xx_HAL/** +STM32F1xx_HAL/** +STM32F2xx_HAL/** +STM32F3xx_HAL/** +STM32F4xx_HAL/** +STM32F7xx_HAL/** +STM32G0xx_HAL/** +STM32G4xx_HAL/** +STM32H7xx_HAL/** +STM32L0xx_HAL/** +STM32L1xx_HAL/** +STM32L4xx_HAL/** +STM32L5xx_HAL/** +STM32MPxx_HAL/** +STM32U5xx_HAL/** +STM32H5xx_HAL/** +STM32WBxx_HAL/** +STM32WLxx_HAL/** diff --git a/bsp/stm32/libraries/templates/stm32l5xx/board/.clang-format-ignore b/bsp/stm32/libraries/templates/stm32l5xx/board/.clang-format-ignore new file mode 100644 index 00000000000..c2cff91be79 --- /dev/null +++ b/bsp/stm32/libraries/templates/stm32l5xx/board/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** +linker_scripts/** diff --git a/bsp/stm32/stm32f072-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f072-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f072-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f091-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f091-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f091-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-atk-nano/board/.clang-format-ignore b/bsp/stm32/stm32f103-atk-nano/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-atk-nano/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-atk-warshipv3/board/.clang-format-ignore b/bsp/stm32/stm32f103-atk-warshipv3/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-atk-warshipv3/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-blue-pill/board/.clang-format-ignore b/bsp/stm32/stm32f103-blue-pill/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-blue-pill/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/.clang-format-ignore b/bsp/stm32/stm32f103-dofly-M3S/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-dofly-M3S/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-dofly-lyc8/board/.clang-format-ignore b/bsp/stm32/stm32f103-dofly-lyc8/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-dofly-lyc8/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/.clang-format-ignore b/bsp/stm32/stm32f103-fire-arbitrary/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-fire-arbitrary/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-gizwits-gokitv21/board/.clang-format-ignore b/bsp/stm32/stm32f103-gizwits-gokitv21/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-gizwits-gokitv21/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/.clang-format-ignore b/bsp/stm32/stm32f103-hw100k-ibox/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-hw100k-ibox/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-keysking-learning/board/.clang-format-ignore b/bsp/stm32/stm32f103-keysking-learning/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-keysking-learning/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-onenet-nbiot/board/.clang-format-ignore b/bsp/stm32/stm32f103-onenet-nbiot/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-onenet-nbiot/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f103-yf-ufun/board/.clang-format-ignore b/bsp/stm32/stm32f103-yf-ufun/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f103-yf-ufun/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f107-uc-eval/board/.clang-format-ignore b/bsp/stm32/stm32f107-uc-eval/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f107-uc-eval/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f207-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f207-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f207-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f302-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f302-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f302-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f334-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f334-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f334-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f401-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f401-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f401-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/board/.clang-format-ignore b/bsp/stm32/stm32f405-smdz-breadfruit/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f405-smdz-breadfruit/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f407-armfly-v5/board/.clang-format-ignore b/bsp/stm32/stm32f407-armfly-v5/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f407-armfly-v5/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f407-atk-explorer/board/.clang-format-ignore b/bsp/stm32/stm32f407-atk-explorer/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f407-atk-explorer/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f407-lckfb-skystar/board/.clang-format-ignore b/bsp/stm32/stm32f407-lckfb-skystar/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f407-lckfb-skystar/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f407-robomaster-c/board/.clang-format-ignore b/bsp/stm32/stm32f407-robomaster-c/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f407-robomaster-c/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f407-rt-spark/board/.clang-format-ignore b/bsp/stm32/stm32f407-rt-spark/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f407-rt-spark/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f407-st-discovery/board/.clang-format-ignore b/bsp/stm32/stm32f407-st-discovery/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f407-st-discovery/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f410-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f410-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f410-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f411-atk-nano/board/.clang-format-ignore b/bsp/stm32/stm32f411-atk-nano/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f411-atk-nano/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f411-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f411-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f411-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f411-weact-blackpill/board/.clang-format-ignore b/bsp/stm32/stm32f411-weact-blackpill/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f411-weact-blackpill/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f412-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f412-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f412-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f413-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f413-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f413-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f427-robomaster-a/board/.clang-format-ignore b/bsp/stm32/stm32f427-robomaster-a/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f427-robomaster-a/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f429-armfly-v6/board/.clang-format-ignore b/bsp/stm32/stm32f429-armfly-v6/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f429-armfly-v6/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f429-atk-apollo/board/.clang-format-ignore b/bsp/stm32/stm32f429-atk-apollo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f429-atk-apollo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f429-fire-challenger/board/.clang-format-ignore b/bsp/stm32/stm32f429-fire-challenger/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f429-fire-challenger/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f429-st-disco/board/.clang-format-ignore b/bsp/stm32/stm32f429-st-disco/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f429-st-disco/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f446-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f446-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f446-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f469-st-disco/board/.clang-format-ignore b/bsp/stm32/stm32f469-st-disco/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f469-st-disco/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f723-st-disco/board/.clang-format-ignore b/bsp/stm32/stm32f723-st-disco/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f723-st-disco/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f746-st-disco/board/.clang-format-ignore b/bsp/stm32/stm32f746-st-disco/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f746-st-disco/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f746-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f746-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f746-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f767-atk-apollo/board/.clang-format-ignore b/bsp/stm32/stm32f767-atk-apollo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f767-atk-apollo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/.clang-format-ignore b/bsp/stm32/stm32f767-fire-challenger-v1/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f767-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32f767-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f767-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32f769-st-disco/board/.clang-format-ignore b/bsp/stm32/stm32f769-st-disco/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32f769-st-disco/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32g070-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32g070-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32g070-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32g071-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32g071-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32g071-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32g431-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32g431-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32g431-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32g474-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32g474-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32g474-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32g491-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32g491-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32g491-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h503-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32h503-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..c2cff91be79 --- /dev/null +++ b/bsp/stm32/stm32h503-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** +linker_scripts/** diff --git a/bsp/stm32/stm32h563-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32h563-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..c2cff91be79 --- /dev/null +++ b/bsp/stm32/stm32h563-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** +linker_scripts/** diff --git a/bsp/stm32/stm32h723-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32h723-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h723-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h730-esphosted-evb/board/.clang-format-ignore b/bsp/stm32/stm32h730-esphosted-evb/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h730-esphosted-evb/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h743-armfly-v7/board/.clang-format-ignore b/bsp/stm32/stm32h743-armfly-v7/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h743-armfly-v7/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h743-atk-apollo/board/.clang-format-ignore b/bsp/stm32/stm32h743-atk-apollo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h743-atk-apollo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h743-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32h743-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h743-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h747-st-discovery/board/.clang-format-ignore b/bsp/stm32/stm32h747-st-discovery/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h747-st-discovery/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h750-armfly-h7-tool/board/.clang-format-ignore b/bsp/stm32/stm32h750-armfly-h7-tool/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h750-armfly-h7-tool/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h750-artpi/board/.clang-format-ignore b/bsp/stm32/stm32h750-artpi/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h750-artpi/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h7r7-artpi2/board/.clang-format-ignore b/bsp/stm32/stm32h7r7-artpi2/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h7r7-artpi2/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32h7s7-st-disco/board/.clang-format-ignore b/bsp/stm32/stm32h7s7-st-disco/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32h7s7-st-disco/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l010-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l010-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l010-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l053-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l053-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l053-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l412-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l412-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l412-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l431-BearPi/board/.clang-format-ignore b/bsp/stm32/stm32l431-BearPi/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l431-BearPi/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l432-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l432-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l432-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l433-ali-startkit/board/.clang-format-ignore b/bsp/stm32/stm32l433-ali-startkit/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l433-ali-startkit/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l433-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l433-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l433-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l452-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l452-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l452-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l475-atk-pandora/board/.clang-format-ignore b/bsp/stm32/stm32l475-atk-pandora/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l475-atk-pandora/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l475-st-discovery/board/.clang-format-ignore b/bsp/stm32/stm32l475-st-discovery/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l475-st-discovery/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l476-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l476-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l476-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l496-ali-developer/board/.clang-format-ignore b/bsp/stm32/stm32l496-ali-developer/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l496-ali-developer/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l496-st-discovery/board/.clang-format-ignore b/bsp/stm32/stm32l496-st-discovery/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l496-st-discovery/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l496-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l496-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l496-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l4r5-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l4r5-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l4r5-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l4r9-st-eval/board/.clang-format-ignore b/bsp/stm32/stm32l4r9-st-eval/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l4r9-st-eval/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/board/.clang-format-ignore b/bsp/stm32/stm32l4r9-st-sensortile-box/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32l4r9-st-sensortile-box/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32l552-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32l552-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..c2cff91be79 --- /dev/null +++ b/bsp/stm32/stm32l552-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** +linker_scripts/** diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/.clang-format-ignore b/bsp/stm32/stm32mp157a-st-discovery/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32mp157a-st-discovery/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/.clang-format-ignore b/bsp/stm32/stm32mp157a-st-ev1/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32mp157a-st-ev1/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32u575-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32u575-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..c2cff91be79 --- /dev/null +++ b/bsp/stm32/stm32u575-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** +linker_scripts/** diff --git a/bsp/stm32/stm32u585-iot02a/board/.clang-format-ignore b/bsp/stm32/stm32u585-iot02a/board/.clang-format-ignore new file mode 100644 index 00000000000..c2cff91be79 --- /dev/null +++ b/bsp/stm32/stm32u585-iot02a/board/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** +linker_scripts/** diff --git a/bsp/stm32/stm32wb55-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32wb55-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32wb55-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32wl55-st-nucleo/board/.clang-format-ignore b/bsp/stm32/stm32wl55-st-nucleo/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32wl55-st-nucleo/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/board/.clang-format-ignore b/bsp/stm32/stm32wle5-yizhilian-lm401/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32wle5-yizhilian-lm401/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/stm32/stm32wle5-yizhilian-lm402/board/.clang-format-ignore b/bsp/stm32/stm32wle5-yizhilian-lm402/board/.clang-format-ignore new file mode 100644 index 00000000000..7659a342a5c --- /dev/null +++ b/bsp/stm32/stm32wle5-yizhilian-lm402/board/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CubeMX_Config/** diff --git a/bsp/tae32f5300/.clang-format-ignore b/bsp/tae32f5300/.clang-format-ignore new file mode 100644 index 00000000000..76ca5ac992c --- /dev/null +++ b/bsp/tae32f5300/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/** diff --git a/bsp/wch/arm/.clang-format-ignore b/bsp/wch/arm/.clang-format-ignore new file mode 100644 index 00000000000..7882350fd33 --- /dev/null +++ b/bsp/wch/arm/.clang-format-ignore @@ -0,0 +1,15 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/CH32F10x_StdPeriph_Driver/** +Libraries/CH32F20x_StdPeriph_Driver/** diff --git a/bsp/wch/risc-v/.clang-format-ignore b/bsp/wch/risc-v/.clang-format-ignore new file mode 100644 index 00000000000..9ce20c365f7 --- /dev/null +++ b/bsp/wch/risc-v/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +Libraries/CH32V10x_StdPeriph_Driver/** diff --git a/bsp/yichip/yc3121-pos/.clang-format-ignore b/bsp/yichip/yc3121-pos/.clang-format-ignore new file mode 100644 index 00000000000..4f25943e815 --- /dev/null +++ b/bsp/yichip/yc3121-pos/.clang-format-ignore @@ -0,0 +1,13 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# diff --git a/bsp/yichip/yc3122-pos/Libraries/.clang-format-ignore b/bsp/yichip/yc3122-pos/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..c108b3cb265 --- /dev/null +++ b/bsp/yichip/yc3122-pos/Libraries/.clang-format-ignore @@ -0,0 +1,17 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +CMSIS/** +core/** +sdk/** +startup/** diff --git a/components/dfs/dfs_v1/filesystems/.clang-format-ignore b/components/dfs/dfs_v1/filesystems/.clang-format-ignore new file mode 100644 index 00000000000..7844cdd1374 --- /dev/null +++ b/components/dfs/dfs_v1/filesystems/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +elmfat/** diff --git a/components/dfs/dfs_v1/filesystems/elmfat/.clang-format b/components/dfs/dfs_v1/filesystems/elmfat/.clang-format deleted file mode 100644 index 2a36a9c4393..00000000000 --- a/components/dfs/dfs_v1/filesystems/elmfat/.clang-format +++ /dev/null @@ -1,11 +0,0 @@ -# Available style options are described in https://clang.llvm.org/docs/ClangFormatStyleOptions.html -# -# An easy way to create the .clang-format file is: -# -# clang-format -style=llvm -dump-config > .clang-format -# ---- -Language: Cpp -DisableFormat: true ---- - diff --git a/components/dfs/dfs_v1/filesystems/elmfat/.clang-format-ignore b/components/dfs/dfs_v1/filesystems/elmfat/.clang-format-ignore new file mode 100644 index 00000000000..8ab44c4c9ca --- /dev/null +++ b/components/dfs/dfs_v1/filesystems/elmfat/.clang-format-ignore @@ -0,0 +1,18 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +diskio.h +ff.c +ff.h +ffconf.h +ffunicode.c diff --git a/components/dfs/dfs_v2/filesystems/.clang-format-ignore b/components/dfs/dfs_v2/filesystems/.clang-format-ignore new file mode 100644 index 00000000000..7844cdd1374 --- /dev/null +++ b/components/dfs/dfs_v2/filesystems/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +elmfat/** diff --git a/components/dfs/dfs_v2/filesystems/elmfat/.clang-format b/components/dfs/dfs_v2/filesystems/elmfat/.clang-format deleted file mode 100644 index 2a36a9c4393..00000000000 --- a/components/dfs/dfs_v2/filesystems/elmfat/.clang-format +++ /dev/null @@ -1,11 +0,0 @@ -# Available style options are described in https://clang.llvm.org/docs/ClangFormatStyleOptions.html -# -# An easy way to create the .clang-format file is: -# -# clang-format -style=llvm -dump-config > .clang-format -# ---- -Language: Cpp -DisableFormat: true ---- - diff --git a/components/dfs/dfs_v2/filesystems/elmfat/.clang-format-ignore b/components/dfs/dfs_v2/filesystems/elmfat/.clang-format-ignore new file mode 100644 index 00000000000..8ab44c4c9ca --- /dev/null +++ b/components/dfs/dfs_v2/filesystems/elmfat/.clang-format-ignore @@ -0,0 +1,18 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +diskio.h +ff.c +ff.h +ffconf.h +ffunicode.c diff --git a/components/drivers/usb/.clang-format-ignore b/components/drivers/usb/.clang-format-ignore new file mode 100644 index 00000000000..991e3ee40cd --- /dev/null +++ b/components/drivers/usb/.clang-format-ignore @@ -0,0 +1,14 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +cherryusb/** diff --git a/components/net/lwip/.clang-format b/components/net/lwip/.clang-format deleted file mode 100644 index 2a36a9c4393..00000000000 --- a/components/net/lwip/.clang-format +++ /dev/null @@ -1,11 +0,0 @@ -# Available style options are described in https://clang.llvm.org/docs/ClangFormatStyleOptions.html -# -# An easy way to create the .clang-format file is: -# -# clang-format -style=llvm -dump-config > .clang-format -# ---- -Language: Cpp -DisableFormat: true ---- - diff --git a/components/net/lwip/.clang-format-ignore b/components/net/lwip/.clang-format-ignore new file mode 100644 index 00000000000..46e54ed99b0 --- /dev/null +++ b/components/net/lwip/.clang-format-ignore @@ -0,0 +1,16 @@ + +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +lwip-1.4.1/** +lwip-2.0.3/** +lwip-2.1.2/** diff --git a/tools/release/run-clang-format.py b/tools/ci/clang_format.py similarity index 65% rename from tools/release/run-clang-format.py rename to tools/ci/clang_format.py index 76d13774d3f..0c4fc9127de 100644 --- a/tools/release/run-clang-format.py +++ b/tools/ci/clang_format.py @@ -42,59 +42,131 @@ class ExitStatus: TROUBLE = 2 -def excludes_from_file(ignore_file): +def get_ignore_file(filepath): + fileparts = os.path.normpath(filepath).split(os.path.sep) + + for idx in range(len(fileparts) - 1, 0, -1): + parent = os.path.sep.join(fileparts[0:idx]) + if os.path.isfile(os.path.join(parent, DEFAULT_CLANG_FORMAT_IGNORE)): + return os.path.join(parent, DEFAULT_CLANG_FORMAT_IGNORE) + + return None + + +def get_ignore_config(filepath): + ignorepath = get_ignore_file(filepath) + + if not ignorepath: + return [], None + excludes = [] try: - with io.open(ignore_file, "r", encoding="utf-8") as f: + with io.open(ignorepath, "r", encoding="utf-8") as f: for line in f: - if line.startswith("#"): + pattern = line.strip() + if not pattern: # ignore comments continue - pattern = line.rstrip() - if not pattern: + elif pattern.startswith("#"): # allow empty lines continue - excludes.append(pattern) + else: + excludes.append(pattern) except EnvironmentError as e: if e.errno != errno.ENOENT: raise - return excludes + return excludes, ignorepath -def list_files(files, recursive=False, extensions=None, exclude=None): + +def check_ignore_status(filepath, excludes=None, extensions=DEFAULT_EXTENSIONS): + if excludes is None: + excludes = [] if extensions is None: extensions = [] - if exclude is None: - exclude = [] + # 如果扩展名不满足要求,则直接忽略 + ext = os.path.splitext(filepath)[1][1:] + if not ext in extensions: + return True + + # 检查是否在命令行的忽略列表中 + root_relpath = os.getcwd() + file_relpath = os.path.relpath(filepath, root_relpath) + for pattern in excludes: + if fnmatch.fnmatch(file_relpath, pattern): + return True + + # 查找clang-format-ignore的配置 + excludes, ignorepath = get_ignore_config(filepath) + root_relpath = os.path.dirname(ignorepath) + file_relpath = os.path.relpath(filepath, root_relpath) + for pattern in excludes: + if fnmatch.fnmatch(file_relpath, pattern): + return True + + return False + + +def list_files(files, recursive=False, excludes=None, extensions=DEFAULT_EXTENSIONS): out = [] for file in files: if recursive and os.path.isdir(file): for dirpath, dnames, fnames in os.walk(file): - fpaths = [ - os.path.relpath(os.path.join(dirpath, fname), os.getcwd()) - for fname in fnames - ] - for pattern in exclude: - # os.walk() supports trimming down the dnames list - # by modifying it in-place, - # to avoid unnecessary directory listings. - dnames[:] = [ - x - for x in dnames - if not fnmatch.fnmatch(os.path.join(dirpath, x), pattern) - ] - fpaths = [x for x in fpaths if not fnmatch.fnmatch(x, pattern)] - - for f in fpaths: - ext = os.path.splitext(f)[1][1:] - if ext in extensions: - out.append(f) - else: - out.append(file) + for fname in fnames: + fpath = os.path.join(dirpath, fname) + if not check_ignore_status(fpath, excludes, extensions): + out.append(fpath) + elif os.path.isfile(file): + ext = os.path.splitext(file)[1][1:] + if ext in extensions: + out.append(file) return out +def list_files_changed(repo, exclude=None, extensions=DEFAULT_EXTENSIONS): + if repo and os.path.isdir(repo[0]): + os.chdir(repo[0]) + else: + return [] + + encoding_py3 = {} + if sys.version_info[0] >= 3: + encoding_py3["encoding"] = "utf-8" + + # invocation = ['git', '--no-pager', 'log', '--name-only', '-1'] + invocation = ['git', 'diff', '--name-only', 'HEAD', 'origin/master', '--diff-filter=ACMR', '--no-renames', '--full-index'] + try: + proc = subprocess.Popen( + invocation, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + universal_newlines=True, + **encoding_py3, + ) + except OSError as exc: + raise DiffError("Command '{}' failed to start: {}".format(subprocess.list2cmdline(invocation), exc)) + proc_stdout = proc.stdout + proc_stderr = proc.stderr + if sys.version_info[0] < 3: + # make the pipes compatible with Python 3, + # reading lines should output unicode + encoding = "utf-8" + proc_stdout = codecs.getreader(encoding)(proc_stdout) + proc_stderr = codecs.getreader(encoding)(proc_stderr) + # hopefully the stderr pipe won't get full and block the process + outs = list([line.strip() for line in proc_stdout.readlines()]) + errs = list(proc_stderr.readlines()) + proc.wait() + if proc.returncode: + raise DiffError( + "Command '{}' returned non-zero exit status {}".format(subprocess.list2cmdline(invocation), proc.returncode), + errs, + ) + + return list_files(outs, False, exclude, extensions) + + def make_diff(file, original, reformatted): return list( difflib.unified_diff( @@ -131,12 +203,6 @@ def run_clang_format_diff_wrapper(args, file): def run_clang_format_diff(args, file): - # try: - # with io.open(file, "r", encoding="utf-8") as f: - # original = f.readlines() - # except IOError as exc: - # raise DiffError(str(exc)) - if args.in_place: invocation = [args.clang_format_executable, "-i", file] else: @@ -177,14 +243,10 @@ def run_clang_format_diff(args, file): stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, - **encoding_py3 + **encoding_py3, ) except OSError as exc: - raise DiffError( - "Command '{}' failed to start: {}".format( - subprocess.list2cmdline(invocation), exc - ) - ) + raise DiffError("Command '{}' failed to start: {}".format(subprocess.list2cmdline(invocation), exc)) proc_stdout = proc.stdout proc_stderr = proc.stderr if sys.version_info[0] < 3: @@ -199,14 +261,18 @@ def run_clang_format_diff(args, file): proc.wait() if proc.returncode: raise DiffError( - "Command '{}' returned non-zero exit status {}".format( - subprocess.list2cmdline(invocation), proc.returncode - ), + "Command '{}' returned non-zero exit status {}".format(subprocess.list2cmdline(invocation), proc.returncode), errs, ) if args.in_place: return [], errs - return make_diff(file, original, outs), errs + else: + try: + with io.open(file, "r", encoding="utf-8") as f: + original = f.readlines() + except IOError as exc: + raise DiffError(str(exc)) + return make_diff(file, original, outs), errs def bold_red(s): @@ -265,9 +331,7 @@ def main(): ) parser.add_argument( "--extensions", - help="comma separated list of file extensions (default: {})".format( - DEFAULT_EXTENSIONS - ), + help="comma separated list of file extensions (default: {})".format(DEFAULT_EXTENSIONS), default=DEFAULT_EXTENSIONS, ) parser.add_argument( @@ -277,7 +341,10 @@ def main(): help="run recursively over directories", ) parser.add_argument( - "-d", "--dry-run", action="store_true", help="just print the list of files" + "-d", + "--dry-run", + action="store_true", + help="just print the list of files", ) parser.add_argument( "-i", @@ -285,7 +352,11 @@ def main(): action="store_true", help="format file instead of printing differences", ) - parser.add_argument("files", metavar="file", nargs="+") + parser.add_argument( + "files", + metavar="file", + nargs="+", + ) parser.add_argument( "-q", "--quiet", @@ -297,7 +368,7 @@ def main(): metavar="N", type=int, default=0, - help="run N clang-format jobs in parallel" " (default number of cpus + 1)", + help="run N clang-format jobs in parallel (default number of cpus + 1)", ) parser.add_argument( "--color", @@ -311,14 +382,20 @@ def main(): metavar="PATTERN", action="append", default=[], - help="exclude paths matching the given glob-like pattern(s)" - " from recursive search", + help="exclude paths matching the given glob-like pattern(s) from recursive search", ) parser.add_argument( "--style", default="file", help="formatting style to apply (LLVM, Google, Chromium, Mozilla, WebKit)", ) + parser.add_argument( + "-g", + "--git-changed-only", + action="store_true", + default=False, + help="formatting files changed last commit (git --no-pager log --name-only -1)", + ) args = parser.parse_args() @@ -351,27 +428,32 @@ def main(): except OSError as e: print_trouble( parser.prog, - "Command '{}' failed to start: {}".format( - subprocess.list2cmdline(version_invocation), e - ), + "Command '{}' failed to start: {}".format(subprocess.list2cmdline(version_invocation), e), use_colors=colored_stderr, ) return ExitStatus.TROUBLE retcode = ExitStatus.SUCCESS - if os.path.exists(DEFAULT_CLANG_FORMAT_IGNORE): - excludes = excludes_from_file(DEFAULT_CLANG_FORMAT_IGNORE) + # if os.path.exists(DEFAULT_CLANG_FORMAT_IGNORE): + # excludes = get_ignore_config(DEFAULT_CLANG_FORMAT_IGNORE) + # else: + # excludes = [] + # excludes.extend(args.exclude) + + if args.git_changed_only: + files = list_files_changed( + args.files, + excludes=args.exclude, + extensions=args.extensions.split(","), + ) else: - excludes = [] - excludes.extend(args.exclude) - - files = list_files( - args.files, - recursive=args.recursive, - exclude=excludes, - extensions=args.extensions.split(","), - ) + files = list_files( + args.files, + recursive=args.recursive, + excludes=args.exclude, + extensions=args.extensions.split(","), + ) if not files: return diff --git a/tools/ci/cpp_check.py b/tools/ci/cpp_check.py index 7f3ca5a4394..32dc117b150 100644 --- a/tools/ci/cpp_check.py +++ b/tools/ci/cpp_check.py @@ -13,8 +13,9 @@ import logging import subprocess import sys -import format_ignore +import clang_format # format_ignore import os + ''' --suppress=syntaxError: 该选项用于抑制特定的错误类型。在这里,syntaxError 是被忽略的错误类型。这意味着 Cppcheck 不会报告语法错误(syntaxError)。这是因为在某些情况下,分析工具可能会误报语法错误,但 CI(持续集成)系统会在编译时捕获这些错误,因此可以忽略。 @@ -37,12 +38,15 @@ --force: 这个选项强制 Cppcheck 对所有文件进行检查,即使它检测到编译条件缺失或某些配置问题。通常,如果某些宏定义或依赖项缺失,Cppcheck 可能会跳过某些文件的检查。但 --force 会强制工具继续执行分析,即使有可能缺少某些信息。这在某些大型项目中很有用,可以确保所有文件都经过检查。 ''' + + def add_summary(text): """ add summary to github action. """ os.system(f'echo "{text}" >> $GITHUB_STEP_SUMMARY ;') - + + class CPPCheck: def __init__(self, file_list): self.file_list = file_list @@ -73,32 +77,39 @@ def check(self): '--inline-suppr', '--error-exitcode=1', '--force', - file - ] + macros, - stdout = subprocess.PIPE, stderr = subprocess.PIPE) + file, + ] + + macros, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + ) logging.info(result.stdout.decode()) logging.info(result.stderr.decode()) if result.stderr: - add_summary("The following errors are for reference only. If they are not actual issues, please ignore them and do not make unnecessary modifications.") + add_summary( + "The following errors are for reference only. If they are not actual issues, please ignore them and do not make unnecessary modifications." + ) add_summary("以下错误仅供参考,如果发现没有问题,请直接忽略,不需要强行修改") add_summary(f"- :rotating_light: {result.stderr.decode()}") check_result = False return check_result + @click.group() @click.pass_context def cli(ctx): pass + @cli.command() def check(): """ static code analysis(cppcheck). """ - format_ignore.init_logger() + # format_ignore.init_logger() # get modified files list - checkout = format_ignore.CheckOut() - file_list = checkout.get_new_file() + # checkout = format_ignore.CheckOut() + file_list = clang_format.list_files_changed(os.getcwd()) if file_list is None: logging.error("checkout files fail") sys.exit(1) diff --git a/tools/ci/file_check.py b/tools/ci/file_check.py index 597c8c33b05..7193ae85104 100644 --- a/tools/ci/file_check.py +++ b/tools/ci/file_check.py @@ -16,15 +16,17 @@ import chardet import logging import datetime +import clang_format def init_logger(): log_format = "[%(filename)s %(lineno)d %(levelname)s] %(message)s " date_format = '%Y-%m-%d %H:%M:%S %a ' - logging.basicConfig(level=logging.INFO, - format=log_format, - datefmt=date_format, - ) + logging.basicConfig( + level=logging.INFO, + format=log_format, + datefmt=date_format, + ) class CheckOut: @@ -121,7 +123,9 @@ def __init__(self, file_list): self.file_list = file_list def __check_rt_errorcode(self, line): - pattern = re.compile(r'return\s+(RT_ERROR|RT_ETIMEOUT|RT_EFULL|RT_EEMPTY|RT_ENOMEM|RT_ENOSYS|RT_EBUSY|RT_EIO|RT_EINTR|RT_EINVAL|RT_ENOENT|RT_ENOSPC|RT_EPERM|RT_ETRAP|RT_EFAULT)') + pattern = re.compile( + r'return\s+(RT_ERROR|RT_ETIMEOUT|RT_EFULL|RT_EEMPTY|RT_ENOMEM|RT_ENOSYS|RT_EBUSY|RT_EIO|RT_EINTR|RT_EINVAL|RT_ENOENT|RT_ENOSPC|RT_EPERM|RT_ETRAP|RT_EFAULT)' + ) match = pattern.search(line) if match: return False @@ -137,7 +141,9 @@ def __check_file(self, file_lines, file_path): line_start = line.replace(' ', '') # find tab if line_start.startswith('\t'): - logging.error("{} line[{}]: please use space replace tab at the start of this line.".format(file_path, line_num)) + logging.error( + "{} line[{}]: please use space replace tab at the start of this line.".format(file_path, line_num) + ) check_result = False # check line end line_end = line.split('\n')[0] @@ -145,7 +151,11 @@ def __check_file(self, file_lines, file_path): logging.error("{} line[{}]: please delete extra space at the end of this line.".format(file_path, line_num)) check_result = False if self.__check_rt_errorcode(line) == False: - logging.error("{} line[{}]: the RT-Thread error code should return negative value. e.g. return -RT_ERROR".format(file_path, line_num)) + logging.error( + "{} line[{}]: the RT-Thread error code should return negative value. e.g. return -RT_ERROR".format( + file_path, line_num + ) + ) check_result = False return check_result @@ -177,7 +187,7 @@ def check(self): else: logging.info('[{0}]: encoding check success.'.format(file_path)) - with open(file_path, 'r', encoding = "utf-8") as f: + with open(file_path, 'r', encoding="utf-8") as f: file_lines = f.readlines() if not self.__check_file(file_lines, file_path): format_check_fail_files += 1 @@ -218,9 +228,9 @@ def check(self): license_year = re.search(r'2006-\d{4}', file[1]).group() true_year = '2006-{}'.format(current_year) if license_year != true_year: - logging.warning("[{0}]: license year: {} is not true: {}, please update.".format(file_path, - license_year, - true_year)) + logging.warning( + "[{0}]: license year: {} is not true: {}, please update.".format(file_path, license_year, true_year) + ) else: logging.info("[{0}]: license check success.".format(file_path)) @@ -284,6 +294,18 @@ def check(check_license, repo, branch): if not format_check_result or not license_check_result: logging.error("file format check or license check fail.") sys.exit(1) + + # use clang-format to format changed files + from collections import namedtuple + + clang_format_args = namedtuple("clang_format_args", ["clang_format_executable", "style", "dry_run", "in_place"]) + args = clang_format_args("clang-format", "file", False, False) + for file in file_list: + diff, errs = clang_format.run_clang_format_diff(args, file) + if not diff: + logging.error("clang format check fail, {}.".format(file)) + sys.exit(1) + logging.info("check success.") sys.exit(0) diff --git a/tools/convert_ignore_format_yml.py b/tools/convert_ignore_format_yml.py new file mode 100644 index 00000000000..40e276b2dfb --- /dev/null +++ b/tools/convert_ignore_format_yml.py @@ -0,0 +1,64 @@ +#!/usr/bin/env python +''' +convert rtt_root + "\\**\\.ignore_format.yml" to .clang-format-ignore +''' + +import os +import yaml +import argparse + + +def convert_ignore_format(ignore_format_yml): + if not os.path.exists(ignore_format_yml): + return + + try: + # read .ignore_format.yml + with open(ignore_format_yml) as f: + ignore_config = yaml.safe_load(f.read()) + file_ignore = ignore_config.get("file_path", []) + dirs_ignore = ignore_config.get("dir_path", []) + + # delete .ignore_format.yml + # os.remove(ignore_format_yml) + + # write .clang-format-ignore + clang_format_ignore = os.path.join(os.path.dirname(ignore_format_yml), ".clang-format-ignore") + with open(clang_format_ignore, "w", encoding='utf-8') as f: + f.write( + """ +# You can create .clang-format-ignore (https://clang.llvm.org/docs/ClangFormat.html#clang-format-ignore) files to make clang-format ignore certain files. A .clang-format-ignore file consists of patterns of file path names. It has the following format: +# - A blank line is skipped. +# - Leading and trailing spaces of a line are trimmed. +# - A line starting with a hash (#) is a comment. +# - A non-comment line is a single pattern. +# - The slash (/) is used as the directory separator. +# - A pattern is relative to the directory of the .clang-format-ignore file (or the root directory if the pattern starts with a slash). Patterns containing drive names (e.g. C:) are not supported. +# - Patterns follow the rules specified in POSIX 2.13.1, 2.13.2, and Rule 1 of 2.13.3. +# - Bash globstar (**) is supported. +# - A pattern is negated if it starts with a bang (!). +# To match all files in a directory, use e.g. foo/bar/*. To match all files in the directory of the .clang-format-ignore file, use *. Multiple .clang-format-ignore files are supported similar to the .clang-format files, with a lower directory level file voiding the higher level ones. +# +""" + ) + for item in file_ignore: + f.write(item + "\n") + for item in dirs_ignore: + f.write(item + "/**\n") + + except Exception as e: + pass + + +def main(): + # get rtt_root + rtt_root = os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../")) + # walk rtt_root find .ignore_format.yml + for root, folders, files in os.walk(rtt_root): + if ".ignore_format.yml" in files: + print("process " + os.path.join(root, ".ignore_format.yml")) + convert_ignore_format(os.path.join(root, ".ignore_format.yml")) + + +if __name__ == "__main__": + main()