Add vera rules to check consecutive and trailing empty lines (#3540)
JerryScript-DCO-1.0-Signed-off-by: Dániel Bátyai dbatyai@inf.u-szeged.hu
This commit is contained in:
@@ -737,7 +737,6 @@ ecma_op_array_species_create (ecma_object_t *original_array_p, /**< The object f
|
||||
&len_val,
|
||||
1);
|
||||
|
||||
|
||||
ecma_deref_object (ctor_object_p);
|
||||
ecma_free_value (len_val);
|
||||
return ret_val;
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Maximum number of new array holes in a fast mode access array.
|
||||
* If the number of new holes exceeds this limit, the array is converted back
|
||||
|
||||
@@ -92,7 +92,6 @@ ecma_arraybuffer_new_object_external (ecma_length_t length, /**< length of the b
|
||||
return object_p;
|
||||
} /* ecma_arraybuffer_new_object_external */
|
||||
|
||||
|
||||
/**
|
||||
* ArrayBuffer object creation operation.
|
||||
*
|
||||
|
||||
@@ -201,7 +201,6 @@ ecma_op_container_create (const ecma_value_t *arguments_list_p, /**< arguments l
|
||||
ecma_deref_object (next_object_p);
|
||||
}
|
||||
|
||||
|
||||
if (ECMA_IS_VALUE_ERROR (result))
|
||||
{
|
||||
ecma_op_iterator_close (iter);
|
||||
@@ -678,7 +677,6 @@ ecma_op_container_delete (ecma_value_t this_arg, /**< this argument */
|
||||
return ECMA_VALUE_FALSE;
|
||||
}
|
||||
|
||||
|
||||
ecma_named_data_property_assign_value ((ecma_object_t *) container_p,
|
||||
ECMA_PROPERTY_VALUE_PTR (property_p),
|
||||
ECMA_VALUE_EMPTY);
|
||||
|
||||
@@ -681,7 +681,6 @@ ecma_op_function_has_instance (ecma_object_t *func_obj_p, /**< Function object *
|
||||
return result;
|
||||
} /* ecma_op_function_has_instance */
|
||||
|
||||
|
||||
#if ENABLED (JERRY_ES2015)
|
||||
/**
|
||||
* Indicates whether the class has been invoked with 'new'.
|
||||
|
||||
@@ -289,7 +289,6 @@ ecma_op_delete_binding (ecma_object_t *lex_env_p, /**< lexical environment */
|
||||
&& ecma_is_lexical_environment (lex_env_p));
|
||||
JERRY_ASSERT (name_p != NULL);
|
||||
|
||||
|
||||
if (ecma_get_lex_env_type (lex_env_p) == ECMA_LEXICAL_ENVIRONMENT_DECLARATIVE)
|
||||
{
|
||||
ecma_property_t *prop_p = ecma_find_named_property (lex_env_p, name_p);
|
||||
|
||||
@@ -418,7 +418,6 @@ ecma_op_general_object_define_own_property (ecma_object_t *object_p, /**< the ob
|
||||
JERRY_ASSERT (property_desc_type == ECMA_PROPERTY_TYPE_GENERIC
|
||||
|| property_desc_type == ECMA_PROPERTY_TYPE_NAMEDDATA);
|
||||
|
||||
|
||||
ecma_property_value_t *new_prop_value_p = ecma_create_named_data_property (object_p,
|
||||
property_name_p,
|
||||
prop_attributes,
|
||||
|
||||
@@ -165,7 +165,6 @@ ecma_op_object_get_own_property (ecma_object_t *object_p, /**< the object */
|
||||
return ECMA_PROPERTY_TYPE_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
#if ENABLED (JERRY_ES2015_BUILTIN_TYPEDARRAY)
|
||||
@@ -2339,7 +2338,6 @@ ecma_op_object_get_property_names (ecma_object_t *obj_p, /**< object */
|
||||
|
||||
JMEM_FINALIZE_LOCAL_ARRAY (names_p);
|
||||
|
||||
|
||||
if (!is_with_prototype_chain || prototype_chain_iter_p->u2.prototype_cp == JMEM_CP_NULL)
|
||||
{
|
||||
break;
|
||||
|
||||
@@ -34,7 +34,6 @@ ecma_op_string_list_lazy_property_names (ecma_object_t *obj_p,
|
||||
ecma_collection_t *main_collection_p,
|
||||
ecma_collection_t *non_enum_collection_p);
|
||||
|
||||
|
||||
/**
|
||||
* @}
|
||||
* @}
|
||||
|
||||
@@ -123,7 +123,6 @@ ecma_typedarray_get_double_element (lit_utf8_byte_t *src) /**< the location in t
|
||||
return (ecma_number_t) num;
|
||||
} /* ecma_typedarray_get_double_element */
|
||||
|
||||
|
||||
/**
|
||||
* Normalize the given ecma_number_t to an uint32_t value
|
||||
*/
|
||||
@@ -169,7 +168,6 @@ ecma_typedarray_set_int8_element (lit_utf8_byte_t *dst_p, /**< the location in t
|
||||
*dst_p = (lit_utf8_byte_t) num;
|
||||
} /* ecma_typedarray_set_int8_element */
|
||||
|
||||
|
||||
/**
|
||||
* Write an uint8_t value into the given arraybuffer
|
||||
*/
|
||||
@@ -223,7 +221,6 @@ ecma_typedarray_set_int16_element (lit_utf8_byte_t *dst_p, /**< the location in
|
||||
memcpy (dst_p, &num, sizeof (int16_t));
|
||||
} /* ecma_typedarray_set_int16_element */
|
||||
|
||||
|
||||
/**
|
||||
* Write an uint8_t value into the given arraybuffer
|
||||
*/
|
||||
@@ -246,7 +243,6 @@ ecma_typedarray_set_int32_element (lit_utf8_byte_t *dst_p, /**< the location in
|
||||
memcpy (dst_p, &num, sizeof (int32_t));
|
||||
} /* ecma_typedarray_set_int32_element */
|
||||
|
||||
|
||||
/**
|
||||
* Write an uint32_t value into the given arraybuffer
|
||||
*/
|
||||
@@ -258,7 +254,6 @@ ecma_typedarray_set_uint32_element (lit_utf8_byte_t *dst_p, /**< the location in
|
||||
memcpy (dst_p, &num, sizeof (uint32_t));
|
||||
} /* ecma_typedarray_set_uint32_element */
|
||||
|
||||
|
||||
/**
|
||||
* Write a float value into the given arraybuffer
|
||||
*/
|
||||
@@ -283,7 +278,6 @@ ecma_typedarray_set_double_element (lit_utf8_byte_t *dst_p, /**< the location in
|
||||
} /* ecma_typedarray_set_double_element */
|
||||
#endif /* ENABLED (JERRY_NUMBER_TYPE_FLOAT64) */
|
||||
|
||||
|
||||
/**
|
||||
* Builtin id of the first %TypedArray% builtin routine intrinsic object
|
||||
*/
|
||||
@@ -666,7 +660,6 @@ ecma_typedarray_create_object_with_typedarray (ecma_object_t *typedarray_p, /**<
|
||||
ecma_typedarray_getter_fn_t src_typedarray_getter_cb = ecma_get_typedarray_getter_fn (src_id);
|
||||
ecma_typedarray_setter_fn_t target_typedarray_setter_cb = ecma_get_typedarray_setter_fn (typedarray_id);
|
||||
|
||||
|
||||
for (uint32_t i = 0; i < array_length; i++)
|
||||
{
|
||||
/* Convert values from source to destination format. */
|
||||
@@ -839,7 +832,6 @@ ecma_typedarray_get_element_size_shift (ecma_object_t *typedarray_p) /**< the po
|
||||
return ecma_typedarray_helper_get_shift_size (ecma_get_typedarray_id (typedarray_p));
|
||||
} /* ecma_typedarray_get_element_size_shift */
|
||||
|
||||
|
||||
/**
|
||||
* Get the array length of the typedarray object
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user