clang-format: disable regrouping and sorting of includes

Disable regrouping and sorting of includes which can cause issues due to
order requirements in some subsystems.

Fixes #48520

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-08-19 14:57:17 -04:00 committed by Carles Cufí
commit c417cbc050

View file

@ -63,7 +63,8 @@ ForEachMacros:
- 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE' - 'Z_GENLIST_FOR_EACH_CONTAINER_SAFE'
- 'Z_GENLIST_FOR_EACH_NODE' - 'Z_GENLIST_FOR_EACH_NODE'
- 'Z_GENLIST_FOR_EACH_NODE_SAFE' - 'Z_GENLIST_FOR_EACH_NODE_SAFE'
IncludeBlocks: Regroup # Disabled for now, see bug https://github.com/zephyrproject-rtos/zephyr/issues/48520
#IncludeBlocks: Regroup
IncludeCategories: IncludeCategories:
- Regex: '^".*\.h"$' - Regex: '^".*\.h"$'
Priority: 0 Priority: 0
@ -76,6 +77,7 @@ IncludeCategories:
IndentCaseLabels: false IndentCaseLabels: false
IndentWidth: 8 IndentWidth: 8
# SpaceBeforeParens: ControlStatementsExceptControlMacros # clang-format >= 13.0 # SpaceBeforeParens: ControlStatementsExceptControlMacros # clang-format >= 13.0
SortIncludes: false
UseTab: Always UseTab: Always
WhitespaceSensitiveMacros: WhitespaceSensitiveMacros:
- STRINGIFY - STRINGIFY