Merge pull request #14574 from maribu/fix-indent-switch

uncrustify-riot.cfg: Don't indent switch cases
This commit is contained in:
benpicco 2020-08-24 11:15:40 +02:00 committed by GitHub
commit 64fb92e65d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

View File

@ -32,15 +32,15 @@ static inline int __attribute__((always_inline)) _thread_flags_wake(thread_t *th
thread_flags_t mask = (uint16_t)(unsigned)thread->wait_data;
switch (thread->status) {
case STATUS_FLAG_BLOCKED_ANY:
wakeup = (thread->flags & mask);
break;
case STATUS_FLAG_BLOCKED_ALL:
wakeup = ((thread->flags & mask) == mask);
break;
default:
wakeup = 0;
break;
case STATUS_FLAG_BLOCKED_ANY:
wakeup = (thread->flags & mask);
break;
case STATUS_FLAG_BLOCKED_ALL:
wakeup = ((thread->flags & mask) == mask);
break;
default:
wakeup = 0;
break;
}
if (wakeup) {

View File

@ -7,7 +7,7 @@ input_tab_size = 4 # original tab size
output_tab_size = 4 # new tab size
indent_columns = output_tab_size #
indent_label = 1 # pos: absolute col, neg: relative column
indent_switch_case = 4 # number
indent_switch_case = 0 # number
indent_ternary_operator = 2 # When the `:` is a continuation, indent it under `?`
#