Skip to content

Commit

Permalink
Add editorconfig for Visual Studio (groonga#1191)
Browse files Browse the repository at this point in the history
- Add editorconfig for Visual Studio
  - Automatically generated from Visual Studio C/C++ format settings
  - Most settings are for Visual Studio only
  - Add some common settings

Co-authored-by: Sutou Kouhei <[email protected]>
  • Loading branch information
HashidaTKS and kou authored May 19, 2021
1 parent e77fcfb commit d883cd8
Show file tree
Hide file tree
Showing 498 changed files with 78 additions and 505 deletions.
4 changes: 1 addition & 3 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
((sh-mode . ((indent-tabs-mode . nil)
(sh-indentation . 2)
(sh-basic-offset . 2)))
(c-mode . ((indent-tabs-mode . nil)
(c-basic-offset . 2))))
(sh-basic-offset . 2))))
77 changes: 77 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Visual Studio generated .editorconfig file with C++ settings.
root = true

[*.{c,cpp,h,hpp}]

# Visual C++ Code Style settings

cpp_generate_documentation_comments = doxygen_slash_star_exclamation

# Visual C++ Formatting settings

cpp_indent_braces = false
cpp_indent_multi_line_relative_to = innermost_parenthesis
cpp_indent_within_parentheses = align_to_parenthesis
cpp_indent_preserve_within_parentheses = true
cpp_indent_case_contents = true
cpp_indent_case_labels = false
cpp_indent_case_contents_when_block = false
cpp_indent_lambda_braces_when_parameter = false
cpp_indent_goto_labels = one_left
cpp_indent_preprocessor = leftmost_column
cpp_indent_access_specifiers = false
cpp_indent_namespace_contents = true
cpp_indent_preserve_comments = false
cpp_new_line_before_open_brace_namespace = same_line
cpp_new_line_before_open_brace_type = same_line
cpp_new_line_before_open_brace_function = new_line
cpp_new_line_before_open_brace_block = same_line
cpp_new_line_before_open_brace_lambda = same_line
cpp_new_line_scope_braces_on_separate_lines = true
cpp_new_line_close_brace_same_line_empty_type = true
cpp_new_line_close_brace_same_line_empty_function = true
cpp_new_line_before_catch = false
cpp_new_line_before_else = false
cpp_new_line_before_while_in_do_while = false
cpp_space_before_function_open_parenthesis = remove
cpp_space_within_parameter_list_parentheses = false
cpp_space_between_empty_parameter_list_parentheses = false
cpp_space_after_keywords_in_control_flow_statements = true
cpp_space_within_control_flow_statement_parentheses = false
cpp_space_before_lambda_open_parenthesis = false
cpp_space_within_cast_parentheses = false
cpp_space_after_cast_close_parenthesis = false
cpp_space_within_expression_parentheses = false
cpp_space_before_block_open_brace = true
cpp_space_between_empty_braces = false
cpp_space_before_initializer_list_open_brace = false
cpp_space_within_initializer_list_braces = true
cpp_space_preserve_in_initializer_list = true
cpp_space_before_open_square_bracket = false
cpp_space_within_square_brackets = false
cpp_space_before_empty_square_brackets = false
cpp_space_between_empty_square_brackets = false
cpp_space_group_square_brackets = true
cpp_space_within_lambda_brackets = false
cpp_space_between_empty_lambda_brackets = false
cpp_space_before_comma = false
cpp_space_after_comma = true
cpp_space_remove_around_member_operators = true
cpp_space_before_inheritance_colon = true
cpp_space_before_constructor_colon = true
cpp_space_remove_before_semicolon = true
cpp_space_after_semicolon = true
cpp_space_remove_around_unary_operator = true
cpp_space_around_binary_operator = insert
cpp_space_around_assignment_operator = insert
cpp_space_pointer_reference_alignment = right
cpp_space_around_ternary_operator = insert
cpp_wrap_preserve_blocks = one_liners

# Common editor settings

indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion benchmark/bench-between-sequential.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-cache.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2017 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-ctx-create.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2013-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-geo-distance.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2009-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-geo-select.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2011-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-nfkc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2015-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-query-optimizer.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2014-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-range-select.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2014-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-result-set.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2015-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/bench-table-factory.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008-2016 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/lib/bench-reporter.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008 Kouhei Sutou <[email protected]>
Expand Down
3 changes: 0 additions & 3 deletions benchmark/lib/bench-reporter.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008 Kouhei Sutou <[email protected]>
Expand Down Expand Up @@ -60,5 +59,3 @@ void bench_reporter_register (BenchReporter *reporter,
void bench_reporter_run (BenchReporter *reporter);

#endif /* __BENCH_REPORTER_H__ */


1 change: 0 additions & 1 deletion benchmark/lib/bench-utils.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/lib/bench-utils.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/lib/benchmark.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008-2013 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion benchmark/lib/benchmark.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2; coding: utf-8 -*- */
/*
Copyright (C) 2008 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/command.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2016 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/config.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2016 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/geo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2016 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/id.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2016 Brazil
Copyright(C) 2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/msgpack.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2018 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/nfkc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2016 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/normalizer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2012-2016 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/obj.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2018 Brazil
Copyright(C) 2018-2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/option.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2018 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/output_columns.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2018 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/plugin.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2010-2017 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/proc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2020-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/raw_string.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2016-2018 Brazil
Copyright(C) 2019-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/scorer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2016 Brazil
Copyright(C) 2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/selector.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2020-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/table.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2018-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/table_module.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2018-2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/thread.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2016 Brazil
Copyright(C) 2018 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/token.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2014-2018 Brazil
Copyright(C) 2018-2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/token_cursor.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2016 Brazil
Copyright(C) 2018-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/token_filter.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2014-2016 Brazil
Copyright(C) 2018 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/token_metadata.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2018 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/tokenizer.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2012-2018 Brazil
Copyright(C) 2020-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion include/groonga/tokenizer_query_deprecated.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2012-2018 Brazil
Expand Down
1 change: 0 additions & 1 deletion include/groonga/vector.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2020-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/accessor.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2018 Brazil
Copyright(C) 2019-2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/aggregators.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/alloc.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2016 Brazil
Copyright(C) 2019-2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/arrow.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2017 Brazil
Copyright(C) 2019-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/bulk.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/cache.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2017 Brazil
Expand Down
1 change: 0 additions & 1 deletion lib/cast.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2019-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/column.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2017 Brazil
Copyright(C) 2018-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/com.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2018-2019 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/command.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015 Brazil

Expand Down
1 change: 0 additions & 1 deletion lib/config.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2015-2016 Brazil

Expand Down
1 change: 0 additions & 1 deletion lib/ctx.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2009-2018 Brazil
Copyright(C) 2019-2021 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/ctx_impl_lua.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2019 Yasuhiro Horimoto <[email protected]>

Expand Down
1 change: 0 additions & 1 deletion lib/ctx_impl_mrb.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2013-2018 Brazil
Copyright(C) 2018-2020 Sutou Kouhei <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/dat.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011-2018 Brazil
Copyright(C) 2018 Kouhei Sutou <[email protected]>
Expand Down
1 change: 0 additions & 1 deletion lib/dat/array.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011-2016 Brazil

Expand Down
1 change: 0 additions & 1 deletion lib/dat/base.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011-2016 Brazil

Expand Down
1 change: 0 additions & 1 deletion lib/dat/block.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011-2016 Brazil

Expand Down
1 change: 0 additions & 1 deletion lib/dat/check.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011-2016 Brazil

Expand Down
1 change: 0 additions & 1 deletion lib/dat/cursor-factory.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* -*- c-basic-offset: 2 -*- */
/* Copyright(C) 2011 Brazil

This library is free software; you can redistribute it and/or
Expand Down
Loading

0 comments on commit d883cd8

Please sign in to comment.