From 5f8003e949d36f627dd7e46d98d32ef93cea333b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 6 Mar 2016 17:41:38 +0000 Subject: Add EditorConfig settings for most C files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I02e6d71290bbdf7504437b0d670955b3686b6b52 Reviewed-on: https://code.wireshark.org/review/14360 Reviewed-by: João Valverde --- .editorconfig | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) (limited to '.editorconfig') diff --git a/.editorconfig b/.editorconfig index 2a6a8dc0fe..ccbe7960a6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -23,8 +23,51 @@ indent_style = space indent_size = 4 charset = utf-8 -# Dissectors -[epan/dissectors/*.[ch]] +# C +[**.[ch]] indent_style = space indent_size = 4 charset = utf-8 + +[{capinfos,captype,mergecap,mkcap,tfshark,tshark}.c] +indent_size = 2 + +[{dftest,echld_test,randpkt,trigcap}.c] +indent_style = tab +indent_size = tab + +[capture_stop_conditions.[ch]] +indent_size = 2 + +[cfile.[ch]] +indent_size = 2 + +[conditions.[ch]] +indent_size = 2 + +[file.[ch]] +indent_size = 2 + +[filter_files.[ch]] +indent_size = 2 + +[frame_tvbuff.[ch]] +indent_style = tab +indent_size = tab + +[pcapio.[ch]] +indent_size = 8 + +[ringbuffer.[ch]] +indent_size = 2 + +[summary.[ch]] +indent_size = 2 + +[randpkt_core/randpkt_core.[ch]] +indent_style = tab +indent_size = tab + +[extcap/{extcap-base,randpktdump,ssh-base,sshdump}.[ch]] +indent_style = tab +indent_size = tab -- cgit v1.2.1