Lines Matching defs:corpus

30 #include "abg-corpus.h"
35 #include "abg-corpus-priv.h"
1293 /// Set the corpus this translation unit is a member of.
1295 /// Note that adding a translation unit to a @ref corpus automatically
1298 /// @param corpus the corpus.
1300 translation_unit::set_corpus(corpus* c)
1303 /// Get the corpus this translation unit is a member of.
1305 /// @return the parent corpus, or nil if this doesn't belong to any
1306 /// corpus yet.
1307 corpus*
1311 /// Get the corpus this translation unit is a member of.
1313 /// @return the parent corpus, or nil if this doesn't belong to any
1314 /// corpus yet.
1315 const corpus*
2135 /// led to the creation of the corpus this ELF symbol belongs to.
2144 /// led to the creation of the corpus this ELF symbol belongs to.
2457 /// @param syms a map of all the symbols of the corpus the current
3252 || (f->get_corpus()->get_origin() == corpus::NATIVE_XML_ORIGIN
3253 && s->get_corpus()->get_origin() == corpus::NATIVE_XML_ORIGIN))
3351 || (f->get_corpus()->get_origin() == corpus::NATIVE_XML_ORIGIN
3352 && s->get_corpus()->get_origin() == corpus::NATIVE_XML_ORIGIN))
3526 /// the library that creates ABI artifacts (e.g, read an abi corpus
3719 /// Setter of the corpus of the input corpus of the self comparison
3722 /// The first invocation of this function sets the first corpus of the
3724 /// sets the second corpus of the self comparison. That second corpus
3726 /// corpus.
3728 /// @param c the corpus of the input binary or the corpus of the
3745 /// @param first_corpus output parameter that is set to the corpus of
3746 /// the input corpus.
3748 /// @param second_corpus output parameter that is set to the corpus of
3749 /// the second corpus.
4222 /// Get the @ref corpus this ABI artifact belongs to.
4224 /// @return the corpus this ABI artifact belongs to, or nil if it
4226 corpus*
4236 /// Get the @ref corpus this ABI artifact belongs to.
4238 /// @return the corpus this ABI artifact belongs to, or nil if it
4240 const corpus*
11079 /// Lookup a union type in a given corpus, from its location.
11083 /// @param corp the corpus to look it from.
11087 lookup_union_type_per_location(const interned_string &loc, const corpus& corp)
11096 /// Lookup a union type in a given corpus, from its location.
11100 /// @param corp the corpus to look it from.
11104 lookup_union_type_per_location(const string& loc, const corpus& corp)
11479 /// enclosing translation unit or even ABI corpus because both the
11480 /// translation unit and the corpus have a map of type, indexed by
11642 /// enclosing translation unit or even ABI corpus because both the
11643 /// translation unit and the corpus have a map of type, indexed by
11664 /// enclosing translation unit or even ABI corpus because both the
11665 /// translation unit and the corpus have a map of type, indexed by
11735 /// enclosing translation unit or even ABI corpus because both the
11736 /// translation unit and the corpus have a map of type, indexed by
11771 /// translation unit or even ABI corpus in a more direct way, by using
11775 /// This is because both the translation unit and the corpus have a
11857 /// corpus.
11868 const corpus& abi_corpus)
11883 /// corpus.
11894 const corpus & abi_corpus)
11909 /// corpus.
11920 const corpus & abi_corpus)
11935 /// given ABI corpus.
11939 /// @param abi_corpus the ABI corpus which to look the type up in.
11944 const corpus & abi_corpus)
11959 /// given ABI corpus.
11964 /// @param abi_corpus the ABI corpus which to look the type up in.
11969 const corpus & abi_corpus)
11984 /// given ABI corpus.
11989 /// @param abi_corpus the ABI corpus which to look the type up in.
11994 const corpus & abi_corpus)
12009 /// given ABI corpus.
12014 /// @param abi_corpus the ABI corpus which to look the type up in.
12019 const corpus & abi_corpus)
12034 /// given ABI corpus.
12039 /// @param abi_corpus the ABI corpus which to look the type up in.
12044 const corpus & abi_corpus)
12059 /// a given ABI corpus.
12064 /// @param abi_corpus the ABI corpus which to look the type up in.
12069 const corpus & abi_corpus)
12084 /// ABI corpus.
12088 /// @param abi_corpus the ABI corpus which to look the type up in.
12093 const corpus& abi_corpus)
12107 /// Lookup a type from a given translation unit present in a give corpus.
12113 /// @param corp the corpus to consider.
12119 const corpus& corp)
12132 /// Look into an ABI corpus for a function type.
12135 /// corpus.
12137 /// @param corpus the ABI corpus into which to look for the function
12140 /// @return the function type found in the corpus.
12143 const corpus& corpus)
12149 if ((result = lookup_function_type(fn_t, corpus)))
12153 corpus.get_translation_units().begin();
12154 i != corpus.get_translation_units().end();
12163 /// Look into a given corpus to find a type which has the same
12166 /// If the per-corpus type map is non-empty (because the corpus allows
12168 /// per-corpus type map. Otherwise, the type is looked-up in each
12174 /// @param corp the ABI corpus to look into for the type.
12176 lookup_basic_type(const type_decl& t, const corpus& corp)
12179 /// Look into a given corpus to find a basic type which has a given
12182 /// If the per-corpus type map is non-empty (because the corpus allows
12184 /// per-corpus type map. Otherwise, the type is looked-up in each
12190 /// @param corp the corpus to look into.
12192 lookup_basic_type(const interned_string &qualified_name, const corpus& corp)
12205 /// Lookup a @ref type_decl type from a given corpus, by its location.
12209 /// @param corp the corpus to consider.
12214 const corpus &corp)
12225 /// Lookup a @ref type_decl type from a given corpus, by its location.
12229 /// @param corp the corpus to consider.
12233 lookup_basic_type_per_location(const string &loc, const corpus &corp)
12239 /// Look into a given corpus to find a basic type which has a given
12242 /// If the per-corpus type map is non-empty (because the corpus allows
12244 /// per-corpus type map. Otherwise, the type is looked-up in each
12250 /// @param corp the corpus to look into.
12252 lookup_basic_type(const string& qualified_name, const corpus& corp)
12258 /// Look into a given corpus to find a class type which has the same
12261 /// If the per-corpus type map is non-empty (because the corpus allows
12263 /// per-corpus type map. Otherwise, the type is looked-up in each
12269 /// @param corp the corpus to look into.
12271 lookup_class_type(const class_decl& t, const corpus& corp)
12277 /// Look into a given corpus to find a class type which has a given
12280 /// If the per-corpus type map is non-empty (because the corpus allows
12282 /// per-corpus type map. Otherwise, the type is looked-up in each
12287 /// @param corp the corpus to look into.
12289 lookup_class_type(const string& qualified_name, const corpus& corp)
12295 /// Look into a given corpus to find a class type which has a given
12298 /// If the per-corpus type map is non-empty (because the corpus allows
12300 /// per-corpus type map. Otherwise, the type is looked-up in each
12305 /// @param corp the corpus to look into.
12307 lookup_class_type(const interned_string& qualified_name, const corpus& corp)
12316 /// Look into a given corpus to find the class type*s* that have a
12321 /// @param corp the corpus to look into.
12325 lookup_class_types(const interned_string& qualified_name, const corpus& corp)
12332 /// Look into a given corpus to find the class type*s* that have a
12337 /// @param corp the corpus to look into.
12346 const corpus& corp,
12367 /// Look into a given corpus to find the class type*s* that have a
12372 /// @param corp the corpus to look into.
12376 lookup_class_types(const string& qualified_name, const corpus& corp)
12382 /// Look up a @ref class_decl from a given corpus by its location.
12386 /// @param corp the corpus to consider.
12391 const corpus& corp)
12400 /// Look up a @ref class_decl from a given corpus by its location.
12404 /// @param corp the corpus to consider.
12408 lookup_class_type_per_location(const string &loc, const corpus &corp)
12414 /// Look into a given corpus to find a union type which has a given
12417 /// If the per-corpus type map is non-empty (because the corpus allows
12419 /// per-corpus type map. Otherwise, the type is looked-up in each
12424 /// @param corp the corpus to look into.
12426 lookup_union_type(const interned_string& type_name, const corpus& corp)
12437 /// Look into a given corpus to find a union type which has a given
12440 /// If the per-corpus type map is non-empty (because the corpus allows
12442 /// per-corpus type map. Otherwise, the type is looked-up in each
12447 /// @param corp the corpus to look into.
12449 lookup_union_type(const string& type_name, const corpus& corp)
12455 /// Look into a given corpus to find an enum type which has the same
12458 /// If the per-corpus type map is non-empty (because the corpus allows
12460 /// per-corpus type map. Otherwise, the type is looked-up in each
12466 /// @param corp the corpus to look into.
12468 lookup_enum_type(const enum_type_decl& t, const corpus& corp)
12474 /// Look into a given corpus to find an enum type which has a given
12477 /// If the per-corpus type map is non-empty (because the corpus allows
12479 /// per-corpus type map. Otherwise, the type is looked-up in each
12485 /// @param corp the corpus to look into.
12487 lookup_enum_type(const string& qualified_name, const corpus& corp)
12493 /// Look into a given corpus to find an enum type which has a given
12496 /// If the per-corpus type map is non-empty (because the corpus allows
12498 /// per-corpus type map. Otherwise, the type is looked-up in each
12504 /// @param corp the corpus to look into.
12506 lookup_enum_type(const interned_string& qualified_name, const corpus& corp)
12518 /// Look into a given corpus to find the enum type*s* that have a
12523 /// @param corp the corpus to look into.
12527 lookup_enum_types(const interned_string& qualified_name, const corpus& corp)
12534 /// Look into a given corpus to find the enum type*s* that have a
12539 /// @param corp the corpus to look into.
12543 lookup_enum_types(const string& qualified_name, const corpus& corp)
12549 /// Look up an @ref enum_type_decl from a given corpus, by its location.
12553 /// @param corp the corpus to look the type from.
12557 lookup_enum_type_per_location(const interned_string &loc, const corpus& corp)
12566 /// Look up an @ref enum_type_decl from a given corpus, by its location.
12570 /// @param corp the corpus to look the type from.
12574 lookup_enum_type_per_location(const string &loc, const corpus &corp)
12580 /// Look into a given corpus to find a typedef type which has the
12583 /// If the per-corpus type map is non-empty (because the corpus allows
12585 /// per-corpus type map. Otherwise, the type is looked-up in each
12591 /// @param corp the corpus to look into.
12593 lookup_typedef_type(const typedef_decl& t, const corpus& corp)
12599 /// Look into a given corpus to find a typedef type which has the
12602 /// If the per-corpus type map is non-empty (because the corpus allows
12604 /// per-corpus type map. Otherwise, the type is looked-up in each
12610 /// @param corp the corpus to look into.
12612 lookup_typedef_type(const string& qualified_name, const corpus& corp)
12618 /// Look into a given corpus to find a typedef type which has a
12621 /// If the per-corpus type map is non-empty (because the corpus allows
12623 /// per-corpus type map. Otherwise, the type is looked-up in each
12629 /// @param corp the corpus to look into.
12631 lookup_typedef_type(const interned_string& qualified_name, const corpus& corp)
12644 /// Lookup a @ref typedef_decl from a corpus, by its location.
12648 /// @param corp the corpus to consider.
12652 lookup_typedef_type_per_location(const interned_string &loc, const corpus &corp)
12661 /// Lookup a @ref typedef_decl from a corpus, by its location.
12665 /// @param corp the corpus to consider.
12669 lookup_typedef_type_per_location(const string &loc, const corpus &corp)
12675 /// Look into a corpus to find a class, union or typedef type which
12678 /// If the per-corpus type map is non-empty (because the corpus allows
12680 /// per-corpus type map. Otherwise, the type is looked-up in each
12685 /// @param corp the corpus to look into.
12689 lookup_class_or_typedef_type(const string& qualified_name, const corpus& corp)
12700 /// Look into a corpus to find a class, typedef or enum type which has
12703 /// If the per-corpus type map is non-empty (because the corpus allows
12705 /// per-corpus type map. Otherwise, the type is looked-up in each
12710 /// @param corp the corpus to look into.
12715 const corpus& corp)
12724 /// Look into a given corpus to find a qualified type which has the
12730 /// @param corp the corpus to look into.
12734 lookup_qualified_type(const qualified_type_def& t, const corpus& corp)
12740 /// Look into a given corpus to find a qualified type which has a
12745 /// @param corp the corpus to look into.
12749 lookup_qualified_type(const interned_string& qualified_name, const corpus& corp)
12764 /// Look into a given corpus to find a pointer type which has the same
12770 /// @param corp the corpus to look into.
12774 lookup_pointer_type(const pointer_type_def& t, const corpus& corp)
12780 /// Look into a given corpus to find a pointer type which has a given
12783 /// If the per-corpus type map is non-empty (because the corpus allows
12785 /// per-corpus type map. Otherwise, the type is looked-up in each
12791 /// @param corp the corpus to look into.
12795 lookup_pointer_type(const interned_string& qualified_name, const corpus& corp)
12808 /// Look into a given corpus to find a reference type which has the
12811 /// If the per-corpus type map is non-empty (because the corpus allows
12813 /// per-corpus type map. Otherwise, the type is looked-up in each
12819 /// @param corp the corpus to look into.
12823 lookup_reference_type(const reference_type_def& t, const corpus& corp)
12829 /// Look into a given corpus to find a reference type which has a
12832 /// If the per-corpus type map is non-empty (because the corpus allows
12834 /// per-corpus type map. Otherwise, the type is looked-up in each
12840 /// @param corp the corpus to look into.
12844 lookup_reference_type(const interned_string& qualified_name, const corpus& corp)
12858 /// Look into a given corpus to find an array type which has a given
12861 /// If the per-corpus type map is non-empty (because the corpus allows
12863 /// per-corpus type map. Otherwise, the type is looked-up in each
12869 /// @param corp the corpus to look into.
12873 lookup_array_type(const array_type_def& t, const corpus& corp)
12879 /// Look into a given corpus to find an array type which has the same
12882 /// If the per-corpus type map is non-empty (because the corpus allows
12884 /// per-corpus type map. Otherwise, the type is looked-up in each
12890 /// @param corp the corpus to look into.
12894 lookup_array_type(const interned_string& qualified_name, const corpus& corp)
12906 /// Look into a given corpus to find a function type which has the same
12909 /// If the per-corpus type map is non-empty (because the corpus allows
12911 /// per-corpus type map. Otherwise, the type is looked-up in each
12917 /// @param corp the corpus to look into.
12921 lookup_function_type(const function_type&t, const corpus& corp)
12927 /// Look into a given corpus to find a function type which has the same
12930 /// If the per-corpus type map is non-empty (because the corpus allows
12932 /// per-corpus type map. Otherwise, the type is looked-up in each
12938 /// @param corp the corpus to look into.
12943 const corpus& corpus)
12946 return lookup_function_type(*fn_t, corpus);
12950 /// Look into a given corpus to find a function type which has a given
12953 /// If the per-corpus type map is non-empty (because the corpus allows
12955 /// per-corpus type map. Otherwise, the type is looked-up in each
12961 /// @param corp the corpus to look into.
12965 lookup_function_type(const interned_string& qualified_name, const corpus& corp)
12978 /// Look into a given corpus to find a type which has a given
12981 /// If the per-corpus type map is non-empty (because the corpus allows
12983 /// per-corpus type map. Otherwise, the type is looked-up in each
12989 /// @param corp the corpus to look into.
12993 lookup_type(const interned_string& n, const corpus& corp)
13011 /// Lookup a type from a corpus, by its location.
13015 /// @param corp the corpus to look the type from.
13019 lookup_type_per_location(const interned_string& loc, const corpus& corp)
13038 /// Look into a given corpus to find a type
13040 /// If the per-corpus type map is non-empty (because the corpus allows
13042 /// per-corpus type map. Otherwise, the type is looked-up in each
13048 /// @param corp the corpus to look into.
13052 lookup_type(const type_base&t, const corpus& corp)
13058 /// Look into a given corpus to find a type
13060 /// If the per-corpus type map is non-empty (because the corpus allows
13062 /// per-corpus type map. Otherwise, the type is looked-up in each
13068 /// @param corp the corpus to look into.
13072 lookup_type(const type_base_sptr&t, const corpus& corp)
13223 /// If no type with this name did already exist in the per-corpus type
13224 /// map, then that per-corpus type map is updated. Otherwise, that
13225 /// type is erased from that per-corpus map.
13235 if (corpus *type_corpus = basic_type->get_corpus())
13246 if (corpus *group = type_corpus->get_group())
13267 /// If no type with this name did already exist in the per-corpus type
13268 /// map, then that per-corpus type map is updated. Otherwise, that
13269 /// type is erased from that per-corpus map.
13279 if (corpus *type_corpus = class_type->get_corpus())
13290 if (corpus *group = type_corpus->get_group())
13310 /// If no type with this name did already exist in the per-corpus type
13311 /// map, then that per-corpus type map is updated. Otherwise, that
13312 /// type is erased from that per-corpus map.
13322 if (corpus *type_corpus = union_type->get_corpus())
13333 if (corpus *group = type_corpus->get_group())
13353 /// If no type with this name did already exist in the per-corpus type
13354 /// map, then that per-corpus type map is updated. Otherwise, that
13355 /// type is erased from that per-corpus map.
13365 if (corpus *type_corpus = enum_type->get_corpus())
13376 if (corpus *group = type_corpus->get_group())
13397 /// If no type with this name did already exist in the per-corpus type
13398 /// map, then that per-corpus type map is updated. Otherwise, that
13399 /// type is erased from that per-corpus map.
13409 if (corpus *type_corpus = typedef_type->get_corpus())
13420 if (corpus *group = type_corpus->get_group())
13440 /// If no type with this name did already exist in the per-corpus type
13441 /// map, then that per-corpus type map is updated. Otherwise, that
13442 /// type is erased from that per-corpus map.
13452 if (corpus *type_corpus = qualified_type->get_corpus())
13458 if (corpus *group = type_corpus->get_group())
13473 /// If no type with this name did already exist in the per-corpus type
13474 /// map, then that per-corpus type map is updated. Otherwise, that
13475 /// type is erased from that per-corpus map.
13485 if (corpus *type_corpus = pointer_type->get_corpus())
13491 if (corpus *group = type_corpus->get_group())
13506 /// If no type with this name did already exist in the per-corpus type
13507 /// map, then that per-corpus type map is updated. Otherwise, that
13508 /// type is erased from that per-corpus map.
13518 if (corpus *type_corpus = reference_type->get_corpus())
13524 if (corpus *group = type_corpus->get_group())
13539 /// If no type with this name did already exist in the per-corpus type
13540 /// map, then that per-corpus type map is updated. Otherwise, that
13541 /// type is erased from that per-corpus map.
13551 if (corpus *type_corpus = array_type->get_corpus())
13562 if (corpus *group = type_corpus->get_group())
13582 /// If no type with this name did already exist in the per-corpus type
13583 /// map, then that per-corpus type map is updated. Otherwise, that
13584 /// type is erased from that per-corpus map.
13595 if (corpus *type_corpus = subrange_type->get_corpus())
13606 if (corpus *group = subrange_type->get_corpus())
13626 /// If no type with this name did already exist in the per-corpus type
13627 /// map, then that per-corpus type map is updated. Otherwise, that
13628 /// type is erased from that per-corpus map.
13639 if (corpus *type_corpus = fn_type->get_corpus())
13645 if (corpus *group = fn_type->get_corpus())
13660 /// If no type with this name did already exist in the per-corpus type
13661 /// map, then that per-corpus type map is updated. Otherwise, that
13662 /// type is erased from that per-corpus map.
13701 /// If no type with this name did already exist in the per-corpus type
13702 /// map, then that per-corpus type map is updated. Otherwise, that
13703 /// type is erased from that per-corpus map.
13960 const corpus *t1_corpus = t1.get_corpus(), *t2_corpus = t2.get_corpus();
13964 /// kernel corpus, let's move on. Otherwise bail out.
13967 && (t1_corpus->get_origin() & corpus::LINUX_KERNEL_BINARY_ORIGIN)
14186 // If 't' already has a canonical type 'inside' its corpus
14262 // If 't' comes from the second corpus, then it *must*
14264 // the first corpus because the second corpus is the
14265 // abixml representation of the first corpus. In other
14266 // words, all types coming from the second corpus must
14267 // have canonical types coming from the first corpus.
14293 // the first corpus.
14295 // If 't' indeed comes from the second corpus then this
14309 << "' from second corpus"
18846 /// only if the corpus that this variable originates from was
20310 /// exist only if the corpus that this function decl originates from