refactor: format files with uncrustify

This commit is contained in:
Dundar Göc 2021-09-06 10:48:31 +02:00
parent db695cc4ca
commit 1e49a1c888
7 changed files with 5280 additions and 4499 deletions

View File

@ -1638,12 +1638,12 @@ nl_multi_line_define = false # true/false
nl_before_case = false # true/false nl_before_case = false # true/false
# Whether to add a newline after a 'case' statement. # Whether to add a newline after a 'case' statement.
nl_after_case = false # true/false nl_after_case = true # true/false
# Add or remove newline between a case ':' and '{'. # Add or remove newline between a case ':' and '{'.
# #
# Overrides nl_after_case. # Overrides nl_after_case.
nl_case_colon_brace = ignore # ignore/add/remove/force/not_defined nl_case_colon_brace = remove # ignore/add/remove/force/not_defined
# Add or remove newline between ')' and 'throw'. # Add or remove newline between ')' and 'throw'.
nl_before_throw = ignore # ignore/add/remove/force/not_defined nl_before_throw = ignore # ignore/add/remove/force/not_defined
@ -3279,5 +3279,5 @@ set PREPROC REAL_FATTR_CONST
set PREPROC REAL_FATTR_NONNULL_ALL set PREPROC REAL_FATTR_NONNULL_ALL
set PREPROC REAL_FATTR_PURE set PREPROC REAL_FATTR_PURE
set PREPROC REAL_FATTR_WARN_UNUSED_RESULT set PREPROC REAL_FATTR_WARN_UNUSED_RESULT
# option(s) with 'not default' value: 56 # option(s) with 'not default' value: 58
# #

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4941,15 +4941,15 @@ static int skip_status_match_char(expand_T *xp, char_u *s)
return 0; return 0;
} }
/* /// Show wildchar matches in the status line.
* Show wildchar matches in the status line. /// Show at least the "match" item.
* Show at least the "match" item. /// We start at item 'first_match' in the list and show all matches that fit.
* We start at item 'first_match' in the list and show all matches that fit. ///
* /// If inversion is possible we use it. Else '=' characters are used.
* If inversion is possible we use it. Else '=' characters are used. ///
*/ /// @param matches list of matches
void win_redr_status_matches(expand_T *xp, int num_matches, char_u **matches, // list of matches void win_redr_status_matches(expand_T *xp, int num_matches, char_u **matches, int match,
int match, int showtail) int showtail)
{ {
#define L_MATCH(m) (showtail ? sm_gettail(matches[m], false) : matches[m]) #define L_MATCH(m) (showtail ? sm_gettail(matches[m], false) : matches[m])
int row; int row;
@ -6018,18 +6018,18 @@ static void prepare_search_hl(win_T *wp, linenr_T lnum)
} }
} }
/* /// Search for a next 'hlsearch' or match.
* Search for a next 'hlsearch' or match. /// Uses shl->buf.
* Uses shl->buf. /// Sets shl->lnum and shl->rm contents.
* Sets shl->lnum and shl->rm contents. /// Note: Assumes a previous match is always before "lnum", unless
* Note: Assumes a previous match is always before "lnum", unless /// shl->lnum is zero.
* shl->lnum is zero. /// Careful: Any pointers for buffer lines will become invalid.
* Careful: Any pointers for buffer lines will become invalid. ///
*/ /// @param shl points to search_hl or a match
static void next_search_hl(win_T *win, match_T *shl, // points to search_hl or a match /// @param mincol minimal column for a match
linenr_T lnum, colnr_T mincol, // minimal column for a match /// @param cur to retrieve match positions if any
matchitem_T *cur // to retrieve match positions if any static void next_search_hl(win_T *win, match_T *shl, linenr_T lnum, colnr_T mincol,
) matchitem_T *cur)
FUNC_ATTR_NONNULL_ARG(2) FUNC_ATTR_NONNULL_ARG(2)
{ {
linenr_T l; linenr_T l;
@ -6139,12 +6139,12 @@ static void next_search_hl(win_T *win, match_T *shl, // points to
} }
} }
/// If there is a match fill "shl" and return one. /// @param shl points to a match. Fill on match.
/// Return zero otherwise. /// @param posmatch match positions
static int next_search_hl_pos(match_T *shl, // points to a match /// @param mincol minimal column for a match
linenr_T lnum, posmatch_T *posmatch, // match positions ///
colnr_T mincol // minimal column for a match /// @return one on match, otherwise return zero.
) static int next_search_hl_pos(match_T *shl, linenr_T lnum, posmatch_T *posmatch, colnr_T mincol)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_NONNULL_ALL
{ {
int i; int i;
@ -6960,12 +6960,18 @@ int showmode(void)
switch ((VIsual_select ? 4 : 0) switch ((VIsual_select ? 4 : 0)
+ (VIsual_mode == Ctrl_V) * 2 + (VIsual_mode == Ctrl_V) * 2
+ (VIsual_mode == 'V')) { + (VIsual_mode == 'V')) {
case 0: p = N_(" VISUAL"); break; case 0:
case 1: p = N_(" VISUAL LINE"); break; p = N_(" VISUAL"); break;
case 2: p = N_(" VISUAL BLOCK"); break; case 1:
case 4: p = N_(" SELECT"); break; p = N_(" VISUAL LINE"); break;
case 5: p = N_(" SELECT LINE"); break; case 2:
default: p = N_(" SELECT BLOCK"); break; p = N_(" VISUAL BLOCK"); break;
case 4:
p = N_(" SELECT"); break;
case 5:
p = N_(" SELECT LINE"); break;
default:
p = N_(" SELECT BLOCK"); break;
} }
MSG_PUTS_ATTR(_(p), attr); MSG_PUTS_ATTR(_(p), attr);
} }

File diff suppressed because it is too large Load Diff