mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
refactor: saner options for uncrustify (#16204)
* sp_enum_after_assign = force * sp_brace_typedef = force * nl_do_brace = remove * sp_do_brace_open = force * sp_brace_close_while = force * sp_before_semi = remove * sp_before_semi_for = remove * sp_before_semi_for_empty = remove * sp_between_semi_for_empty = remove * sp_after_semi_for_empty = remove * sp_before_square = remove * sp_before_squares = remove * sp_inside_square = remove * sp_inside_fparens = remove * sp_inside_fparen = remove * sp_inside_tparen = remove * sp_after_tparen_close = remove * sp_return_paren = force * pos_bool = lead * sp_pp_concat = remove * sp_pp_stringify = remove * fixup: disable formatting for the INIT section
This commit is contained in:
@@ -303,7 +303,7 @@ void ex_align(exarg_T *eap)
|
||||
* Now try to move the line as much as possible to
|
||||
* the right. Stop when it moves too far.
|
||||
*/
|
||||
do{
|
||||
do {
|
||||
(void)set_indent(++new_indent, 0);
|
||||
}
|
||||
while (linelen(NULL) <= width);
|
||||
@@ -774,7 +774,7 @@ void ex_retab(exarg_T *eap)
|
||||
col = 0;
|
||||
vcol = 0;
|
||||
did_undo = false;
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
if (ascii_iswhite(ptr[col])) {
|
||||
if (!got_tab && num_spaces == 0) {
|
||||
// First consecutive white-space
|
||||
@@ -2150,7 +2150,7 @@ static int check_readonly(int *forceit, buf_T *buf)
|
||||
|
||||
if (buf->b_p_ro) {
|
||||
dialog_msg(buff,
|
||||
_( "'readonly' option is set for \"%s\".\nDo you wish to write anyway?"),
|
||||
_("'readonly' option is set for \"%s\".\nDo you wish to write anyway?"),
|
||||
buf->b_fname);
|
||||
} else {
|
||||
dialog_msg(buff,
|
||||
@@ -2944,7 +2944,7 @@ void ex_append(exarg_T *eap)
|
||||
State |= LANGMAP;
|
||||
}
|
||||
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
msg_scroll = TRUE;
|
||||
need_wait_return = false;
|
||||
if (curbuf->b_p_ai) {
|
||||
@@ -3719,7 +3719,7 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout, bool do_buf_event, handle
|
||||
* 4. if subflags.do_all is set, find next match
|
||||
* 5. break if there isn't another match in this line
|
||||
*/
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
SubResult current_match = {
|
||||
.start = { 0, 0 },
|
||||
.end = { 0, 0 },
|
||||
@@ -5030,9 +5030,9 @@ int find_help_tags(const char_u *arg, int *num_matches, char_u ***matches, bool
|
||||
// When the string starting with "expr-" and containing '?' and matches
|
||||
// the table, it is taken literally (but ~ is escaped). Otherwise '?'
|
||||
// is recognized as a wildcard.
|
||||
for (i = (int)ARRAY_SIZE(expr_table); --i >= 0; ) {
|
||||
for (i = (int)ARRAY_SIZE(expr_table); --i >= 0;) {
|
||||
if (STRCMP(arg + 5, expr_table[i]) == 0) {
|
||||
for (int si = 0, di = 0; ; si++) {
|
||||
for (int si = 0, di = 0;; si++) {
|
||||
if (arg[si] == '~') {
|
||||
d[di++] = '\\';
|
||||
}
|
||||
@@ -5047,7 +5047,7 @@ int find_help_tags(const char_u *arg, int *num_matches, char_u ***matches, bool
|
||||
} else {
|
||||
// Recognize a few exceptions to the rule. Some strings that contain
|
||||
// '*' with "star". Otherwise '*' is recognized as a wildcard.
|
||||
for (i = (int)ARRAY_SIZE(mtable); --i >= 0; ) {
|
||||
for (i = (int)ARRAY_SIZE(mtable); --i >= 0;) {
|
||||
if (STRCMP(arg, mtable[i]) == 0) {
|
||||
STRCPY(d, rtable[i]);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user