refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)

This commit is contained in:
dundargoc
2022-05-25 20:31:14 +02:00
committed by GitHub
parent 8c4e62351f
commit 9fec6dc9a2
145 changed files with 5 additions and 586 deletions

View File

@@ -301,7 +301,6 @@ typedef struct {
int score;
} limitscore_T;
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "spell.c.generated.h"
#endif
@@ -1303,7 +1302,6 @@ static void find_prefix(matchinf_T *mip, int mode)
mip->mi_word);
find_word(mip, FIND_PREFIX);
if (len == 0) {
break; // no children, word must end here
}
@@ -2550,7 +2548,6 @@ void spell_reload(void)
}
}
// Opposite of offset2bytes().
// "pp" points to the bytes and is advanced over it.
// Returns the offset.
@@ -3138,7 +3135,6 @@ static bool check_need_cap(linenr_T lnum, colnr_T col)
return need_cap;
}
// ":spellrepall"
void ex_spellrepall(exarg_T *eap)
{
@@ -4937,7 +4933,6 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so
}
}
// Go one level deeper in the tree.
static void go_deeper(trystate_T *stack, int depth, int score_add)
{
@@ -5834,7 +5829,6 @@ static void check_suggestions(suginfo_T *su, garray_T *gap)
}
}
// Add a word to be banned.
static void add_banned(suginfo_T *su, char_u *word)
{
@@ -5888,7 +5882,6 @@ static void rescore_one(suginfo_T *su, suggest_T *stp)
}
}
// Function given to qsort() to sort the suggestions on st_score.
// First on "st_score", then "st_altscore" then alphabetically.
static int sug_compare(const void *s1, const void *s2)
@@ -6069,7 +6062,6 @@ static void spell_soundfold_wsal(slang_T *slang, char_u *inword, char_u *res)
bool did_white = false;
int wordlen;
// Convert the multi-byte string to a wide-character string.
// Remove accents, if wanted. We actually remove all non-word characters.
// But keep white space.