Replace vera++ with clang-format (#4518)

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik robert.fancsik@h-lab.eu
This commit is contained in:
Robert Fancsik
2021-11-05 14:15:47 +01:00
committed by GitHub
parent bc091e1742
commit badfdf4dba
564 changed files with 10195 additions and 15090 deletions
+9 -26
View File
@@ -16,11 +16,9 @@
#include "js-parser-internal.h"
/* These two checks only checks the compiler, they have no effect on the code. */
JERRY_STATIC_ASSERT (sizeof (cbc_uint8_arguments_t) == 16,
sizeof_cbc_uint8_arguments_t_must_be_16_byte_long);
JERRY_STATIC_ASSERT (sizeof (cbc_uint8_arguments_t) == 16, sizeof_cbc_uint8_arguments_t_must_be_16_byte_long);
JERRY_STATIC_ASSERT (sizeof (cbc_uint16_arguments_t) == 24,
sizeof_cbc_uint16_arguments_t_must_be_24_byte_long);
JERRY_STATIC_ASSERT (sizeof (cbc_uint16_arguments_t) == 24, sizeof_cbc_uint16_arguments_t_must_be_24_byte_long);
JERRY_STATIC_ASSERT (offsetof (cbc_uint8_arguments_t, script_value) == offsetof (cbc_uint16_arguments_t, script_value),
script_value_in_cbc_uint8_arguments_and_cbc_uint16_arguments_must_be_in_the_same_offset);
@@ -29,10 +27,8 @@ JERRY_STATIC_ASSERT (offsetof (cbc_uint8_arguments_t, script_value) == offsetof
* The reason of these two static asserts to notify the developer to increase the JERRY_SNAPSHOT_VERSION
* whenever new bytecodes are introduced or existing ones have been deleted.
*/
JERRY_STATIC_ASSERT (CBC_END == 238,
number_of_cbc_opcodes_changed);
JERRY_STATIC_ASSERT (CBC_EXT_END == 148,
number_of_cbc_ext_opcodes_changed);
JERRY_STATIC_ASSERT (CBC_END == 238, number_of_cbc_opcodes_changed);
JERRY_STATIC_ASSERT (CBC_EXT_END == 148, number_of_cbc_ext_opcodes_changed);
#if JERRY_PARSER || JERRY_PARSER_DUMP_BYTE_CODE
@@ -49,24 +45,17 @@ JERRY_STATIC_ASSERT (CBC_EXT_END == 148,
/**
* Compact bytecode definition
*/
#define CBC_OPCODE(arg1, arg2, arg3, arg4) \
((arg2) | (((arg3) + CBC_STACK_ADJUST_BASE) << CBC_STACK_ADJUST_SHIFT)),
#define CBC_OPCODE(arg1, arg2, arg3, arg4) ((arg2) | (((arg3) + CBC_STACK_ADJUST_BASE) << CBC_STACK_ADJUST_SHIFT)),
/**
* Flags of the opcodes.
*/
const uint8_t cbc_flags[] JERRY_ATTR_CONST_DATA =
{
CBC_OPCODE_LIST
};
const uint8_t cbc_flags[] JERRY_ATTR_CONST_DATA = { CBC_OPCODE_LIST };
/**
* Flags of the extended opcodes.
*/
const uint8_t cbc_ext_flags[] =
{
CBC_EXT_OPCODE_LIST
};
const uint8_t cbc_ext_flags[] = { CBC_EXT_OPCODE_LIST };
#undef CBC_OPCODE
@@ -79,18 +68,12 @@ const uint8_t cbc_ext_flags[] =
/**
* Names of the opcodes.
*/
const char * const cbc_names[] =
{
CBC_OPCODE_LIST
};
const char* const cbc_names[] = { CBC_OPCODE_LIST };
/**
* Names of the extended opcodes.
*/
const char * const cbc_ext_names[] =
{
CBC_EXT_OPCODE_LIST
};
const char* const cbc_ext_names[] = { CBC_EXT_OPCODE_LIST };
#undef CBC_OPCODE