From cb7e9a6cfb4ced840371c7202e332b113e18c395 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 16 Mar 2023 10:03:06 +0000 Subject: [PATCH] asahi: replace copies of .clang-format with symlinks Avoid all the issues of having to keep them in sync, and few-enough people (read: probably no-one ever) will be working on the asahi driver from a Windows machine, so symlinks can be relied upon, especially for something optional like automatic code formatting. Part-of: --- src/gallium/drivers/asahi/.clang-format | 120 +---------------------------- src/gallium/winsys/asahi/drm/.clang-format | 120 +---------------------------- 2 files changed, 2 insertions(+), 238 deletions(-) mode change 100644 => 120000 src/gallium/drivers/asahi/.clang-format mode change 100644 => 120000 src/gallium/winsys/asahi/drm/.clang-format diff --git a/src/gallium/drivers/asahi/.clang-format b/src/gallium/drivers/asahi/.clang-format deleted file mode 100644 index ebdf132..0000000 --- a/src/gallium/drivers/asahi/.clang-format +++ /dev/null @@ -1,119 +0,0 @@ -AlignAfterOpenBracket: true -AlignConsecutiveMacros: true -AlignConsecutiveBitFields: true -AllowAllArgumentsOnNextLine: false -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: false -AlwaysBreakAfterReturnType: TopLevelDefinitions -BasedOnStyle: LLVM -BraceWrapping: - AfterControlStatement: false - AfterEnum: false - AfterFunction: true - AfterStruct: false - BeforeElse: false - SplitEmptyFunction: true -BinPackArguments: true -BinPackParameters: true -BreakBeforeBraces: Custom -ColumnLimit: 80 -ContinuationIndentWidth: 3 -Cpp11BracedListStyle: false -Cpp11BracedListStyle: true -BreakStringLiterals: false -ForEachMacros: - - BITSET_FOREACH_SET - - BITSET_FOREACH_RANGE - - LIST_FOR_EACH_ENTRY - - LIST_FOR_EACH_ENTRY_SAFE - - LIST_FOR_EACH_ENTRY_SAFE_REV - - list_for_each_entry - - list_for_each_entry_safe - - list_for_each_entry_rev - - list_for_each_entry_rev_safe - - list_for_each_entry_from - - list_for_each_entry_from_rev - - foreach_list_typed - - u_foreach_bit - - util_dynarray_foreach - - rb_tree_foreach - - rb_tree_foreach_safe - - nir_foreach_variable - - nir_foreach_variable_safe - - nir_foreach_uniform_variable - - nir_foreach_uniform_variable_safe - - nir_foreach_register - - nir_foreach_register_safe - - nir_foreach_use - - nir_foreach_use_safe - - nir_foreach_if_use - - nir_foreach_if_use_safe - - nir_foreach_def - - nir_foreach_def_safe - - nir_foreach_phi_src - - nir_foreach_phi_src_safe - - nir_foreach_parallel_copy_entry - - nir_foreach_instr - - nir_foreach_instr_reverse - - nir_foreach_instr_safe - - nir_foreach_instr_reverse_safe - - nir_foreach_instr_from_safe - - nir_foreach_function - - nir_foreach_block - - nir_foreach_block_safe - - nir_foreach_block_reverse - - nir_foreach_block_reverse_safe - - nir_foreach_block_in_cf_node - - nir_foreach_shader_in_variable - - nir_foreach_shader_out_variable_safe - - nir_foreach_variable_in_list - - nir_foreach_variable_with_modes_safe - - nir_foreach_variable_with_modes - - nir_foreach_shader_out_variable - - foreach_batch - - AGX_BATCH_FOREACH_BO_HANDLE - - hash_table_foreach - - set_foreach - - agx_pack - - agx_usc_pack - - agx_ppp_push - - agx_foreach_block - - agx_foreach_block_from - - agx_foreach_block_from_rev - - agx_foreach_block_rev - - agx_foreach_dest - - agx_foreach_instr_global - - agx_foreach_instr_global_rev - - agx_foreach_instr_global_safe - - agx_foreach_instr_global_safe_rev - - agx_foreach_instr_in_block - - agx_foreach_instr_in_block_from - - agx_foreach_instr_in_block_from_rev - - agx_foreach_instr_in_block_rev - - agx_foreach_instr_in_block_safe - - agx_foreach_instr_in_block_safe_rev - - agx_foreach_non_phi_in_block_rev - - agx_foreach_phi_in_block - - agx_foreach_predecessor - - agx_foreach_src - - agx_foreach_ssa_dest - - agx_foreach_ssa_src - - agx_foreach_successor - -IncludeBlocks: Preserve -IncludeCategories: - - Regex: '<[[:alnum:].]+>' - Priority: 1 - - Regex: '.*\/.*' - Priority: 2 - - Regex: '.*' - Priority: 3 -IndentWidth: 3 -PenaltyBreakBeforeFirstCallParameter: 1 -PenaltyExcessCharacter: 100 -SpaceAfterCStyleCast: false -SpaceBeforeCpp11BracedList: false -SpaceBeforeParens: ControlStatementsExceptControlMacros -SpaceBeforeCtorInitializerColon: false -SpacesInContainerLiterals: false - diff --git a/src/gallium/drivers/asahi/.clang-format b/src/gallium/drivers/asahi/.clang-format new file mode 120000 index 0000000..d33fb92 --- /dev/null +++ b/src/gallium/drivers/asahi/.clang-format @@ -0,0 +1 @@ +../../../asahi/.clang-format \ No newline at end of file diff --git a/src/gallium/winsys/asahi/drm/.clang-format b/src/gallium/winsys/asahi/drm/.clang-format deleted file mode 100644 index ebdf132..0000000 --- a/src/gallium/winsys/asahi/drm/.clang-format +++ /dev/null @@ -1,119 +0,0 @@ -AlignAfterOpenBracket: true -AlignConsecutiveMacros: true -AlignConsecutiveBitFields: true -AllowAllArgumentsOnNextLine: false -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: false -AlwaysBreakAfterReturnType: TopLevelDefinitions -BasedOnStyle: LLVM -BraceWrapping: - AfterControlStatement: false - AfterEnum: false - AfterFunction: true - AfterStruct: false - BeforeElse: false - SplitEmptyFunction: true -BinPackArguments: true -BinPackParameters: true -BreakBeforeBraces: Custom -ColumnLimit: 80 -ContinuationIndentWidth: 3 -Cpp11BracedListStyle: false -Cpp11BracedListStyle: true -BreakStringLiterals: false -ForEachMacros: - - BITSET_FOREACH_SET - - BITSET_FOREACH_RANGE - - LIST_FOR_EACH_ENTRY - - LIST_FOR_EACH_ENTRY_SAFE - - LIST_FOR_EACH_ENTRY_SAFE_REV - - list_for_each_entry - - list_for_each_entry_safe - - list_for_each_entry_rev - - list_for_each_entry_rev_safe - - list_for_each_entry_from - - list_for_each_entry_from_rev - - foreach_list_typed - - u_foreach_bit - - util_dynarray_foreach - - rb_tree_foreach - - rb_tree_foreach_safe - - nir_foreach_variable - - nir_foreach_variable_safe - - nir_foreach_uniform_variable - - nir_foreach_uniform_variable_safe - - nir_foreach_register - - nir_foreach_register_safe - - nir_foreach_use - - nir_foreach_use_safe - - nir_foreach_if_use - - nir_foreach_if_use_safe - - nir_foreach_def - - nir_foreach_def_safe - - nir_foreach_phi_src - - nir_foreach_phi_src_safe - - nir_foreach_parallel_copy_entry - - nir_foreach_instr - - nir_foreach_instr_reverse - - nir_foreach_instr_safe - - nir_foreach_instr_reverse_safe - - nir_foreach_instr_from_safe - - nir_foreach_function - - nir_foreach_block - - nir_foreach_block_safe - - nir_foreach_block_reverse - - nir_foreach_block_reverse_safe - - nir_foreach_block_in_cf_node - - nir_foreach_shader_in_variable - - nir_foreach_shader_out_variable_safe - - nir_foreach_variable_in_list - - nir_foreach_variable_with_modes_safe - - nir_foreach_variable_with_modes - - nir_foreach_shader_out_variable - - foreach_batch - - AGX_BATCH_FOREACH_BO_HANDLE - - hash_table_foreach - - set_foreach - - agx_pack - - agx_usc_pack - - agx_ppp_push - - agx_foreach_block - - agx_foreach_block_from - - agx_foreach_block_from_rev - - agx_foreach_block_rev - - agx_foreach_dest - - agx_foreach_instr_global - - agx_foreach_instr_global_rev - - agx_foreach_instr_global_safe - - agx_foreach_instr_global_safe_rev - - agx_foreach_instr_in_block - - agx_foreach_instr_in_block_from - - agx_foreach_instr_in_block_from_rev - - agx_foreach_instr_in_block_rev - - agx_foreach_instr_in_block_safe - - agx_foreach_instr_in_block_safe_rev - - agx_foreach_non_phi_in_block_rev - - agx_foreach_phi_in_block - - agx_foreach_predecessor - - agx_foreach_src - - agx_foreach_ssa_dest - - agx_foreach_ssa_src - - agx_foreach_successor - -IncludeBlocks: Preserve -IncludeCategories: - - Regex: '<[[:alnum:].]+>' - Priority: 1 - - Regex: '.*\/.*' - Priority: 2 - - Regex: '.*' - Priority: 3 -IndentWidth: 3 -PenaltyBreakBeforeFirstCallParameter: 1 -PenaltyExcessCharacter: 100 -SpaceAfterCStyleCast: false -SpaceBeforeCpp11BracedList: false -SpaceBeforeParens: ControlStatementsExceptControlMacros -SpaceBeforeCtorInitializerColon: false -SpacesInContainerLiterals: false - diff --git a/src/gallium/winsys/asahi/drm/.clang-format b/src/gallium/winsys/asahi/drm/.clang-format new file mode 120000 index 0000000..270699e --- /dev/null +++ b/src/gallium/winsys/asahi/drm/.clang-format @@ -0,0 +1 @@ +../../../../asahi/.clang-format \ No newline at end of file -- 2.7.4