Lines Matching refs:env

247   const environment& env = left.get_environment();
248 env.priv_->push_composite_type_comparison_operands(&left, &right);
268 const environment& env = left.get_environment();
269 env.priv_->pop_composite_type_comparison_operands(&left, &right);
331 const environment& env = r.get_environment();
332 if (env.do_on_the_fly_canonicalization())
333 return env.priv_->mark_dependant_types_compared_until(&r);
838 const environment&env = l->get_environment();
839 if (env.priv_->use_canonical_type_comparison_)
1023 const environment& env = l.get_environment();
1024 if (env.do_on_the_fly_canonicalization())
1033 || env.priv_->is_recursive_type(&r))
1036 && !env.priv_->right_type_comp_operands_.empty())
1041 env.priv_->add_to_types_with_non_confirmed_propagated_ct(is_type(&r));
1043 else if (value == true && env.priv_->right_type_comp_operands_.empty())
1052 env.priv_->confirm_ct_propagation(&r);
1058 // env.prix_->types_with_non_confirmed_propagated_ct_
1061 env.priv_->cancel_ct_propagation(&r);
1073 && env.priv_->right_type_comp_operands_.empty()
1074 && !env.priv_->types_with_non_confirmed_propagated_ct_.empty())
1079 env.priv_->confirm_ct_propagation();
1129 /// @param env the environment of this translation unit. Please note
1138 translation_unit::translation_unit(const environment& env,
1141 : priv_(new priv(env))
1428 const environment& env = get_environment();
1440 ABG_ASSERT(&env == &e);
4760 const environment& env = get_environment();
4761 priv_->linkage_name_ = env.intern(m);
6538 const environment& env = type->get_environment();
6542 t = strip_typedef(type_or_void(ty->get_underlying_type(), env));
6546 env));
6557 env));
6567 env));
6664 const environment& env = t->get_environment();
6669 && env.is_void_type(u))
7508 scope_decl::scope_decl(const environment& env,
7512 : type_or_decl_base(env, ABSTRACT_SCOPE_DECL|ABSTRACT_DECL_BASE),
7513 decl_base(env, name, locus, /*mangled_name=*/name, vis),
7524 scope_decl::scope_decl(const environment& env, location& l)
7525 : type_or_decl_base(env, ABSTRACT_SCOPE_DECL|ABSTRACT_DECL_BASE),
7526 decl_base(env, "", l),
8520 const environment&env = d->get_environment();
8525 env.intern(tools_utils::get_anonymous_struct_internal_name_prefix());
8528 env.intern(tools_utils::get_anonymous_union_internal_name_prefix());
8531 env.intern(tools_utils::get_anonymous_enum_internal_name_prefix());
8607 const environment&env = d->get_environment();
8608 return env.intern(get_internal_integral_type_name(t));
8649 const environment& env = pointed_to_type.get_environment();
8653 return env.intern(tn);
8672 const environment& env = pointed_to_type.get_environment();
8680 return env.intern(name);
8702 const environment& env = underlying_type->get_environment();
8732 return env.intern(name);
8795 const environment& env = fn_type.get_environment();
8815 return env.intern(o.str());
8876 const environment& env = fn_type.get_environment();
8911 return env.intern(o.str());
10997 const environment& env = tu.get_environment();
10999 interned_string s = env.intern(type_name);
11019 const environment& env = tu.get_environment();
11020 interned_string s = env.intern(fqn);
11074 const environment& env = tu.get_environment();
11075 interned_string s = env.intern(fqn);
11106 const environment& env = corp.get_environment();
11107 return lookup_union_type_per_location(env.intern(loc), corp);
11142 const environment& env = tu.get_environment();
11143 interned_string s = env.intern(type_name);
11182 const environment& env = tu.get_environment();
11183 interned_string s = env.intern(type_name);
11269 const environment& env = tu.get_environment();
11270 interned_string s = env.intern(type_name);
11452 const environment&env = tu.get_environment();
11453 interned_string ifqn = env.intern(fqn);
12235 const environment& env = corp.get_environment();
12236 return lookup_basic_type_per_location(env.intern(loc), corp);
12410 const environment& env = corp.get_environment();
12411 return lookup_class_type_per_location(env.intern(loc), corp);
12576 const environment& env = corp.get_environment();
12577 return lookup_enum_type_per_location(env.intern(loc), corp);
12671 const environment& env = corp.get_environment();
12672 return lookup_typedef_type_per_location(env.intern(loc), corp);
13821 const environment& env = tu.get_environment();
13825 if (!return_type || env.is_void_type(return_type))
13826 result_return_type = env.get_void_type();
13915 /// @param env the environment to use. If NULL, just abort the
13920 type_or_void(const type_base_sptr t, const environment& env)
13927 r = type_base_sptr(env.get_void_type());
14084 const environment&env = canonical_type->get_environment();
14085 if (env.debug_type_canonicalization_is_on())
14088 env.priv_->use_canonical_type_comparison_ = false;
14090 env.priv_->use_canonical_type_comparison_ = true;
14133 environment& env = const_cast<environment&>(t->get_environment());
14144 (odr_is_relevant(*t) || env.decl_only_class_equals_definition());
14191 env.get_canonical_types_map();
14232 env.decl_only_class_equals_definition();
14233 env.do_on_the_fly_canonicalization(true);
14236 env.decl_only_class_equals_definition(false);
14237 env.priv_->allow_type_comparison_results_caching(true);
14243 env.priv_->allow_type_comparison_results_caching(false);
14244 env.do_on_the_fly_canonicalization(false);
14245 env.decl_only_class_equals_definition
14254 if (env.self_comparison_debug_is_on())
14259 env.get_self_comparison_debug_inputs(corp1, corp2);
14270 if (!env.priv_->
14288 string type_id = env.get_type_id_from_pointer(ptr_val);
15044 /// @param env the environment we are operating from.
15058 type_decl::type_decl(const environment& env,
15066 : type_or_decl_base(env,
15070 decl_base(env, name, locus, linkage_name, vis),
15071 type_base(env, size_in_bits, alignment_in_bits)
15243 const environment& env = get_environment();
15253 env.intern(get_internal_integral_type_name(this));
15259 env.intern(get_internal_integral_type_name(this));
15325 /// @param env the environment we are operating from.
15336 scope_type_decl::scope_type_decl(const environment& env,
15342 : type_or_decl_base(env,
15346 decl_base(env, name, locus, "", vis),
15347 type_base(env, size_in_bits, alignment_in_bits),
15348 scope_decl(env, name, locus)
15473 namespace_decl::namespace_decl(const environment& env,
15483 : type_or_decl_base(env,
15487 decl_base(env, name, locus, "", vis),
15488 scope_decl(env, name, locus)
15695 /// @param env the environment of the type.
15700 qualified_type_def::qualified_type_def(const environment& env,
15703 : type_or_decl_base(env,
15707 type_base(env, /*size_in_bits=*/0,
15709 decl_base(env, "", locus, ""),
15715 interned_string name = env.intern("void");
15876 const environment& env = get_environment();
15891 env.intern(build_name(true, /*internal=*/true));
15898 (env.intern(build_name(true, /*internal=*/false)));
15910 env.intern(build_name(/*qualified=*/true,
15918 (env.intern(build_name(/*qualified=*/true,
16163 const environment& env = pointed_to->get_environment();
16166 set_name(env.intern(name));
16176 /// @param env the environment of the type.
16183 pointer_type_def::pointer_type_def(const environment& env, size_t size_in_bits,
16186 : type_or_decl_base(env,
16190 type_base(env, size_in_bits, alignment_in_bits),
16191 decl_base(env, "", locus, ""),
16196 set_name(env.intern(name));
16211 const environment& env = t->get_environment();
16214 set_name(env.intern(name));
16529 const environment& env = pointed_to->get_environment();
16530 set_name(env.intern(name));
16547 /// @param env the environment of the type.
16557 reference_type_def::reference_type_def(const environment& env, bool lvalue,
16561 : type_or_decl_base(env,
16565 type_base(env, size_in_bits, alignment_in_bits),
16566 decl_base(env, "", locus, ""),
16574 set_name(env.intern(name));
16575 pointed_to_type_ = type_base_wptr(env.get_void_type());
16599 const environment& env = pto->get_environment();
16600 set_name(env.intern(name));
16964 /// @param env the environment this type was created from.
16976 array_type_def::subrange_type::subrange_type(const environment& env,
16983 : type_or_decl_base(env, ABSTRACT_TYPE_BASE | ABSTRACT_DECL_BASE),
16984 type_base(env,
16988 decl_base(env, name, loc, ""),
16996 /// @param env the environment this type is being created in.
17008 array_type_def::subrange_type::subrange_type(const environment& env,
17014 : type_or_decl_base(env, ABSTRACT_TYPE_BASE | ABSTRACT_DECL_BASE),
17015 type_base(env,
17018 decl_base(env, name, loc, ""),
17026 /// @param env the environment this type is being created from.
17036 array_type_def::subrange_type::subrange_type(const environment& env,
17041 : type_or_decl_base(env, ABSTRACT_TYPE_BASE | ABSTRACT_DECL_BASE),
17042 type_base(env, upper_bound.get_unsigned_value(), 0),
17043 decl_base(env, name, loc, ""),
17386 /// @param env the environment of the array type.
17391 array_type_def::array_type_def(const environment& env,
17394 : type_or_decl_base(env,
17398 type_base(env, 0, 0),
17399 decl_base(env, locus),
17727 const environment& env = get_environment();
17736 env.intern(get_type_representation(*this, /*internal=*/true));
17742 env.intern(get_type_representation(*this, /*internal=*/true));
17751 set_qualified_name(env.intern(get_type_representation
17757 set_temporary_qualified_name(env.intern(get_type_representation
18370 /// @param env the environment we are operating from.
18545 /// @param env the environment of the current typedef.
18553 const environment& env,
18557 : type_or_decl_base(env,
18561 type_base(env, /*size_in_bits=*/0,
18563 decl_base(env, name, locus, mangled_name, vis),
18984 const environment& env = l.get_environment();
18986 const_cast<var_decl&>(l).set_qualified_name(env.intern(""));
18987 const_cast<var_decl&>(r).set_qualified_name(env.intern(""));
19065 const environment& env = get_type()->get_environment();
19066 priv_->id_ = env.intern(repr);
19068 priv_->id_ = env.intern(priv_->id_ + "{" + sym_str + "}");
19352 /// @param env the environment we are operating from.
19357 function_type::function_type(const environment& env,
19360 : type_or_decl_base(env, FUNCTION_TYPE | ABSTRACT_TYPE_BASE),
19361 type_base(env, size_in_bits, alignment_in_bits),
19924 /// @param env the environment we are operating from.
19929 method_type::method_type(const environment& env,
19932 : type_or_decl_base(env, METHOD_TYPE | ABSTRACT_TYPE_BASE | FUNCTION_TYPE),
19933 type_base(env, size_in_bits, alignment_in_bits),
19934 function_type(env, size_in_bits, alignment_in_bits),
20623 const environment& env = get_type()->get_environment();
20630 priv_->id_ = env.intern(get_name() + "/" + s->get_id_string());
20633 priv_->id_ = env.intern(s->get_id_string());
20636 priv_->id_= env.intern(get_linkage_name());
20638 priv_->id_ = env.intern(get_pretty_representation());
20812 const environment& env = get_environment();
20816 if (get_variadic_marker() || env.is_variadic_parameter_type(t))
20823 return env.intern(str);
20850 const environment& env = get_environment();
20856 return env.intern(o.str());
21044 const environment& env = get_environment();
21050 else if (env.is_variadic_parameter_type(t))
21070 /// @param env the environment we are operating from.
21092 class_or_union::class_or_union(const environment& env, const string& name,
21098 : type_or_decl_base(env,
21103 decl_base(env, name, locus, name, vis),
21104 type_base(env, size_in_bits, align_in_bits),
21105 scope_type_decl(env, name, size_in_bits, align_in_bits, locus, vis),
21129 /// @param env the environment we are operating from.
21142 class_or_union::class_or_union(const environment& env, const string& name,
21145 : type_or_decl_base(env,
21150 decl_base(env, name, locus, name, vis),
21151 type_base(env, size_in_bits, align_in_bits),
21152 scope_type_decl(env, name, size_in_bits, align_in_bits, locus, vis),
21158 /// @param env the @ref environment we are operating from.
21164 class_or_union::class_or_union(const environment& env, const string& name,
21166 : type_or_decl_base(env,
21171 decl_base(env, name, location(), name),
21172 type_base(env, 0, 0),
21173 scope_type_decl(env, name, 0, 0, location()),
22293 const environment& env = lhs_type.get_environment();
22295 if (!env.priv_->use_canonical_type_comparison_)
22299 if (env.do_on_the_fly_canonicalization())
22302 if (env.priv_->propagate_ct(lhs_type, rhs_type))
22338 /// @param env the environment we are operating from.
22362 class_decl::class_decl(const environment& env, const string& name,
22369 : type_or_decl_base(env,
22375 decl_base(env, name, locus, name, vis),
22376 type_base(env, size_in_bits, align_in_bits),
22377 class_or_union(env, name, size_in_bits, align_in_bits,
22386 /// @param env the environment we are operating from.
22413 class_decl::class_decl(const environment& env, const string& name,
22419 : type_or_decl_base(env,
22425 decl_base(env, name, locus,
22435 type_base(env, size_in_bits, align_in_bits),
22436 class_or_union(env, name, size_in_bits, align_in_bits,
22446 /// @param env the environment we are operating from.
22459 class_decl::class_decl(const environment& env, const string& name,
22463 : type_or_decl_base(env,
22469 decl_base(env, name, locus, name, vis),
22470 type_base(env, size_in_bits, align_in_bits),
22471 class_or_union(env, name, size_in_bits, align_in_bits,
22480 /// @param env the environment we are operating from.
22496 class_decl:: class_decl(const environment& env, const string& name,
22500 : type_or_decl_base(env,
22506 decl_base(env, name, locus,
22516 type_base(env, size_in_bits, align_in_bits),
22517 class_or_union(env, name, size_in_bits, align_in_bits,
22528 /// @param env the environment we are operating from.
22534 class_decl::class_decl(const environment& env, const string& name,
22536 : type_or_decl_base(env,
22542 decl_base(env, name, location(), name),
22543 type_base(env, 0, 0),
22544 class_or_union(env, name, is_declaration_only),
23490 const environment& env = t.get_environment();
23491 if (env.do_on_the_fly_canonicalization())
23495 env.priv_->remove_from_types_with_non_confirmed_propagated_ct(&t);
24311 /// @param env the @ref environment we are operating from.
24326 union_decl::union_decl(const environment& env, const string& name,
24330 : type_or_decl_base(env,
24334 decl_base(env, name, locus, name, vis),
24335 type_base(env, size_in_bits, 0),
24336 class_or_union(env, name, size_in_bits, 0,
24344 /// @param env the @ref environment we are operating from.
24362 union_decl::union_decl(const environment& env, const string& name,
24367 : type_or_decl_base(env,
24371 decl_base(env, name, locus,
24381 type_base(env, size_in_bits, 0),
24382 class_or_union(env, name, size_in_bits, 0,
24391 /// @param env the @ref environment we are operating from.
24400 union_decl::union_decl(const environment& env, const string& name,
24403 : type_or_decl_base(env,
24409 decl_base(env, name, locus, name, vis),
24410 type_base(env, size_in_bits, 0),
24411 class_or_union(env, name, size_in_bits,
24419 /// @param env the @ref environment we are operating from.
24431 union_decl::union_decl(const environment& env, const string& name,
24434 : type_or_decl_base(env,
24440 decl_base(env, name, locus,
24450 type_base(env, size_in_bits, 0),
24451 class_or_union(env, name, size_in_bits,
24460 /// @param env the @ref environment we are operating from.
24466 union_decl::union_decl(const environment& env,
24469 : type_or_decl_base(env,
24475 decl_base(env, name, location(), name),
24476 type_base(env, 0, 0),
24477 class_or_union(env, name, is_declaration_only)
24803 /// @param env the environment we are operating from.
24811 template_decl::template_decl(const environment& env,
24815 : type_or_decl_base(env, TEMPLATE_DECL | ABSTRACT_DECL_BASE),
24816 decl_base(env, name, locus, /*mangled_name=*/"", vis),
25281 /// @param env the environment we are operating from.
25291 function_tdecl::function_tdecl(const environment& env,
25295 : type_or_decl_base(env,
25299 decl_base(env, "", locus, "", vis),
25300 template_decl(env, "", locus, vis),
25301 scope_decl(env, "", locus),
25458 /// @param env the environment we are operating from.
25465 class_tdecl::class_tdecl(const environment& env,
25468 : type_or_decl_base(env,
25472 decl_base(env, "", locus, "", vis),
25473 template_decl(env, "", locus, vis),
25474 scope_decl(env, "", locus),
25711 const environment& env = t->get_environment();
25712 env.priv_->extra_live_types_.push_back(t);
25841 const environment& env = t->get_environment();
25843 || env.is_void_type(t)
25844 || env.is_variadic_parameter_type(t));
26742 const abigail::ir::environment& env = d->get_environment();
26750 env.intern(d->priv_->qualified_parent_name_ + "::" + d->get_name());
26759 env.intern(parent->get_name() + "::" + d->get_name());
26762 env.intern(d->get_name());