/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_project.c | 84 if (token_type(token) != TOKEN_STREAMBEGIN) in register_no_return_funcs() 87 while (token_type(token) != TOKEN_STREAMEND) { in register_no_return_funcs() 88 if (token_type(token) != TOKEN_IDENT) in register_no_return_funcs() 111 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_macros() 114 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_macros() 115 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros() 140 if (token_type(token) != TOKEN_STREAMBEGIN) in register_skipped_functions() 143 while (token_type(token) != TOKEN_STREAMEND) { in register_skipped_functions() 144 if (token_type(token) != TOKEN_IDENT) in register_skipped_functions() 169 if (token_type(token) != TOKEN_STREAMBEGIN) in register_silenced_functions() [all …]
|
H A D | check_wrong_size_arg.c | 54 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 57 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 58 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 63 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() 68 if (token_type(token) == TOKEN_SPECIAL) { in register_funcs_from_file() 73 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() 85 if (token_type(token) != TOKEN_STREAMEND) in register_funcs_from_file()
|
H A D | pre-process.c | 116 token_type(token) = TOKEN_STRING; in replace_with_string() 124 token_type(token) = TOKEN_NUMBER; in replace_with_integer() 138 if (token_type(token) == TOKEN_IDENT) { in token_defined() 155 token_type(token) = TOKEN_NUMBER; in replace_with_bool() 246 if (token_type(token) != TOKEN_UNTAINT) in scan_next() 251 } while (token_type(token) == TOKEN_UNTAINT); in scan_next() 260 if (token_type(next) != TOKEN_IDENT || expand_one_symbol(list)) in expand_list() 284 switch (token_type(next)) { in collect_arg() 457 token_type(token) = TOKEN_STRING; in stringify() 499 static enum token_type combine(struct token *left, struct token *right, char *p) in combine() [all …]
|
H A D | check_unreachable.c | 90 if (token && token_type(token) == TOKEN_IDENT && in prev_line_was_endif() 96 if (token && token_type(token) == TOKEN_IDENT && in prev_line_was_endif() 243 if (token_type(token) != TOKEN_STREAMBEGIN) in register_turn_off_macros() 246 while (token_type(token) != TOKEN_STREAMEND) { in register_turn_off_macros() 247 if (token_type(token) != TOKEN_IDENT) in register_turn_off_macros() 270 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_macros() 273 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_macros() 274 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros()
|
H A D | check_memcpy_overflow.c | 291 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 294 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 295 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 300 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() 305 if (token_type(token) == TOKEN_SPECIAL) { in register_funcs_from_file() 309 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() 315 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() 327 if (token_type(token) != TOKEN_STREAMEND) in register_funcs_from_file() 343 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_structs_from_file() 346 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_structs_from_file() [all …]
|
H A D | check_freeing_devm.c | 52 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 55 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 56 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 60 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file()
|
H A D | check_dma_on_stack.c | 61 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 64 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 65 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 69 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file()
|
H A D | tokenize.c | 191 switch (token_type(token)) { in show_token() 212 token_type(token) - TOKEN_CHAR, 0, '\''); in show_token() 218 token_type(token) - TOKEN_WIDE_CHAR, 'L', '\''); in show_token() 243 sprintf(buffer, "unhandled token type '%d' ", token_type(token)); in show_token() 252 switch (token_type(token)) { in quote_token() 270 token_type(token) - TOKEN_CHAR, 0, '\''); in quote_token() 276 token_type(token) - TOKEN_WIDE_CHAR, 'L', '\''); in quote_token() 284 sprintf(buffer, "unhandled token type '%d' ", token_type(token)); in quote_token() 457 token_type(end) = TOKEN_STREAMEND; in mark_eof() 569 token_type(token) = TOKEN_NUMBER; in get_one_number() [all …]
|
H A D | smatch_expressions.c | 192 if (token_type(token) != TOKEN_STREAMBEGIN) in get_expression_from_base_and_str() 197 while (token_type(token) == TOKEN_SPECIAL && in get_expression_from_base_and_str() 201 if (token_type(token) != TOKEN_IDENT) in get_expression_from_base_and_str() 217 if (token_type(token) != TOKEN_STREAMEND) in get_expression_from_base_and_str() 275 if (token_type(token) != TOKEN_STREAMBEGIN) in gen_expression_from_key() 280 while (token_type(token) == TOKEN_SPECIAL && in gen_expression_from_key() 284 if (token_type(token) != TOKEN_IDENT) in gen_expression_from_key() 293 if (token_type(token) != TOKEN_STREAMEND) in gen_expression_from_key()
|
H A D | smatch_ignore.c | 90 if (token_type(token) != TOKEN_STREAMBEGIN) in load_ignores() 93 while (token_type(token) != TOKEN_STREAMEND) { in load_ignores() 94 if (token_type(token) != TOKEN_IDENT) in load_ignores() 100 if (token_type(token) != TOKEN_IDENT) in load_ignores()
|
H A D | check_dev_queue_xmit.c | 108 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 111 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 112 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 116 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file()
|
H A D | check_return.c | 44 if (token_type(token) != TOKEN_STREAMBEGIN) in register_must_check_funcs() 47 while (token_type(token) != TOKEN_STREAMEND) { in register_must_check_funcs() 48 if (token_type(token) != TOKEN_IDENT) in register_must_check_funcs()
|
H A D | check_rosenberg.c | 349 if (token_type(token) != TOKEN_STREAMBEGIN) in register_clears_argument() 352 while (token_type(token) != TOKEN_STREAMEND) { in register_clears_argument() 353 if (token_type(token) != TOKEN_IDENT) in register_clears_argument() 357 if (token_type(token) != TOKEN_NUMBER) in register_clears_argument() 376 if (token_type(token) != TOKEN_STREAMBEGIN) in register_copy_funcs_from_file() 379 while (token_type(token) != TOKEN_STREAMEND) { in register_copy_funcs_from_file() 380 if (token_type(token) != TOKEN_IDENT) in register_copy_funcs_from_file() 384 if (token_type(token) != TOKEN_NUMBER) in register_copy_funcs_from_file()
|
H A D | check_bit_shift.c | 97 if (token_type(token) != TOKEN_STREAMBEGIN) in register_shifters() 100 while (token_type(token) != TOKEN_STREAMEND) { in register_shifters() 101 if (token_type(token) != TOKEN_IDENT) in register_shifters() 105 if (token_type(token) != TOKEN_NUMBER) in register_shifters()
|
H A D | check_deref.c | 261 if (token_type(token) != TOKEN_STREAMBEGIN) in register_allocation_funcs() 264 while (token_type(token) != TOKEN_STREAMEND) { in register_allocation_funcs() 265 if (token_type(token) != TOKEN_IDENT) in register_allocation_funcs() 269 if (token_type(token) == TOKEN_IDENT) in register_allocation_funcs() 271 else if (token_type(token) == TOKEN_NUMBER) in register_allocation_funcs()
|
H A D | smatch_param_cleared.c | 118 if (token_type(token) != TOKEN_STREAMBEGIN) in register_clears_param() 121 while (token_type(token) != TOKEN_STREAMEND) { in register_clears_param() 122 if (token_type(token) != TOKEN_IDENT) in register_clears_param() 126 if (token_type(token) != TOKEN_NUMBER) in register_clears_param()
|
H A D | check_indenting.c | 79 if (token && token_type(token) == TOKEN_IDENT && in prev_lines_say_endif() 218 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_macros() 221 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_macros() 222 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros()
|
H A D | check_held_dev.c | 109 if (token_type(token) != TOKEN_STREAMBEGIN) in register_returns_held_funcs() 112 while (token_type(token) != TOKEN_STREAMEND) { in register_returns_held_funcs() 113 if (token_type(token) != TOKEN_IDENT) in register_returns_held_funcs()
|
H A D | smatch_function_hashtable.h | 95 if (token_type(token) != TOKEN_STREAMBEGIN) in load_hashtable_helper() 98 while (token_type(token) != TOKEN_STREAMEND) { in load_hashtable_helper() 99 if (token_type(token) != TOKEN_IDENT) in load_hashtable_helper()
|
H A D | check_macro_side_effects.c | 146 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_macros() 149 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_macros() 150 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros()
|
H A D | check_sizeof.c | 136 if (token_type(token) != TOKEN_STREAMBEGIN) in register_macro_takes_sizeof_argument() 139 while (token_type(token) != TOKEN_STREAMEND) { in register_macro_takes_sizeof_argument() 140 if (token_type(token) != TOKEN_IDENT) in register_macro_takes_sizeof_argument()
|
H A D | char.c | 73 int type = token_type(token); in get_char_constant() 98 int stringtype = token_type(token); in get_string_constant() 106 switch (token_type(next)) { in get_string_constant()
|
H A D | expression.c | 215 if (token_type(token) != TOKEN_IDENT) { in builtin_offsetof_expr() 234 op = token_type(token) == TOKEN_SPECIAL ? token->special : 0; in builtin_offsetof_expr() 377 switch (token_type(token)) { in primary_expression() 381 expr->ctype = token_type(token) < TOKEN_WIDE_CHAR ? &int_ctype : &long_ctype; in primary_expression() 505 while (expr && token_type(token) == TOKEN_SPECIAL) { in postfix_expression() 543 if (token_type(token) != TOKEN_IDENT) { in postfix_expression() 617 if (token_type(token) == TOKEN_IDENT) { in unary_expression() 638 if (token_type(token) == TOKEN_SPECIAL) { in unary_expression() 678 token_type(token->next) == TOKEN_IDENT) { in unary_expression() 757 while (token_type(next) == TOKEN_SPECIAL) { \ [all …]
|
H A D | check_unwind.c | 164 if (token_type(token) != TOKEN_STREAMBEGIN) in register_unwind_functions() 167 while (token_type(token) != TOKEN_STREAMEND) { in register_unwind_functions() 168 if (token_type(token) != TOKEN_IDENT) in register_unwind_functions()
|
/illumos-gate/usr/src/cmd/tic/ |
H A D | tic_parse.c | 185 int token_type; in compile() local 189 token_type = get_token(); in compile() 191 if (token_type != NAMES) in compile() 195 while (token_type != EOF) in compile() 196 token_type = do_entry((struct use_item *)NULL); in compile() 209 if ((token_type = get_token()) != NAMES) in compile() 221 if ((token_type = get_token()) != NAMES) in compile() 298 int token_type; in do_entry() local 311 for (token_type = get_token(); in do_entry() 312 token_type != EOF && token_type != NAMES; in do_entry() [all …]
|