Lines Matching refs:stmt

24 static int in_ignored_macro(struct statement *stmt)  in in_ignored_macro()  argument
29 macro = get_macro_name(stmt->pos); in in_ignored_macro()
40 static int missing_curly_braces(struct statement *stmt) in missing_curly_braces() argument
44 if (stmt->pos.pos == __prev_stmt->pos.pos) in missing_curly_braces()
61 if (stmt->pos.pos != inside_pos) in missing_curly_braces()
68 static int prev_lines_say_endif(struct statement *stmt) in prev_lines_say_endif() argument
71 struct position pos = stmt->pos; in prev_lines_say_endif()
87 static int is_pre_or_post_statement(struct statement *stmt) in is_pre_or_post_statement() argument
89 if (!stmt->parent) in is_pre_or_post_statement()
91 if (stmt->parent->type != STMT_ITERATOR) in is_pre_or_post_statement()
93 if (stmt->parent->iterator_pre_statement == stmt || in is_pre_or_post_statement()
94 stmt->parent->iterator_post_statement == stmt) in is_pre_or_post_statement()
113 static void match_stmt(struct statement *stmt) in match_stmt() argument
115 if (stmt != __cur_stmt) in match_stmt()
120 if (prev_lines_say_endif(stmt)) in match_stmt()
123 if (is_pre_or_post_statement(stmt)) in match_stmt()
126 if (stmt->type == STMT_EXPRESSION && !stmt->expression) in match_stmt()
142 if (stmt->type == STMT_CASE) { in match_stmt()
144 __next_stmt->pos.line == stmt->case_statement->pos.line) in match_stmt()
148 if (stmt->type == STMT_LABEL) { in match_stmt()
150 __next_stmt->pos.line == stmt->label_statement->pos.line) in match_stmt()
155 if (missing_curly_braces(stmt)) in match_stmt()
158 if (stmt->pos.line == __prev_stmt->pos.line) { in match_stmt()
160 ignore_prev_inline = stmt->pos; in match_stmt()
162 ignore_prev = stmt->pos; in match_stmt()
165 if (stmt->pos.pos == __prev_stmt->pos.pos) in match_stmt()
169 if (stmt->type == STMT_GOTO && stmt->goto_label && in match_stmt()
170 stmt->goto_label->type == SYM_NODE && in match_stmt()
171 strcmp(stmt->goto_label->ident->name, "break") == 0) { in match_stmt()
173 (stmt->pos.line == __next_stmt->pos.line || in match_stmt()
174 stmt->pos.pos == __next_stmt->pos.pos)) in match_stmt()
189 if (in_ignored_macro(stmt)) in match_stmt()
192 if (stmt->pos.pos == orig_pos) { in match_stmt()