libabigail
|
The namespace for the native XML file format reader. More...
Typedefs | |
typedef shared_ptr< reader > | reader_sptr |
typedef unordered_map< string, vector< string > > | string_strings_map_type |
Convenience typedef for an unordered map of string to a vector of strings. More... | |
Functions | |
void | add_reader_suppressions (reader &rdr, const suppr::suppressions_type &supprs) |
Add suppressions specifications to the set of suppressions to be used during the construction of the ABI internal representation (the ABI corpus) from ELF and DWARF. More... | |
void | consider_types_not_reachable_from_public_interfaces (fe_iface &iface, bool flag) |
Configure the reader so that types not reachable from public interface are taken into account when the abixml file is read. More... | |
fe_iface_sptr | create_reader (const string &path, environment &env) |
Create an xml_reader::reader to read a native XML ABI file. More... | |
fe_iface_sptr | create_reader (std::istream *in, environment &env) |
Create an xml_reader::reader to read a native XML ABI from an input stream.. More... | |
corpus_sptr | read_corpus_from_abixml (std::istream *in, environment &env) |
De-serialize an ABI corpus from an input XML document which root node is 'abi-corpus'. More... | |
corpus_sptr | read_corpus_from_abixml_file (const string &path, environment &env) |
De-serialize an ABI corpus from an XML document file which root node is 'abi-corpus'. More... | |
corpus_group_sptr | read_corpus_group_from_abixml (std::istream *in, environment &env) |
De-serialize an ABI corpus group from an input XML document which root node is 'abi-corpus-group'. More... | |
corpus_group_sptr | read_corpus_group_from_abixml_file (const string &path, environment &env) |
De-serialize an ABI corpus group from an XML document file which root node is 'abi-corpus-group'. More... | |
corpus_group_sptr | read_corpus_group_from_input (fe_iface &iface) |
Parse the input XML document containing an ABI corpus group, represented by an 'abi-corpus-group' element node, associated to the current context. More... | |
translation_unit_sptr | read_translation_unit (fe_iface &iface) |
Parse a translation unit from an abixml input from a given context. More... | |
translation_unit_sptr | read_translation_unit_from_buffer (const std::string &file_path, environment &env) |
translation_unit_sptr | read_translation_unit_from_buffer (const string &buffer, environment &env) |
Parse an ABI instrumentation file (in XML format) from an in-memory buffer. More... | |
translation_unit_sptr | read_translation_unit_from_file (const std::string &file_path, environment &env) |
translation_unit_sptr | read_translation_unit_from_file (const string &input_file, environment &env) |
Parse an ABI instrumentation file (in XML format) at a given path. More... | |
translation_unit_sptr | read_translation_unit_from_istream (istream *in, environment &env) |
De-serialize a translation unit from an ABI Instrumentation xml file coming from an input stream. More... | |
translation_unit_sptr | read_translation_unit_from_istream (std::istream *in, environment &env) |
The namespace for the native XML file format reader.
typedef unordered_map<string, vector<string> > string_strings_map_type |
Convenience typedef for an unordered map of string to a vector of strings.
Definition at line 60 of file abg-reader.cc.
void abigail::abixml::add_reader_suppressions | ( | reader & | rdr, |
const suppr::suppressions_type & | supprs | ||
) |
Add suppressions specifications to the set of suppressions to be used during the construction of the ABI internal representation (the ABI corpus) from ELF and DWARF.
During the construction of the ABI corpus, ABI artifacts that match the a given suppression specification are dropped on the floor; that is, they are discarded and won't be part of the final ABI corpus. This is a way to reduce the amount of data held by the final ABI corpus.
Note that the suppression specifications provided to this function are only considered during the construction of the ABI corpus. For instance, they are not taken into account during e.g comparisons of two ABI corpora that might happen later. If you want to apply suppression specifications to the comparison (or reporting) of ABI corpora please refer to the documentation of the diff_context type to learn how to set suppressions that are to be used in that context.
rdr | the context that is going to be used by functions that read types and declarations information to construct and ABI corpus. |
supprs | the suppression specifications to be applied during the construction of the ABI corpus. |
Definition at line 2173 of file abg-reader.cc.
void consider_types_not_reachable_from_public_interfaces | ( | fe_iface & | iface, |
bool | flag | ||
) |
Configure the reader so that types not reachable from public interface are taken into account when the abixml file is read.
rdr | the @reader to consider. |
flag | if yes, then types not reachable from public interface are taken into account when the abixml file is read. |
Definition at line 2192 of file abg-reader.cc.
abigail::fe_iface_sptr create_reader | ( | const string & | path, |
environment & | env | ||
) |
Create an xml_reader::reader to read a native XML ABI file.
path | the path to the native XML file to read. |
env | the environment to use. |
Definition at line 6609 of file abg-reader.cc.
fe_iface_sptr create_reader | ( | std::istream * | in, |
environment & | env | ||
) |
Create an xml_reader::reader to read a native XML ABI from an input stream..
in | the input stream that contains the native XML file to read. |
env | the environment to use. |
Definition at line 6632 of file abg-reader.cc.
corpus_sptr read_corpus_from_abixml | ( | std::istream * | in, |
environment & | env | ||
) |
De-serialize an ABI corpus from an input XML document which root node is 'abi-corpus'.
in | the input stream to read the XML document from. |
env | the environment to use. Note that the life time of this environment must be greater than the lifetime of the resulting corpus as the corpus uses resources that are allocated in the environment. |
Definition at line 6658 of file abg-reader.cc.
corpus_sptr read_corpus_from_abixml_file | ( | const string & | path, |
environment & | env | ||
) |
De-serialize an ABI corpus from an XML document file which root node is 'abi-corpus'.
path | the path to the input file to read the XML document from. |
env | the environment to use. Note that the life time of this environment must be greater than the lifetime of the resulting corpus as the corpus uses resources that are allocated in the environment. |
Definition at line 6680 of file abg-reader.cc.
corpus_group_sptr read_corpus_group_from_abixml | ( | std::istream * | in, |
environment & | env | ||
) |
De-serialize an ABI corpus group from an input XML document which root node is 'abi-corpus-group'.
in | the input stream to read the XML document from. |
env | the environment to use. Note that the life time of this environment must be greater than the lifetime of the resulting corpus as the corpus uses resources that are allocated in the environment. |
Definition at line 2337 of file abg-reader.cc.
corpus_group_sptr read_corpus_group_from_abixml_file | ( | const string & | path, |
environment & | env | ||
) |
De-serialize an ABI corpus group from an XML document file which root node is 'abi-corpus-group'.
path | the path to the input file to read the XML document from. |
env | the environment to use. Note that the life time of this environment must be greater than the lifetime of the resulting corpus as the corpus uses resources that are allocated in the environment. |
Definition at line 2359 of file abg-reader.cc.
corpus_group_sptr read_corpus_group_from_input | ( | fe_iface & | iface | ) |
Parse the input XML document containing an ABI corpus group, represented by an 'abi-corpus-group' element node, associated to the current context.
rdr | the current input context. |
Definition at line 2272 of file abg-reader.cc.
translation_unit_sptr read_translation_unit | ( | fe_iface & | iface | ) |
Parse a translation unit from an abixml input from a given context.
rdr | the reader to consider. |
Definition at line 2418 of file abg-reader.cc.
translation_unit_sptr abigail::abixml::read_translation_unit_from_buffer | ( | const string & | buffer, |
environment & | env | ||
) |
Parse an ABI instrumentation file (in XML format) from an in-memory buffer.
buffer | the in-memory buffer containing the xml document to parse. |
env | the environment to use. |
Definition at line 2399 of file abg-reader.cc.
translation_unit_sptr abigail::abixml::read_translation_unit_from_file | ( | const string & | input_file, |
environment & | env | ||
) |
Parse an ABI instrumentation file (in XML format) at a given path.
input_file | a path to the file containing the xml document to parse. |
env | the environment to use. |
Definition at line 2377 of file abg-reader.cc.
translation_unit_sptr abigail::abixml::read_translation_unit_from_istream | ( | istream * | in, |
environment & | env | ||
) |
De-serialize a translation unit from an ABI Instrumentation xml file coming from an input stream.
in | a pointer to the input stream. |
env | the environment to use. |
Definition at line 6585 of file abg-reader.cc.