Fix goto labels indentation (#4818)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
Robert Fancsik 2021-11-05 16:58:41 +01:00 committed by GitHub
parent badfdf4dba
commit 80777799f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 13 deletions

View File

@ -53,7 +53,7 @@ IncludeCategories:
- Regex: '.*'
Priority: 4
IndentCaseLabels: true
IndentGotoLabels: true
IndentGotoLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false

View File

@ -521,7 +521,7 @@ ecma_module_resolve_export (ecma_module_t *const module_p, /**< base module */
star_export_p = star_export_p->next_p;
}
next_iteration:
next_iteration:
current_set_p = current_set_p->next_p;
} while (current_set_p != NULL);

View File

@ -668,7 +668,7 @@ ecma_builtin_array_prototype_object_reverse (ecma_value_t this_arg, /**< this ar
ret_value = ECMA_VALUE_EMPTY;
clean_up:
clean_up:
ecma_free_value (upper_value);
ecma_free_value (lower_value);
ecma_deref_ecma_string (lower_str_p);

View File

@ -254,7 +254,7 @@ ecma_builtin_array_object_from (ecma_value_t this_arg, /**< 'this' argument */
k++;
}
iterator_cleanup:
iterator_cleanup:
ecma_free_value (iterator);
ecma_free_value (next_method);
ecma_deref_object (array_obj_p);

View File

@ -1483,7 +1483,7 @@ ecma_regexp_run (ecma_regexp_ctx_t *re_ctx_p, /**< RegExp matcher context */
goto fail;
class_found:
class_found:
if (flags & RE_CLASS_INVERT)
{
goto fail;
@ -1565,7 +1565,7 @@ ecma_regexp_run (ecma_regexp_ctx_t *re_ctx_p, /**< RegExp matcher context */
}
JERRY_UNREACHABLE ();
fail:
fail:
bc_p = next_alternative_p;
if (bc_p == NULL || *bc_p++ != RE_OP_ALTERNATIVE_NEXT)

View File

@ -3957,7 +3957,7 @@ parser_parse_expression (parser_context_t *context_p, /**< context */
while (true)
{
process_unary_expression:
process_unary_expression:
parser_process_unary_expression (context_p, grouping_level);
if (JERRY_LIKELY (grouping_level != PARSE_EXPR_LEFT_HAND_SIDE))

View File

@ -3311,7 +3311,7 @@ parser_parse_statements (parser_context_t *context_p) /**< context */
parser_raise_error (context_p, PARSER_ERR_SEMICOLON_EXPECTED);
}
consume_last_statement:
consume_last_statement:
while (true)
{
switch (context_p->stack_top_uint8)

View File

@ -3388,7 +3388,7 @@ scanner_scan_all (parser_context_t *context_p) /**< context */
lexer_next_token (context_p);
}
scan_completed:
scan_completed:
if (context_p->stack_top_uint8 != SCAN_STACK_SCRIPT && context_p->stack_top_uint8 != SCAN_STACK_SCRIPT_FUNCTION)
{
scanner_raise_error (context_p);

View File

@ -4674,13 +4674,13 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
VM_GET_REGISTERS (frame_ctx_p)[0] = result;
}
free_both_values:
free_both_values:
ecma_fast_free_value (right_value);
free_left_value:
free_left_value:
ecma_fast_free_value (left_value);
}
error:
error:
ecma_fast_free_value (left_value);
ecma_fast_free_value (right_value);
@ -4851,7 +4851,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
} while (frame_ctx_p->context_depth > 0);
}
finish:
finish:
frame_ctx_p->call_operation = VM_NO_EXEC_OP;
return result;
}