mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Add several checking rules. Add some fixes. Force vera++ to produce error
This commit is contained in:
parent
4fb0080701
commit
3a388b07a1
@ -365,7 +365,7 @@ $(JERRY_TARGETS):
|
||||
@rm -rf $(TARGET_DIR)
|
||||
@cppcheck $(DEFINES_JERRY) $(SOURCES_JERRY_C) $(INCLUDES_JERRY) $(INCLUDES_THIRDPARTY) \
|
||||
--error-exitcode=1 --std=c99 --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction 1>/dev/null
|
||||
@vera++ -r ./tools/vera++ -p jerry $(SOURCES_JERRY_C) $(SOURCES_JERRY_H) #-e
|
||||
@vera++ -r ./tools/vera++ -p jerry $(SOURCES_JERRY_C) $(SOURCES_JERRY_H) -e
|
||||
@mkdir -p $(TARGET_DIR)
|
||||
@mkdir -p $(TARGET_DIR)/obj
|
||||
@source_index=0; \
|
||||
|
||||
14
src/main.c
14
src/main.c
@ -41,9 +41,9 @@ parser_run (const char *script_source, size_t script_source_size, bool is_show_o
|
||||
uint16_t offset;
|
||||
const OPCODE *opcodes;
|
||||
|
||||
lexer_init( script_source, script_source_size, is_show_opcodes);
|
||||
lexer_init ( script_source, script_source_size, is_show_opcodes);
|
||||
|
||||
lexer_run_first_pass();
|
||||
lexer_run_first_pass ();
|
||||
|
||||
strings_num = lexer_get_strings (strings);
|
||||
nums_count = lexer_get_nums (nums);
|
||||
@ -153,7 +153,7 @@ read_sources (const char *script_file_names[],
|
||||
}
|
||||
|
||||
const size_t source_size = (size_t) (source_buffer_tail - source_buffer);
|
||||
JERRY_ASSERT( source_size < sizeof(source_buffer) );
|
||||
JERRY_ASSERT( source_size < sizeof(source_buffer));
|
||||
|
||||
*out_source_size_p = source_size;
|
||||
|
||||
@ -174,10 +174,10 @@ main (int argc __unused,
|
||||
{
|
||||
if (!__strcmp ("-v", argv[i]))
|
||||
{
|
||||
__printf("Build date: \t%s\n", JERRY_BUILD_DATE);
|
||||
__printf("Commit hash:\t%s\n", JERRY_COMMIT_HASH);
|
||||
__printf("Branch name:\t%s\n", JERRY_BRANCH_NAME);
|
||||
__printf("\n");
|
||||
__printf ("Build date: \t%s\n", JERRY_BUILD_DATE);
|
||||
__printf ("Commit hash:\t%s\n", JERRY_COMMIT_HASH);
|
||||
__printf ("Branch name:\t%s\n", JERRY_BRANCH_NAME);
|
||||
__printf ("\n");
|
||||
}
|
||||
if (!__strcmp ("--mem-stats", argv[i]))
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user