mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-22 15:51:18 -03:00
restyle switch blocks to match project style
I missed restyling a few "switch" blocks to make them consistent with the rest of the code base. This fixes that oversight. This should be the final step in restyling the C++ code to have a consistent style. This also includes a few trivial cleanups elsewhere. I also missed restyling the "complete" module when working my way from a to z so this final change includes restyling that module. Total lint errors decreased 36%. Cppcheck errors went from 47 to 24. Oclint P2 errors went from 819 to 778. Oclint P3 errors went from 3252 to 1842. Resolves #2902.
This commit is contained in:
@@ -596,21 +596,24 @@ int builtin_printf_state_t::print_formatted(const wchar_t *format, int argc, wch
|
||||
for (;; f++, direc_length++) {
|
||||
switch (*f) {
|
||||
case L'I':
|
||||
case L'\'':
|
||||
case L'\'': {
|
||||
modify_allowed_format_specifiers(ok, "aAceEosxX", false);
|
||||
break;
|
||||
}
|
||||
case '-':
|
||||
case '+':
|
||||
case ' ':
|
||||
case ' ': {
|
||||
break;
|
||||
case L'#':
|
||||
}
|
||||
case L'#': {
|
||||
modify_allowed_format_specifiers(ok, "cdisu", false);
|
||||
break;
|
||||
case '0':
|
||||
}
|
||||
case '0': {
|
||||
modify_allowed_format_specifiers(ok, "cs", false);
|
||||
break;
|
||||
default:
|
||||
goto no_more_flag_characters;
|
||||
}
|
||||
default: { goto no_more_flag_characters; }
|
||||
}
|
||||
}
|
||||
no_more_flag_characters:;
|
||||
|
||||
Reference in New Issue
Block a user