Fix vera++ rule to find expressions without space after parentheses (#3776)
Regex didn't include some characters that may occur after ')' JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna r.walczyna@samsung.com
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
static inline jmem_heap_free_t * JERRY_ATTR_ALWAYS_INLINE JERRY_ATTR_PURE
|
||||
jmem_heap_get_region_end (jmem_heap_free_t *curr_p) /**< current region */
|
||||
{
|
||||
return (jmem_heap_free_t *)((uint8_t *) curr_p + curr_p->size);
|
||||
return (jmem_heap_free_t *) ((uint8_t *) curr_p + curr_p->size);
|
||||
} /* jmem_heap_get_region_end */
|
||||
#endif /* !ENABLED (JERRY_SYSTEM_ALLOCATOR) */
|
||||
|
||||
@@ -516,7 +516,7 @@ jmem_heap_realloc_block (void *ptr, /**< memory region to reallocate */
|
||||
JMEM_VALGRIND_RESIZE_SPACE (block_p, old_size, new_size);
|
||||
JMEM_HEAP_STAT_FREE (old_size);
|
||||
JMEM_HEAP_STAT_ALLOC (new_size);
|
||||
jmem_heap_insert_block ((jmem_heap_free_t *)((uint8_t *) block_p + aligned_new_size),
|
||||
jmem_heap_insert_block ((jmem_heap_free_t *) ((uint8_t *) block_p + aligned_new_size),
|
||||
jmem_heap_find_prev (block_p),
|
||||
aligned_old_size - aligned_new_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user