Lines Matching refs:corpus

22 #include "abg-corpus.h"
33 #include "abg-corpus-priv.h"
49 /// Constructor of @ref corpus::exported_decls_builder.
75 corpus::exported_decls_builder
95 /// This vector is shared with with the @ref corpus. It's where the
99 const corpus::functions&
100 corpus::exported_decls_builder::exported_functions() const
104 /// This vector is shared with with the @ref corpus. It's where the
108 corpus::functions&
109 corpus::exported_decls_builder::exported_functions()
113 /// This vector is shared with with the @ref corpus. It's where the
117 const corpus::variables&
118 corpus::exported_decls_builder::exported_variables() const
122 /// This vector is shared with with the @ref corpus. It's where the
126 corpus::variables&
127 corpus::exported_decls_builder::exported_variables()
136 corpus::exported_decls_builder::maybe_add_fn_to_exported_fns(const function_decl* fn)
159 corpus::exported_decls_builder::maybe_add_var_to_exported_vars(const var_decl* var)
176 // </corpus::exported_decls_builder>
292 // <corpus stuff>
296 corpus::priv::get_types()
301 corpus::priv::get_types() const
304 /// Return a sorted vector of function symbols for this corpus.
312 corpus::priv::get_sorted_fun_symbols() const
323 /// Return a map from name to function symbol for this corpus.
331 corpus::priv::get_fun_symbol_map() const
343 /// this corpus.
345 /// @return a vector of the function symbols undefined in this corpus,
348 corpus::priv::get_sorted_undefined_fun_symbols() const
363 /// Return a map from name to undefined function symbol for this corpus.
371 corpus::priv::get_undefined_fun_symbol_map() const
383 /// corpus::get_functions().
386 /// that is provided by corpus::get_sym_ids_of_fns_to_keep(). If a given
393 corpus::priv::get_unreferenced_function_symbols() const
437 /// Getter for the sorted vector of variable symbols for this corpus.
443 /// @return the sorted vector of variable symbols for this corpus.
445 corpus::priv::get_sorted_var_symbols() const
457 /// Return a map from name to variable symbol for this corpus.
465 corpus::priv::get_var_symbol_map() const
477 /// this corpus.
479 /// @return a vector of the variable symbols undefined in this corpus,
482 corpus::priv::get_sorted_undefined_var_symbols() const
497 /// Return a map from name to undefined variable symbol for this corpus.
505 corpus::priv::get_undefined_var_symbol_map() const
517 /// corpus::get_variables().
520 /// that is provided by corpus::get_sym_ids_of_vars_to_keep(). If a given
527 corpus::priv::get_unreferenced_variable_symbols() const
577 corpus::priv::get_public_types_pretty_representations()
588 /// Destructor of the @ref corpus::priv type.
589 corpus::priv::~priv()
594 /// Constructor of the @ref corpus type.
596 /// @param env the environment of the corpus.
598 /// @param path the path to the file containing the ABI corpus.
599 corpus::corpus(const ir::environment& env, const string& path)
605 corpus::~corpus() = default;
607 /// Getter of the enviroment of the corpus.
609 /// @return the environment of this corpus.
611 corpus::get_environment() const
618 /// corpus. If that happens, the library aborts.
622 corpus::add(const translation_unit_sptr& tu)
638 /// Return the list of translation units of the current corpus.
640 /// @return the list of translation units of the current corpus.
642 corpus::get_translation_units() const
652 corpus::find_translation_unit(const string &path) const
667 corpus::drop_translation_units()
674 corpus::get_types()
682 corpus::get_types() const
695 corpus::get_type_per_loc_map() const
700 /// current @ref corpus.
703 /// the current @ref corpus.
705 corpus::recording_types_reachable_from_public_interface_supported()
716 corpus::record_type_as_reachable_from_public_interfaces(const type_base& t)
728 /// corpus::record_type_as_reachable_from_public_interfaces.
734 corpus::type_is_reachable_from_public_interfaces(const type_base& t) const
754 corpus::get_types_not_reachable_from_public_interfaces() const
783 corpus::get_type_per_loc_map()
786 /// Getter of the group this corpus is a member of.
788 /// @return the group this corpus is a member of, or nil if it's not
791 corpus::get_group() const
794 /// Getter of the group this corpus belongs to.
796 /// @return the group this corpus belong to, or nil if it's not part
799 corpus::get_group()
802 /// Setter of the group this corpus belongs to.
806 corpus::set_group(corpus_group* g)
810 /// corpus.
815 corpus::init_format_version()
823 /// Getter for the origin of the corpus.
825 /// @return the origin of the corpus.
826 corpus::origin
827 corpus::get_origin() const
830 /// Setter for the origin of the corpus.
832 /// @param o the new origin for the corpus.
834 corpus::set_origin(origin o)
842 corpus::get_format_major_version_number() const
850 corpus::set_format_major_version_number(const string& maj)
859 corpus::get_format_minor_version_number() const
868 corpus::set_format_minor_version_number(const string& min)
871 /// Get the file path associated to the corpus file.
873 /// A subsequent call to corpus::read will deserialize the content of
875 /// corpus::write will serialize the translation units contained in
876 /// the corpus object into the on-disk file at this path.
878 /// @return the file path associated to the current corpus.
880 corpus::get_path() const
883 /// Set the file path associated to the corpus file.
885 /// A subsequent call to corpus::read will deserialize the content of
887 /// corpus::write will serialize the translation units contained in
888 /// the corpus object into the on-disk file at this path.
890 /// @param path the new file path to assciate to the current corpus.
892 corpus::set_path(const string& path)
895 /// Getter of the needed property of the corpus.
901 /// @return the vector of dependencies needed by this corpus.
903 corpus::get_needed() const
906 /// Setter of the needed property of the corpus.
913 /// corpus.
915 corpus::set_needed(const vector<string>& needed)
918 /// Getter for the soname property of the corpus.
924 /// @return the soname property of the corpus.
926 corpus::get_soname()
929 /// Setter for the soname property of the corpus.
935 /// @param soname the new soname property of the corpus.
937 corpus::set_soname(const string& soname)
940 /// Getter for the architecture name of the corpus.
948 corpus::get_architecture_name() const
951 /// Setter for the architecture name of the corpus.
959 corpus::set_architecture_name(const string& arch)
962 /// Tests if the corpus is empty from an ABI surface perspective. I.e. if all
970 /// @return true if the corpus contains no translation unit.
972 corpus::is_empty() const
993 /// Compare the current @ref corpus against another one.
995 /// @param other the other corpus to compare against.
997 /// @return true if the two corpus are equal, false otherwise.
999 corpus::operator==(const corpus& other) const
1018 corpus::set_symtab(symtab_reader::symtab_sptr symtab)
1025 corpus::get_symtab() const
1032 corpus::get_fun_symbol_map() const
1036 /// corpus.
1038 /// @return the map of function symbols not defined in this corpus.
1042 corpus::get_undefined_fun_symbol_map() const
1045 /// Return a sorted vector of function symbols for this corpus.
1053 corpus::get_sorted_fun_symbols() const
1057 /// this corpus.
1059 /// @return a vector of the function symbols undefined in this corpus,
1062 corpus::get_sorted_undefined_fun_symbols() const
1065 /// Getter for the sorted vector of variable symbols for this corpus.
1071 /// @return the sorted vector of variable symbols for this corpus.
1073 corpus::get_sorted_var_symbols() const
1077 /// this corpus.
1079 /// @return a vector of the variable symbols undefined in this corpus,
1082 corpus::get_sorted_undefined_var_symbols() const
1089 corpus::get_var_symbol_map() const
1093 /// corpus.
1095 /// @return the map of variable symbols not defined in this corpus.
1099 corpus::get_undefined_var_symbol_map() const
1108 corpus::lookup_function_symbol(const string& n) const
1123 /// This is a sub-routine for corpus::lookup_function_symbol() and
1124 /// corpus::lookup_variable_symbol().
1174 corpus::lookup_function_symbol(const string& symbol_name,
1195 corpus::lookup_function_symbol(const elf_symbol& symbol) const
1204 corpus::lookup_variable_symbol(const string& n) const
1225 corpus::lookup_variable_symbol(const string& symbol_name,
1246 corpus::lookup_variable_symbol(const elf_symbol& symbol) const
1249 /// Return the functions public decl table of the current corpus.
1252 /// and member functions found in the current corpus.
1258 /// corpus::get_regex_patterns_of_fns_to_suppress().
1263 const corpus::functions&
1264 corpus::get_functions() const
1282 corpus::lookup_functions(const string& id) const
1292 /// Sort the set of functions exported by this corpus.
1295 /// the corpus for you should do it for you too.
1297 corpus::sort_functions()
1304 /// current corpus.
1308 /// corpus.
1314 /// corpus::get_regex_patterns_of_fns_to_suppress().
1318 const corpus::variables&
1319 corpus::get_variables() const
1322 /// Sort the set of variables exported by this corpus.
1325 /// the corpus for you should do it for you too.
1327 corpus::sort_variables()
1334 /// any function exported by the current corpus.
1336 /// When the corpus has been created from an ELF library or program,
1341 /// function exported by the current corpus.
1343 corpus::get_unreferenced_function_symbols() const
1347 /// any variable exported by the current corpus.
1349 /// When the corpus has been created from an ELF library or program,
1354 /// variable exported by the current corpus.
1356 corpus::get_unreferenced_variable_symbols() const
1365 corpus::get_regex_patterns_of_fns_to_suppress()
1374 corpus::get_regex_patterns_of_fns_to_suppress() const
1383 corpus::get_regex_patterns_of_vars_to_suppress()
1392 corpus::get_regex_patterns_of_vars_to_suppress() const
1402 corpus::get_regex_patterns_of_fns_to_keep()
1412 corpus::get_regex_patterns_of_fns_to_keep() const
1422 corpus::get_sym_ids_of_fns_to_keep()
1432 corpus::get_sym_ids_of_fns_to_keep() const
1442 corpus::get_regex_patterns_of_vars_to_keep()
1452 corpus::get_regex_patterns_of_vars_to_keep() const
1462 corpus::get_sym_ids_of_vars_to_keep()
1472 corpus::get_sym_ids_of_vars_to_keep() const
1479 corpus::maybe_drop_some_exported_decls()
1513 /// exported decls, right at the place where the corpus expects it,
1517 /// corpus::exported_decls_builder that is responsible for determine
1519 corpus::exported_decls_builder_sptr
1520 corpus::get_exported_decls_builder() const
1537 /// Bitwise | operator for the corpus::origin type.
1544 corpus::origin
1545 operator|(corpus::origin l, corpus::origin r)
1547 return static_cast<corpus::origin>
1551 /// Bitwise |= operator for the corpus::origin type.
1558 corpus::origin
1559 operator|=(corpus::origin &l, corpus::origin r)
1565 /// Bitwise & operator for the corpus::origin type.
1572 corpus::origin
1573 operator&(corpus::origin l, corpus::origin r)
1575 return static_cast<corpus::origin>
1579 /// Bitwise &= operator for the corpus::origin type.
1586 corpus::origin
1587 operator&=(corpus::origin &l, corpus::origin r)
1593 // </corpus stuff>
1622 /// Add symbols to the set of corpus group function symbols that are
1644 /// Add symbols to the set of corpus group variable symbols that are
1671 /// @param path the path to the file represented by the corpus group.
1673 : corpus(env, path), priv_(new priv)
1680 /// Add a new corpus to the current instance of @ref corpus_group.
1682 /// @param corp the new corpus to add.
1696 std::cerr << "corpus '" << corp->get_path() << "'"
1706 /// corpus to the unreferenced symbols of the current corpus group.
1719 /// Getter of the first corpus added to this Group.
1721 /// @return the first corpus added to this Group.
1726 /// Getter of the first corpus added to this Group.
1728 /// @return the first corpus added to this Group.
1737 /// Test if the current corpus group is empty.
1739 /// @return true iff the current corpus group is empty.
1744 /// Get the functions exported by the corpora of the current corpus
1748 /// contained in the corpus group and caches the functions they exported.
1753 const corpus::functions&
1762 for (corpus::functions::const_iterator f = c->get_functions().begin();
1784 /// corpus group.
1787 /// contained in the corpus group and caches the variables they
1791 const corpus::variables&
1800 for (corpus::variables::const_iterator v = c->get_variables().begin();
1920 /// from all the corpora of the current corpus group.
1923 /// copora of this corpus group and caches the unreferenced symbols
1963 /// from all the corpora of the current corpus group.
1966 /// copora of this corpus group and caches the unreferenced symbols
2006 /// interfaces of a given corpus group.