Home
last modified time | relevance | path

Searched refs:token_type (Results 1 – 25 of 42) sorted by relevance

12

/illumos-gate/usr/src/tools/smatch/src/
H A Dsmatch_project.c84 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()
115 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros()
140 if (token_type(token) != TOKEN_STREAMBEGIN) 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()
173 if (token_type(token) != TOKEN_IDENT) in register_silenced_functions()
198 if (token_type(token) != TOKEN_STREAMBEGIN) in register_no_inline_functions()
[all …]
H A Dcheck_wrong_size_arg.c54 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 Dpre-process.c284 switch (token_type(next)) { in collect_arg()
502 enum token_type t1 = token_type(left), t2 = token_type(right); in combine()
583 token_type(left) = res; in merge()
589 token_type(left) = res; in merge()
604 token_type(alloc) = token_type(token); in dup_token()
663 switch (token_type(body)) { in substitute()
1151 if (token_type(t1) != token_type(t2)) in token_different()
1154 switch (token_type(t1)) { in token_different()
1336 token_type(token) = type; in try_arg()
1455 switch (token_type(token)) { in parse_expansion()
[all …]
H A Dcheck_unreachable.c90 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 Dcheck_memcpy_overflow.c291 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 Dcheck_dma_on_stack.c61 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 Dcheck_freeing_devm.c52 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 Dsmatch_ignore.c90 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 Dsmatch_expressions.c192 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 Dcheck_dev_queue_xmit.c108 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 Dtokenize.c191 switch (token_type(token)) { in show_token()
212 token_type(token) - TOKEN_CHAR, 0, '\''); in show_token()
252 switch (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()
625 token_type(token) = type + len; in eat_string()
629 token_type(token) = type; in eat_string()
785 token_type(token) = TOKEN_SPECIAL; in get_one_special()
906 token_type(token) = TOKEN_IDENT; in built_in_token()
947 token_type(token) = TOKEN_IDENT; in get_one_identifier()
[all …]
H A Dcheck_return.c44 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 Dcheck_rosenberg.c349 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 Dcheck_bit_shift.c97 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 Dcheck_deref.c261 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 Dcheck_indenting.c79 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 Dsmatch_param_cleared.c118 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 Dcheck_held_dev.c109 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 Dsmatch_function_hashtable.h95 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 Dcheck_sizeof.c136 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 Dcheck_macro_side_effects.c146 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 Dchar.c73 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 Dexpression.c215 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 Dcheck_unwind.c164 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 Dtic_parse.c185 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()
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()
330 if (token_type != CANCEL && in do_entry()
334 switch (token_type) { in do_entry()
378 return (token_type); in do_entry()
[all …]

12