aboutsummaryrefslogtreecommitdiffstats
path: root/ui
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 /ui
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 'ui')
-rw-r--r--ui/.editorconfig29
-rw-r--r--ui/Makefile.am1
-rw-r--r--ui/cli/.editorconfig87
-rw-r--r--ui/cli/Makefile.am1
-rw-r--r--ui/gtk/.editorconfig221
-rw-r--r--ui/gtk/Makefile.am1
-rw-r--r--ui/win32/.editorconfig8
7 files changed, 348 insertions, 0 deletions
diff --git a/ui/.editorconfig b/ui/.editorconfig
new file mode 100644
index 0000000000..348f355e76
--- /dev/null
+++ b/ui/.editorconfig
@@ -0,0 +1,29 @@
+#
+# Editor configuration
+#
+# http://editorconfig.org/
+#
+
+[capture.[ch]]
+indent_size = 2
+
+[capture_ui_utils.[ch]]
+indent_size = 2
+
+[preference_utils.[ch]]
+indent_size = 2
+
+[proto_hier_stats.[ch]]
+indent_style = tab
+indent_size = tab
+
+[recent.[ch]]
+indent_size = 2
+
+[tap-rtp-common.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-sctp-analysis.[ch]]
+indent_style = tab
+indent_size = tab
diff --git a/ui/Makefile.am b/ui/Makefile.am
index 01c44dbc7c..bd7a7334f7 100644
--- a/ui/Makefile.am
+++ b/ui/Makefile.am
@@ -79,6 +79,7 @@ checkapi-todo:
$(WIRESHARK_UI_SRC)
EXTRA_DIST = \
+ .editorconfig \
$(GENERATOR_FILES) \
CMakeLists.txt \
doxygen.cfg.in \
diff --git a/ui/cli/.editorconfig b/ui/cli/.editorconfig
new file mode 100644
index 0000000000..e66a590bea
--- /dev/null
+++ b/ui/cli/.editorconfig
@@ -0,0 +1,87 @@
+#
+# Editor configuration
+#
+# http://editorconfig.org/
+#
+
+[tap-camelsrt.[ch]]
+indent_size = 2
+
+[tap-comparestat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-diameter-avp.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-endpoints.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-follow.[ch]]
+indent_size = 2
+
+[tap-hosts.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-httpstat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-iousers.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-protocolinfo.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-protohierstat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-rpcprogs.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-rtd.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-rtspstat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-sctpchunkstat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-simple_stattable.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-sipstat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-smbsids.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-srt.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-stats_tree.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-sv.[ch]]
+indent_style = tab
+indent_size = tab
+
+[tap-wspstat.[ch]]
+indent_style = tab
+indent_size = tab
diff --git a/ui/cli/Makefile.am b/ui/cli/Makefile.am
index 4e723bd49b..74b6473ace 100644
--- a/ui/cli/Makefile.am
+++ b/ui/cli/Makefile.am
@@ -82,6 +82,7 @@ checkapi-todo:
$(TSHARK_TAP_SRC)
EXTRA_DIST = \
+ .editorconfig \
$(GENERATOR_FILES) \
Makefile.common \
Makefile.nmake
diff --git a/ui/gtk/.editorconfig b/ui/gtk/.editorconfig
new file mode 100644
index 0000000000..f3c4e4dd6b
--- /dev/null
+++ b/ui/gtk/.editorconfig
@@ -0,0 +1,221 @@
+#
+# Editor configuration
+#
+# http://editorconfig.org/
+#
+
+[about_dlg.[ch]]
+indent_size = 2
+
+[bytes_view.[ch]]
+indent_style = tab
+indent_size = tab
+
+[capture_dlg.[ch]]
+indent_size = 2
+
+[capture_file_dlg.[ch]]
+indent_size = 2
+
+[capture_if_dlg.[ch]]
+indent_size = 2
+
+[capture_info_dlg.[ch]]
+indent_size = 2
+
+[color_dlg.[ch]]
+indent_size = 2
+
+[color_edit_dlg.[ch]]
+indent_size = 2
+
+[color_utils.[ch]]
+indent_style = tab
+indent_size = tab
+
+[compare_stat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[dcerpc_stat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[edit_packet_comment_dlg.[ch]]
+indent_size = 2
+
+[export_object_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[filter_autocomplete.[ch]]
+indent_size = 2
+
+[filter_expression_save_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[filter_utils.[ch]]
+indent_style = tab
+indent_size = tab
+
+[find_dlg.[ch]]
+indent_size = 2
+
+[flow_graph.[ch]]
+indent_style = tab
+indent_size = tab
+
+[goto_dlg.[ch]]
+indent_size = 2
+
+[graph_analysis.[ch]]
+indent_style = tab
+indent_size = tab
+
+[gsm_map_summary.[ch]]
+indent_size = 2
+
+[gui_stat_util.[ch]]
+indent_style = tab
+indent_size = tab
+
+[iax2_analysis.[ch]]
+indent_style = tab
+indent_size = tab
+
+[macros_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[manual_addr_resolv.[ch]]
+indent_size = 2
+
+[packet_list.[ch]]
+indent_style = tab
+indent_size = tab
+
+[packet_list_store.[ch]]
+indent_style = tab
+indent_size = tab
+
+[packet_win.[ch]]
+indent_style = tab
+indent_size = tab
+
+[pixmap_save.[ch]]
+indent_style = tab
+indent_size = tab
+
+[prefs_capture.[ch]]
+indent_style = tab
+indent_size = tab
+
+[prefs_dlg.[ch]]
+indent_size = 2
+
+[prefs_font_color.[ch]]
+indent_size = 2
+
+[prefs_gui.[ch]]
+indent_style = tab
+indent_size = tab
+
+[print_dlg.[ch]]
+indent_size = 2
+
+[profile_dlg.[ch]]
+indent_size = 2
+
+[proto_dlg.[ch]]
+indent_size = 2
+
+[proto_help.[ch]]
+indent_style = tab
+indent_size = tab
+
+[proto_hier_tree_model.[ch]]
+indent_style = tab
+indent_size = tab
+
+[proto_tree_model.[ch]]
+indent_style = tab
+indent_size = tab
+
+[range_utils.[ch]]
+indent_size = 2
+
+[response_time_delay_table.[ch]]
+indent_style = tab
+indent_size = tab
+
+[rpc_stat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[rtp_analysis.[ch]]
+indent_style = tab
+indent_size = tab
+
+[rtp_player.[ch]]
+indent_style = tab
+indent_size = tab
+
+[sctp_assoc_analyse.[ch]]
+indent_style = tab
+indent_size = tab
+
+[sctp_byte_graph_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[sctp_chunk_stat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[sctp_error_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[sctp_graph_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[sctp_stat_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[service_response_time_table.[ch]]
+indent_style = tab
+indent_size = tab
+
+[simple_dialog.[ch]]
+indent_size = 2
+
+[simple_stattable.[ch]]
+indent_style = tab
+indent_size = tab
+
+[stats_tree_stat.[ch]]
+indent_style = tab
+indent_size = tab
+
+[summary_dlg.[ch]]
+indent_size = 2
+
+[supported_protos_dlg.[ch]]
+indent_size = 2
+
+[time_shift_dlg.[ch]]
+indent_size = 2
+
+[uat_gui.[ch]]
+indent_style = tab
+indent_size = tab
+
+[voip_calls_dlg.[ch]]
+indent_style = tab
+indent_size = tab
+
+[webbrowser.[ch]]
+indent_size = 2
diff --git a/ui/gtk/Makefile.am b/ui/gtk/Makefile.am
index c780ce52ea..61457a4862 100644
--- a/ui/gtk/Makefile.am
+++ b/ui/gtk/Makefile.am
@@ -57,6 +57,7 @@ MAINTAINERCLEANFILES = \
Makefile.in
EXTRA_DIST = \
+ .editorconfig \
$(GENERATOR_FILES) \
airpcap_dlg.c \
airpcap_dlg.h \
diff --git a/ui/win32/.editorconfig b/ui/win32/.editorconfig
new file mode 100644
index 0000000000..530460bd5f
--- /dev/null
+++ b/ui/win32/.editorconfig
@@ -0,0 +1,8 @@
+#
+# Editor configuration
+#
+# http://editorconfig.org/
+#
+
+[console_win32.[ch]]
+indent_size = 2