Refactor/uncrustify (#15790)

* refactor: format with uncrustify

* fixup(dundar): fix functions comments

* fixup(dundar): remove space between variable and ++/--

* fixup(dundar): better workaround for macro attributes

This is done to be able to better use uncrustify rules for macros

* fixup(justin): make preprocessors follow neovim style guide
This commit is contained in:
dundargoc
2021-09-29 19:48:50 +02:00
committed by GitHub
parent ec4731d982
commit d90fb1c0bf
37 changed files with 2366 additions and 1940 deletions

View File

@@ -47,9 +47,7 @@ static msgpack_sbuffer sbuffer;
} \
\
static void msgpack_rpc_from_##lt(Integer o, msgpack_packer *res) \
/* uncrustify:indent-off */ \
FUNC_ATTR_NONNULL_ARG(2) \
/* uncrustify:indent-on */ \
{ \
msgpack_packer pac; \
msgpack_packer_init(&pac, &sbuffer, msgpack_sbuffer_write); \

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
# Uncrustify-0.73.0-181-847f1e99
# Uncrustify-0.73.0-186-03faf73c
#
# General options
@@ -787,7 +787,7 @@ sp_sign = ignore # ignore/add/remove/force/not_defined
# applied, as in '(--x)' or 'y++;'.
#
# Default: remove
sp_incdec = ignore # ignore/add/remove/force/not_defined
sp_incdec = remove # ignore/add/remove/force/not_defined
# Add or remove space before a backslash-newline at the end of a line.
#
@@ -3041,7 +3041,7 @@ mod_sort_oc_property_nullability_weight = 0 # number
# Add or remove indentation of preprocessor directives inside #if blocks
# at brace level 0 (file-level).
pp_indent = ignore # ignore/add/remove/force/not_defined
pp_indent = remove # ignore/add/remove/force/not_defined
# Whether to indent #if/#else/#endif at the brace level. If false, these are
# indented from column 1.
@@ -3056,7 +3056,7 @@ pp_indent_at_level = false # true/false
pp_indent_count = 1 # unsigned number
# Add or remove space after # based on pp_level of #if blocks.
pp_space = ignore # ignore/add/remove/force/not_defined
pp_space = force # ignore/add/remove/force/not_defined
# Sets the number of spaces per level added with pp_space.
pp_space_count = 0 # unsigned number
@@ -3267,29 +3267,29 @@ debug_truncate = 0 # unsigned number
# `macro-close END_MESSAGE_MAP`
#
#
set PREPROC FUNC_API_CHECK_TEXTLOCK
set PREPROC FUNC_API_DEPRECATED_SINCE
set PREPROC FUNC_API_FAST
set PREPROC FUNC_API_LUA_ONLY
set PREPROC FUNC_API_NOEXPORT
set PREPROC FUNC_API_REMOTE_ONLY
set PREPROC FUNC_API_SINCE
set PREPROC FUNC_ATTR_ALWAYS_INLINE
set PREPROC FUNC_ATTR_CONST
set PREPROC FUNC_ATTR_MALLOC
set PREPROC FUNC_ATTR_NONNULL_ALL
set PREPROC FUNC_ATTR_NONNULL_ARG
set PREPROC FUNC_ATTR_NONNULL_RET
set PREPROC FUNC_ATTR_NORETURN
set PREPROC FUNC_ATTR_NO_SANITIZE_UNDEFINED
set PREPROC FUNC_ATTR_PRINTF
set PREPROC FUNC_ATTR_PURE
set PREPROC FUNC_ATTR_UNUSED
set PREPROC FUNC_ATTR_WARN_UNUSED_RESULT
set PREPROC REAL_FATTR_ALWAYS_INLINE
set PREPROC REAL_FATTR_CONST
set PREPROC REAL_FATTR_NONNULL_ALL
set PREPROC REAL_FATTR_PURE
set PREPROC REAL_FATTR_WARN_UNUSED_RESULT
# option(s) with 'not default' value: 61
set QUESTION FUNC_API_CHECK_TEXTLOCK
set QUESTION FUNC_API_DEPRECATED_SINCE
set QUESTION FUNC_API_FAST
set QUESTION FUNC_API_LUA_ONLY
set QUESTION FUNC_API_NOEXPORT
set QUESTION FUNC_API_REMOTE_ONLY
set QUESTION FUNC_API_SINCE
set QUESTION FUNC_ATTR_ALWAYS_INLINE
set QUESTION FUNC_ATTR_CONST
set QUESTION FUNC_ATTR_MALLOC
set QUESTION FUNC_ATTR_NONNULL_ALL
set QUESTION FUNC_ATTR_NONNULL_ARG
set QUESTION FUNC_ATTR_NONNULL_RET
set QUESTION FUNC_ATTR_NORETURN
set QUESTION FUNC_ATTR_NO_SANITIZE_UNDEFINED
set QUESTION FUNC_ATTR_PRINTF
set QUESTION FUNC_ATTR_PURE
set QUESTION FUNC_ATTR_UNUSED
set QUESTION FUNC_ATTR_WARN_UNUSED_RESULT
set QUESTION REAL_FATTR_ALWAYS_INLINE
set QUESTION REAL_FATTR_CONST
set QUESTION REAL_FATTR_NONNULL_ALL
set QUESTION REAL_FATTR_PURE
set QUESTION REAL_FATTR_WARN_UNUSED_RESULT
# option(s) with 'not default' value: 62
#