Lines Matching refs:name_
31 if (scopes_->current_var()->lookup(decl->id_->name_, SCOPE_LOCAL) == NULL) { in variable_exists()
40 fprintf(stderr, "redeclaration of variable %s", decl->id_->name_.c_str()); in variable_add()
44 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
53 fprintf(stderr, "redeclaration of variable %s", decl->id_->name_.c_str()); in variable_add()
57 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
68 id->prepend_dot(decl->id_->name_); in variable_add()
79 fprintf(stderr, "ccpg: warning: redeclaration of variable '%s'\n", decl->id_->name_.c_str()); in variable_add()
83 scopes_->current_var()->add(decl->id_->name_, decl); in variable_add()
116 if (state->find_sub(id2->name_) != state->subs_.end()) { in state_add()
129 if (scopes_->top_table()->lookup(decl->id_->name_, search_local) == NULL) { in table_exists()
141 fprintf(stderr, "redeclaration of table %s\n", id->name_.c_str()); in table_add()
144 scopes_->top_table()->add(id->name_, table); in table_add()
150 if (scopes_->top_struct()->lookup(type->name_, SCOPE_LOCAL) != NULL) { in struct_add()
151 fprintf(stderr, "redeclaration of struct %s\n", type->name_.c_str()); in struct_add()
170 scopes_->top_struct()->add(type->name_, struct_decl); in struct_add()
195 if (scopes_->top_func()->lookup(decl->id_->name_, SCOPE_LOCAL)) { in func_add()
196 fprintf(stderr, "redeclaration of func %s\n", id->name_.c_str()); in func_add()
208 scopes_->top_func()->add(id->name_, decl); in func_add()