From 2bb3e5c265b7d63a20e958bf35ac7f83f131fb05 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Sun, 3 Aug 2025 21:44:57 +0200 Subject: [PATCH] r60/sfn: Update .clang-format * Short inline methods in headers may stay on one line. * Include system headers last to avoid hidden dependencies. Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/.clang-format | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/drivers/r600/sfn/.clang-format b/src/gallium/drivers/r600/sfn/.clang-format index 98865becac6..3d5df918319 100644 --- a/src/gallium/drivers/r600/sfn/.clang-format +++ b/src/gallium/drivers/r600/sfn/.clang-format @@ -2,11 +2,21 @@ BasedOnStyle: InheritParentConfig DisableFormat: false +AllowShortFunctionsOnASingleLine: true AlwaysBreakAfterReturnType: TopLevel AllowShortEnumsOnASingleLine: false BinPackParameters: false BinPackArguments: false +# Include local files first and go to more general files +# to avoid hidden dependencies +IncludeCategories: + - Regex: '<[[:alnum:].]+>' + Priority: 3 + - Regex: '.*\/.*' + Priority: 2 + - Regex: '.*' + Priority: 1 ColumnLimit: 90 IncludeBlocks: Regroup