Lines Matching defs:const

68   const environment& m_env;
72 get_new_id() const
76 id_manager(const environment& env)
80 const environment&
81 get_environment() const
86 get_id() const
90 const environment& env = get_environment();
99 get_id_with_prefix(const string& prefix) const
103 const environment& env = get_environment();
129 operator() (const type_base* p) const
165 operator()(const type_base *l, const type_base *r) const
175 typedef std::unordered_set<const type_base*> type_ptr_set_type;
181 typedef std::unordered_set<const type_base*,
190 typedef std::unordered_map<const type_base*, interned_string,
208 const environment& m_env;
244 write_context(const environment& env, ostream& os)
263 const environment&
264 get_environment() const
267 const config&
268 get_config() const
387 get_write_parameter_names() const
404 get_show_locs() const
423 get_type_id_style() const
439 const id_manager&
440 get_id_manager() const
449 type_has_existing_id(type_base_sptr type) const
454 type_has_existing_id(type_base* type) const
465 get_id_for_type(const type_base_sptr& t)
473 get_id_for_type(type_base* type) const
504 get_id_for_fn_tmpl(const function_tdecl_sptr& f)
517 get_id_for_class_tmpl(const class_tdecl_sptr& c)
543 const type_ptr_set_type&
544 get_referenced_types() const
551 const fn_type_ptr_set_type&
552 get_referenced_function_types() const
559 has_non_emitted_referenced_types() const
561 for (const auto t : get_referenced_types())
574 record_type_as_referenced(const type_base_sptr& type)
593 type_is_referenced(const type_base_sptr& type)
629 operator()(const type_base* l, const type_base* r) const
686 operator()(const type_base_sptr& l, const type_base_sptr& r) const
722 sort_types(const istring_type_base_wptr_map_type& types,
744 sort_types(const vector<function_type_sptr>& types,
759 record_type_as_emitted(const type_base_sptr &t)
766 record_type_as_emitted(const type_base* t)
779 type_is_emitted(const type_base* t) const
792 type_is_emitted(const type_base_sptr& t) const
802 decl_is_emitted(const decl_base_sptr& decl) const
814 record_decl_as_emitted(const decl_base_sptr& decl)
824 const type_ptr_set_type&
825 get_emitted_types_set() const
837 const string_elf_symbol_sptr_map_type&
838 get_fun_symbol_map() const
847 static void write_location(const location&, write_context&);
848 static void write_location(const decl_base_sptr&, write_context&);
849 static bool write_visibility(const decl_base_sptr&, ostream&);
850 static bool write_binding(const decl_base_sptr&, ostream&);
851 static bool write_is_artificial(const decl_base_sptr&, ostream&);
852 static bool write_is_non_reachable(const type_base_sptr&, ostream&);
853 static bool write_tracking_non_reachable_types(const corpus_sptr&, ostream&);
854 static void write_array_size_and_alignment(const array_type_def_sptr,
856 static void write_size_and_alignment(const type_base_sptr, ostream&,
866 static bool write_elf_symbol_aliases(const elf_symbol&, ostream&);
867 static bool write_elf_symbol_reference(const elf_symbol&, ostream&);
868 static bool write_elf_symbol_reference(const elf_symbol_sptr, ostream&);
869 static void write_is_declaration_only(const decl_base_sptr&, ostream&);
870 static void write_is_struct(const class_decl_sptr&, ostream&);
871 static void write_is_anonymous(const decl_base_sptr&, ostream&);
872 static void write_naming_typedef(const decl_base_sptr&, write_context&);
873 static bool write_decl(const decl_base_sptr&, write_context&, unsigned);
874 static void write_decl_in_scope(const decl_base_sptr&,
876 static bool write_type_decl(const type_decl_sptr&, write_context&, unsigned);
877 static bool write_namespace_decl(const namespace_decl_sptr&,
879 static bool write_qualified_type_def(const qualified_type_def_sptr&,
881 static bool write_pointer_type_def(const pointer_type_def_sptr&,
883 static bool write_reference_type_def(const reference_type_def_sptr&,
885 static bool write_array_type_def(const array_type_def_sptr&,
887 static bool write_enum_type_decl(const enum_type_decl_sptr&,
889 static bool write_typedef_decl(const typedef_decl_sptr&,
891 static bool write_elf_symbol(const elf_symbol_sptr&,
893 static bool write_elf_symbols_table(const elf_symbols&,
895 static bool write_var_decl(const var_decl_sptr&,
897 static bool write_function_decl(const function_decl_sptr&,
899 static bool write_function_type(const function_type_sptr&,
901 static bool write_member_type_opening_tag(const type_base_sptr&,
903 static bool write_member_type(const type_base_sptr&,
905 static bool write_class_decl_opening_tag(const class_decl_sptr&, const string&,
907 static bool write_class_decl(const class_decl_sptr&,
909 static bool write_union_decl_opening_tag(const union_decl_sptr&, const string&,
911 static bool write_union_decl(const union_decl_sptr&, const string&,
913 static bool write_union_decl(const union_decl_sptr&, write_context&, unsigned);
915 (const shared_ptr<type_tparameter>, write_context&, unsigned);
917 (const shared_ptr<non_type_tparameter>, write_context&, unsigned);
919 (const shared_ptr<template_tparameter>, write_context&, unsigned);
921 (const shared_ptr<type_composition>, write_context&, unsigned);
922 static bool write_template_parameter(const shared_ptr<template_parameter>,
924 static void write_template_parameters(const shared_ptr<template_decl>,
927 (const shared_ptr<function_tdecl>,
930 (const shared_ptr<class_tdecl>,
995 annotate(const T& decl,
1028 annotate(const elf_symbol_sptr& sym,
1059 annotate(const typedef_decl_sptr& typedef_decl,
1095 annotate(const function_type_sptr& function_type,
1140 annotate(const function_decl_sptr& fn,
1190 annotate(const function_decl::parameter_sptr& parm,
1236 write_location(const location& loc, write_context& ctxt)
1267 write_location(const decl_base_sptr& decl,
1289 write_visibility(const shared_ptr<decl_base>& decl, ostream& o)
1329 write_binding(const shared_ptr<decl_base>& decl, ostream& o)
1379 write_is_artificial(const decl_base_sptr& decl, ostream& o)
1399 write_is_non_reachable(const type_base_sptr& t, ostream& o)
1425 write_tracking_non_reachable_types(const corpus_sptr& corpus,
1453 write_size_and_alignment(const shared_ptr<type_base> decl, ostream& o,
1470 write_array_size_and_alignment(const shared_ptr<array_type_def> decl, ostream& o)
1685 write_elf_symbol_aliases(const elf_symbol& sym, ostream& out)
1711 for (const auto& alias : aliases)
1733 write_elf_symbol_reference(const elf_symbol& sym, ostream& o)
1735 const elf_symbol* main = sym.get_main_symbol().get();
1736 const elf_symbol* alias = &sym;
1771 write_elf_symbol_reference(const elf_symbol_sptr sym, ostream& o)
1806 o << " const='yes'";
1816 write_is_declaration_only(const decl_base_sptr& d, ostream& o)
1829 write_is_struct(const class_decl_sptr& klass, ostream& o)
1842 write_is_anonymous(const decl_base_sptr& decl, ostream& o)
1855 write_naming_typedef(const decl_base_sptr& decl, write_context& ctxt)
1880 write_type(const type_base_sptr& type, write_context& ctxt, unsigned indent)
1920 write_decl(const decl_base_sptr& decl, write_context& ctxt, unsigned indent)
1969 write_decl_in_scope(const decl_base_sptr& decl,
1986 const config& c = ctxt.get_config();
2062 create_write_context(const environment& env,
2216 write_canonical_types_of_scope(const scope_decl &scope,
2218 const unsigned indent,
2221 const type_base_sptrs_type &canonical_types =
2253 referenced_type_should_be_emitted(const type_base *t,
2254 const write_context& ctxt,
2255 const translation_unit& tu,
2279 const translation_unit& tu,
2280 const unsigned indent,
2283 const config& c = ctxt.get_config();
2394 const translation_unit& tu,
2395 const unsigned indent,
2407 const config& c = ctxt.get_config();
2443 const declarations& decls = tu.get_global_scope()->get_sorted_member_decls();
2445 for (const decl_base_sptr& decl : decls)
2473 const vector<function_type_sptr>& t = tu.get_live_fn_types();
2516 write_type_decl(const type_decl_sptr& d, write_context& ctxt, unsigned indent)
2556 write_namespace_decl(const namespace_decl_sptr& decl,
2563 const config &c = ctxt.get_config();
2575 const declarations& d = decl->get_sorted_member_decls();
2615 write_qualified_type_def(const qualified_type_def_sptr& decl,
2616 const string& id,
2638 o << " const='yes'";
2668 write_qualified_type_def(const qualified_type_def_sptr& decl,
2691 write_pointer_type_def(const pointer_type_def_sptr& decl,
2692 const string& id,
2743 write_pointer_type_def(const pointer_type_def_sptr& decl,
2766 write_reference_type_def(const reference_type_def_sptr& decl,
2767 const string& id,
2825 write_reference_type_def(const reference_type_def_sptr& decl,
2840 write_array_subrange_type(const array_type_def::subrange_sptr& decl,
2914 write_array_type_def(const array_type_def_sptr& decl,
2915 const string& id,
2980 write_array_type_def(const array_type_def_sptr& decl,
3003 write_enum_type_decl(const enum_type_decl_sptr& d,
3004 const string& id,
3074 write_enum_type_decl(const enum_type_decl_sptr& decl,
3090 write_elf_symbol(const elf_symbol_sptr& sym,
3158 write_elf_symbols_table(const elf_symbols& syms,
3182 write_elf_needed(const vector<string>& needed,
3219 write_typedef_decl(const typedef_decl_sptr& decl,
3220 const string& id,
3265 write_typedef_decl(const typedef_decl_sptr& decl,
3283 write_var_decl(const var_decl_sptr& decl, write_context& ctxt,
3302 const string& linkage_name = decl->get_linkage_name();
3335 write_function_decl(const function_decl_sptr& decl, write_context& ctxt,
3434 write_function_type(const function_type_sptr& fn_type,
3538 write_class_decl_opening_tag(const class_decl_sptr& decl,
3539 const string& id,
3610 write_union_decl_opening_tag(const union_decl_sptr& decl,
3611 const string& id,
3671 write_class_decl(const class_decl_sptr& d,
3672 const string& id,
3689 const environment& env = ctxt.get_environment();
3932 write_class_decl(const class_decl_sptr& decl,
3947 write_union_decl(const union_decl_sptr& d,
3948 const string& id,
4078 write_union_decl(const union_decl_sptr& decl,
4093 write_member_type_opening_tag(const type_base_sptr& t,
4124 write_member_type(const type_base_sptr& t, write_context& ctxt, unsigned indent)
4169 write_type_tparameter(const type_tparameter_sptr decl,
4212 const shared_ptr<non_type_tparameter> decl,
4247 write_template_tparameter (const template_tparameter_sptr decl,
4296 (const shared_ptr<type_composition> decl,
4338 write_template_parameter(const shared_ptr<template_parameter> decl,
4361 write_template_parameters(const shared_ptr<template_decl> tmpl,
4383 write_function_tdecl(const shared_ptr<function_tdecl> decl,
4428 write_class_tdecl(const shared_ptr<class_tdecl> decl,
4465 const config& c = ctxt.get_config();
4489 const corpus_sptr& corpus,
4607 const corpus_group_sptr& group,
4664 dump(const decl_base_sptr d, std::ostream& o, const bool annotate)
4677 dump(const decl_base_sptr d, const bool annotate)
4688 dump(const type_base_sptr t, std::ostream& o, const bool annotate)
4697 dump(const type_base_sptr t, const bool annotate)
4708 dump(const var_decl_sptr v, std::ostream& o, const bool annotate)
4721 dump(const var_decl_sptr v, const bool annotate)
4732 dump(const translation_unit& t, std::ostream& o, const bool annotate)
4743 dump(const translation_unit& t, const bool annotate)
4754 dump(const translation_unit_sptr t, std::ostream& o, const bool annotate)
4766 dump(const translation_unit_sptr t, const bool annotate)
4778 dump_location(const location& l, ostream& o)
4794 dump_location(const location& l)
4804 dump_decl_location(const decl_base& d, ostream& o)
4812 dump_decl_location(const decl_base& d)
4820 dump_decl_location(const decl_base* d)
4831 dump_decl_location(const decl_base_sptr d)
4846 const type_base* type,
4907 for (const auto &type : ctxt.get_emitted_types_set())
4924 const string &file_path)