aboutsummaryrefslogtreecommitdiffstats
path: root/.editorconfig
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2016-03-06 17:41:38 +0000
committerJoão Valverde <j@v6e.pt>2016-03-08 10:46:35 +0000
commit5f8003e949d36f627dd7e46d98d32ef93cea333b (patch)
tree17501d0aefdd9e0ed1f337466359db3baae180e8 /.editorconfig
parente22b4008c660dde31e67b4017b69e882a75ca3ef (diff)
Add EditorConfig settings for most C files
Change-Id: I02e6d71290bbdf7504437b0d670955b3686b6b52 Reviewed-on: https://code.wireshark.org/review/14360 Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig47
1 files changed, 45 insertions, 2 deletions
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