Skip to content

Commit 8077779

Browse files
author
Robert Fancsik
authored
Fix goto labels indentation (#4818)
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
1 parent badfdf4 commit 8077779

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ IncludeCategories:
5353
- Regex: '.*'
5454
Priority: 4
5555
IndentCaseLabels: true
56-
IndentGotoLabels: true
56+
IndentGotoLabels: false
5757
IndentPPDirectives: None
5858
IndentWidth: 2
5959
IndentWrappedFunctionNames: false

jerry-core/ecma/base/ecma-module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ ecma_module_resolve_export (ecma_module_t *const module_p, /**< base module */
521521
star_export_p = star_export_p->next_p;
522522
}
523523

524-
next_iteration:
524+
next_iteration:
525525
current_set_p = current_set_p->next_p;
526526
} while (current_set_p != NULL);
527527

jerry-core/ecma/builtin-objects/ecma-builtin-array-prototype.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ ecma_builtin_array_prototype_object_reverse (ecma_value_t this_arg, /**< this ar
668668

669669
ret_value = ECMA_VALUE_EMPTY;
670670

671-
clean_up:
671+
clean_up:
672672
ecma_free_value (upper_value);
673673
ecma_free_value (lower_value);
674674
ecma_deref_ecma_string (lower_str_p);

jerry-core/ecma/builtin-objects/ecma-builtin-array.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ ecma_builtin_array_object_from (ecma_value_t this_arg, /**< 'this' argument */
254254
k++;
255255
}
256256

257-
iterator_cleanup:
257+
iterator_cleanup:
258258
ecma_free_value (iterator);
259259
ecma_free_value (next_method);
260260
ecma_deref_object (array_obj_p);

jerry-core/ecma/operations/ecma-regexp-object.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ ecma_regexp_run (ecma_regexp_ctx_t *re_ctx_p, /**< RegExp matcher context */
14831483

14841484
goto fail;
14851485

1486-
class_found:
1486+
class_found:
14871487
if (flags & RE_CLASS_INVERT)
14881488
{
14891489
goto fail;
@@ -1565,7 +1565,7 @@ ecma_regexp_run (ecma_regexp_ctx_t *re_ctx_p, /**< RegExp matcher context */
15651565
}
15661566

15671567
JERRY_UNREACHABLE ();
1568-
fail:
1568+
fail:
15691569
bc_p = next_alternative_p;
15701570

15711571
if (bc_p == NULL || *bc_p++ != RE_OP_ALTERNATIVE_NEXT)

jerry-core/parser/js/js-parser-expr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3957,7 +3957,7 @@ parser_parse_expression (parser_context_t *context_p, /**< context */
39573957

39583958
while (true)
39593959
{
3960-
process_unary_expression:
3960+
process_unary_expression:
39613961
parser_process_unary_expression (context_p, grouping_level);
39623962

39633963
if (JERRY_LIKELY (grouping_level != PARSE_EXPR_LEFT_HAND_SIDE))

jerry-core/parser/js/js-parser-statm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3311,7 +3311,7 @@ parser_parse_statements (parser_context_t *context_p) /**< context */
33113311
parser_raise_error (context_p, PARSER_ERR_SEMICOLON_EXPECTED);
33123312
}
33133313

3314-
consume_last_statement:
3314+
consume_last_statement:
33153315
while (true)
33163316
{
33173317
switch (context_p->stack_top_uint8)

jerry-core/parser/js/js-scanner.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3388,7 +3388,7 @@ scanner_scan_all (parser_context_t *context_p) /**< context */
33883388
lexer_next_token (context_p);
33893389
}
33903390

3391-
scan_completed:
3391+
scan_completed:
33923392
if (context_p->stack_top_uint8 != SCAN_STACK_SCRIPT && context_p->stack_top_uint8 != SCAN_STACK_SCRIPT_FUNCTION)
33933393
{
33943394
scanner_raise_error (context_p);

jerry-core/vm/vm.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -4674,13 +4674,13 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
46744674
VM_GET_REGISTERS (frame_ctx_p)[0] = result;
46754675
}
46764676

4677-
free_both_values:
4677+
free_both_values:
46784678
ecma_fast_free_value (right_value);
4679-
free_left_value:
4679+
free_left_value:
46804680
ecma_fast_free_value (left_value);
46814681
}
46824682

4683-
error:
4683+
error:
46844684
ecma_fast_free_value (left_value);
46854685
ecma_fast_free_value (right_value);
46864686

@@ -4851,7 +4851,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
48514851
} while (frame_ctx_p->context_depth > 0);
48524852
}
48534853

4854-
finish:
4854+
finish:
48554855
frame_ctx_p->call_operation = VM_NO_EXEC_OP;
48564856
return result;
48574857
}

0 commit comments

Comments
 (0)