Searched refs:ptr_name (Results 1 – 2 of 2) sorted by relevance
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_sizeof.c | 22 static void check_pointer(struct expression *expr, char *ptr_name) in check_pointer() argument 37 if (strcmp(ptr_name, name) == 0) in check_pointer() 38 sm_warning("was 'sizeof(*%s)' intended?", ptr_name); in check_pointer() 46 char *ptr_name; in match_call_assignment() local 51 ptr_name = expr_to_str(expr->left); in match_call_assignment() 52 if (!ptr_name) in match_call_assignment() 56 check_pointer(arg, ptr_name); in match_call_assignment() 59 free_string(ptr_name); in match_call_assignment() 65 char *ptr_name; in check_passes_pointer() local 68 ptr_name = expr_to_var(arg); in check_passes_pointer() [all …]
|
H A D | smatch_function_ptrs.c | 241 char ptr_name[256]; in match_passes_function_pointer() local 266 snprintf(ptr_name, sizeof(ptr_name), "%s param %d", called_name, i); in match_passes_function_pointer() 267 sql_insert_function_ptr(fn_name, ptr_name); in match_passes_function_pointer() 318 char *ptr_name; in match_function_assign() local 337 ptr_name = get_fnptr_name(expr->left); in match_function_assign() 338 if (!fn_name || !ptr_name) in match_function_assign() 340 if (strcmp(fn_name, ptr_name) == 0) in match_function_assign() 363 sql_insert_function_ptr(fn_name, ptr_name); in match_function_assign() 366 free_string(ptr_name); in match_function_assign() 373 char ptr_name[256]; in match_returns_function_pointer() local [all …]
|