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>
This commit is contained in:
João Valverde 2016-03-06 17:41:38 +00:00 committed by João Valverde
parent e22b4008c6
commit 5f8003e949
23 changed files with 821 additions and 2 deletions

View File

@ -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

View File

@ -1328,6 +1328,7 @@ EXTRA_DIST = \
cmake/TestFileOffsetBits.c \
cmake/TestLargeFiles.c.cmakein \
cmake/TestWindowsFSeek.c \
ui/win32/.editorconfig \
ui/win32/Makefile.nmake \
ui/win32/console_win32.c \
ui/win32/console_win32.h \

21
caputils/.editorconfig Normal file
View File

@ -0,0 +1,21 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[capture-pcap-util-unix.[ch]]
indent_style = tab
indent_size = tab
[capture-pcap-util.[ch]]
indent_style = tab
indent_size = tab
[capture-wpcap.[ch]]
indent_style = tab
indent_size = tab
[ws80211_utils.[ch]]
indent_style = tab
indent_size = tab

View File

@ -43,6 +43,7 @@ MAINTAINERCLEANFILES = \
Makefile.in
EXTRA_DIST = \
.editorconfig \
$(GENERATOR_FILES) \
airpcap.h \
airpcap_loader.c \

View File

@ -0,0 +1,57 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[dfilter-macro.[ch]]
indent_style = tab
indent_size = tab
[dfilter.[ch]]
indent_style = tab
indent_size = tab
[dfvm.[ch]]
indent_style = tab
indent_size = tab
[gencode.[ch]]
indent_style = tab
indent_size = tab
[semcheck.[ch]]
indent_style = tab
indent_size = tab
[sttype-function.[ch]]
indent_style = tab
indent_size = tab
[sttype-integer.[ch]]
indent_style = tab
indent_size = tab
[sttype-pointer.[ch]]
indent_style = tab
indent_size = tab
[sttype-range.[ch]]
indent_style = tab
indent_size = tab
[sttype-set.[ch]]
indent_style = tab
indent_size = tab
[sttype-string.[ch]]
indent_style = tab
indent_size = tab
[sttype-test.[ch]]
indent_style = tab
indent_size = tab
[syntax-tree.[ch]]
indent_style = tab
indent_size = tab

View File

@ -67,6 +67,7 @@ libdfilter_la_LIBADD = libdfilter_generated.la
libdfilter_la_DEPENDENCIES = libdfilter_generated.la
EXTRA_DIST = \
.editorconfig \
$(GENERATOR_FILES) \
Makefile.common \
Makefile.nmake \

41
epan/ftypes/.editorconfig Normal file
View File

@ -0,0 +1,41 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[ftype-bytes.[ch]]
indent_style = tab
indent_size = tab
[ftype-integer.[ch]]
indent_style = tab
indent_size = tab
[ftype-ipv4.[ch]]
indent_style = tab
indent_size = tab
[ftype-ipv6.[ch]]
indent_style = tab
indent_size = tab
[ftype-none.[ch]]
indent_style = tab
indent_size = tab
[ftype-string.[ch]]
indent_style = tab
indent_size = tab
[ftype-time.[ch]]
indent_style = tab
indent_size = tab
[ftype-tvbuff.[ch]]
indent_style = tab
indent_size = tab
[ftypes.[ch]]
indent_style = tab
indent_size = tab

View File

@ -37,6 +37,7 @@ MAINTAINERCLEANFILES = \
libftypes_la_SOURCES = $(NONGENERATED_C_FILES) $(NONGENERATED_HEADER_FILES)
EXTRA_DIST = \
.editorconfig \
Makefile.common \
Makefile.nmake \
CMakeLists.txt

View File

@ -0,0 +1,8 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[*.[ch]]
indent_size = 2

View File

@ -42,6 +42,7 @@ libnghttp2_la_SOURCES = \
$(LIBNGHTTP2_INCLUDES)
EXTRA_DIST = \
.editorconfig \
Makefile.common \
Makefile.nmake \
README.nghttp2 \

8
epan/wslua/.editorconfig Normal file
View File

@ -0,0 +1,8 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[wslua_struct.[ch]]
indent_size = 2

View File

@ -95,6 +95,7 @@ MAINTAINERCLEANFILES = \
declare_wslua.h
EXTRA_DIST = \
.editorconfig \
declare_wslua.h \
lua_bitop.h \
lrexlib.h \

29
ui/.editorconfig Normal file
View File

@ -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

View File

@ -79,6 +79,7 @@ checkapi-todo:
$(WIRESHARK_UI_SRC)
EXTRA_DIST = \
.editorconfig \
$(GENERATOR_FILES) \
CMakeLists.txt \
doxygen.cfg.in \

87
ui/cli/.editorconfig Normal file
View File

@ -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

View File

@ -82,6 +82,7 @@ checkapi-todo:
$(TSHARK_TAP_SRC)
EXTRA_DIST = \
.editorconfig \
$(GENERATOR_FILES) \
Makefile.common \
Makefile.nmake

221
ui/gtk/.editorconfig Normal file
View File

@ -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

View File

@ -57,6 +57,7 @@ MAINTAINERCLEANFILES = \
Makefile.in
EXTRA_DIST = \
.editorconfig \
$(GENERATOR_FILES) \
airpcap_dlg.c \
airpcap_dlg.h \

8
ui/win32/.editorconfig Normal file
View File

@ -0,0 +1,8 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[console_win32.[ch]]
indent_size = 2

145
wiretap/.editorconfig Normal file
View File

@ -0,0 +1,145 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[5views.[ch]]
indent_style = tab
indent_size = tab
[aethra.[ch]]
indent_style = tab
indent_size = tab
[ascendtext.[ch]]
indent_size = 2
[atm.[ch]]
indent_style = tab
indent_size = tab
[ber.[ch]]
indent_size = 2
[capsa.[ch]]
indent_style = tab
indent_size = tab
[commview.[ch]]
indent_style = tab
indent_size = tab
[cosine.[ch]]
indent_style = tab
indent_size = tab
[csids.[ch]]
indent_size = 2
[daintree-sna.[ch]]
indent_style = tab
indent_size = tab
[dct3trace.[ch]]
indent_style = tab
indent_size = tab
[erf.[ch]]
indent_size = 2
[eyesdn.[ch]]
indent_style = tab
indent_size = tab
[file_access.[ch]]
indent_style = tab
indent_size = tab
[hcidump.[ch]]
indent_style = tab
indent_size = tab
[i4btrace.[ch]]
indent_style = tab
indent_size = tab
[iptrace.[ch]]
indent_style = tab
indent_size = tab
[iseries.[ch]]
indent_size = 2
[lanalyzer.[ch]]
indent_size = 6
[libpcap.[ch]]
indent_style = tab
indent_size = tab
[mime_file.[ch]]
indent_style = tab
indent_size = tab
[mpeg.[ch]]
indent_style = tab
indent_size = tab
[netmon.[ch]]
indent_style = tab
indent_size = tab
[netscreen.[ch]]
indent_style = tab
indent_size = tab
[nettrace_3gpp_32_423.[ch]]
indent_style = tab
indent_size = tab
[netxray.[ch]]
indent_style = tab
indent_size = tab
[ngsniffer.[ch]]
indent_style = tab
indent_size = tab
[packetlogger.[ch]]
indent_style = tab
indent_size = tab
[pcap-common.[ch]]
indent_style = tab
indent_size = tab
[peekclassic.[ch]]
indent_style = tab
indent_size = tab
[pppdump.[ch]]
indent_style = tab
indent_size = tab
[radcom.[ch]]
indent_style = tab
indent_size = tab
[snoop.[ch]]
indent_style = tab
indent_size = tab
[stanag4607.[ch]]
indent_size = 2
[tnef.[ch]]
indent_size = 2
[toshiba.[ch]]
indent_style = tab
indent_size = tab
[wtap.[ch]]
indent_style = tab
indent_size = tab

View File

@ -56,6 +56,7 @@ libwiretap_generated_la_SOURCES = \
libwiretap_generated_la_CFLAGS = $(GENERATED_CFLAGS)
EXTRA_DIST = \
.editorconfig \
README.airmagnet \
README.developer \
Makefile.common \

140
wsutil/.editorconfig Normal file
View File

@ -0,0 +1,140 @@
#
# Editor configuration
#
# http://editorconfig.org/
#
[adler32.[ch]]
indent_size = 2
[aes.[ch]]
indent_style = tab
indent_size = tab
[airpdcap_wep.[ch]]
indent_style = tab
indent_size = tab
[base64.[ch]]
indent_style = tab
indent_size = tab
[bitswap.[ch]]
indent_size = 2
[buffer.[ch]]
indent_style = tab
indent_size = tab
[cfutils.[ch]]
indent_style = tab
indent_size = tab
[clopts_common.[ch]]
indent_size = 2
[copyright_info.[ch]]
indent_style = tab
indent_size = tab
[crash_info.[ch]]
indent_style = tab
indent_size = tab
[crc10.[ch]]
indent_style = tab
indent_size = tab
[crc32.[ch]]
indent_style = tab
indent_size = tab
[des.[ch]]
indent_style = tab
indent_size = tab
[file_util.[ch]]
indent_size = 6
[g711.[ch]]
indent_style = tab
indent_size = tab
[inet_aton.[ch]]
indent_style = tab
indent_size = tab
[inet_ntop.[ch]]
indent_style = tab
indent_size = tab
[inet_pton.[ch]]
indent_style = tab
indent_size = tab
[interface.[ch]]
indent_style = tab
indent_size = tab
[jsmn.[ch]]
indent_size = 8
[md4.[ch]]
indent_style = tab
indent_size = tab
[mpeg-audio.[ch]]
indent_style = tab
indent_size = tab
[os_version_info.[ch]]
indent_style = tab
indent_size = tab
[privileges.[ch]]
indent_style = tab
indent_size = tab
[rc4.[ch]]
indent_size = 2
[report_err.[ch]]
indent_style = tab
indent_size = tab
[str_util.[ch]]
indent_style = tab
indent_size = tab
[strptime.[ch]]
indent_size = 2
[tempfile.[ch]]
indent_size = 2
[time_util.[ch]]
indent_style = tab
indent_size = tab
[type_util.[ch]]
indent_size = 2
[u3.[ch]]
indent_size = 2
[unicode-utils.[ch]]
indent_size = 2
[ws_mempbrk.[ch]]
indent_style = tab
indent_size = tab
[ws_mempbrk_sse42.[ch]]
indent_size = 2
[ws_version_info.[ch]]
indent_style = tab
indent_size = tab
[wsgetopt.[ch]]
indent_size = 2

View File

@ -106,6 +106,7 @@ libwsutil_la_LIBADD = \
$(wsutil_optional_objects)
EXTRA_DIST = \
.editorconfig \
cfutils.c \
cfutils.h \
CMakeLists.txt \