From d30f6754d46428ffcac381e9b137cb407a975243 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 28 Jul 2021 20:19:01 +0200 Subject: [PATCH] global: upgrade clang-format Signed-off-by: Simon Rozman --- .clang-format | 65 ++++++++++++++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 24 deletions(-) diff --git a/.clang-format b/.clang-format index a77c201..46c2683 100644 --- a/.clang-format +++ b/.clang-format @@ -64,43 +64,60 @@ SpacesInParentheses: false SpacesInSquareBrackets: false Standard: Cpp11 StatementMacros: [ - 'EXTERN_C', - 'PAGED', - 'PAGEDX', - 'NONPAGED', - 'PNPCODE', - 'INITCODE', + '__drv_allocatesMem', + '__drv_freesMem', + '__drv_preferredFunction', + '__drv_setsIRQL', + '_Acquires_exclusive_lock_', + '_Acquires_lock_', + '_Acquires_shared_lock_', + '_Acquires_rcu_', '_At_', - '_When_', - '_Success_', + '_At_buffer_', '_Check_return_', - '_Must_inspect_result_', + '_Dispatch_type_', + '_Field_size_bytes_', + '_Function_class_', + '_Guarded_by_', + '_IRQL_lowers_', + '_IRQL_raises_', '_IRQL_requires_', '_IRQL_requires_max_', '_IRQL_requires_min_', '_IRQL_requires_same_', - '_IRQL_saves_', '_IRQL_restores_', - '_IRQL_saves_global_', '_IRQL_restores_global_', - '_IRQL_raises_', - '_IRQL_lowers_', - '_Acquires_lock_', - '_Releases_lock_', - '_Acquires_exclusive_lock_', + '_IRQL_saves_', + '_IRQL_saves_global_', + '_Must_inspect_result_', + '_Out_writes_bytes_all_', + '_Post_equals_last_error_', + '_Post_maybenull_', + '_Post_notnull_', + '_Post_writable_byte_size_', '_Releases_exclusive_lock_', - '_Acquires_shared_lock_', + '_Releases_lock_', '_Releases_shared_lock_', + '_Releases_rcu_', + '_Requires_shared_lock_held_', + '_Requires_exclusive_lock_held_', '_Requires_lock_held_', '_Requires_lock_not_held_', + '_Requires_rcu_held_', + '_Ret_bytecount_', + '_Ret_maybenull_', + '_Ret_range_', + '_Ret_writes_bytes_', + '_Return_type_success_', + '_Success_', '_Use_decl_annotations_', - '_Guarded_by_', - '__drv_preferredFunction', - '__drv_allocatesMem', - '__drv_freesMem', - '_Field_size_bytes_', - '_Function_class_', - '_Dispatch_type_' + '_When_', + 'EXTERN_C', + 'INITCODE', + 'NONPAGED', + 'PAGED', + 'PAGEDX', + 'PNPCODE' ] TabWidth: '4' UseTab: Never