mirror of
git://sourceware.org/git/libabigail.git
synced 2025-03-06 06:37:31 +00:00
Define translation_unit{_sptr,s} types in abigail::
* include/abg-corpus.h (abigail::corpus::{translation_unit_sptr, translation_units): Do not define these typedefs here. Rather) (define them ... * include/abg-ir.h (abigail::{translation_units,translation_unit_sptr): ... here. This is because a translation unit can be manipulated independently from an abi corpus. * src/abg-corpus.cc (corpus::get_translation_units): Adjust return type to comply with the change above. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
4989519a33
commit
0b8a16ef39
@ -36,10 +36,8 @@ namespace abigail
|
||||
class corpus
|
||||
{
|
||||
public:
|
||||
struct impl;
|
||||
typedef std::string string;
|
||||
typedef shared_ptr<translation_unit> translation_unit_sptr;
|
||||
typedef std::vector<translation_unit_sptr> translation_units;
|
||||
struct impl;
|
||||
typedef std::string string;
|
||||
|
||||
private:
|
||||
shared_ptr<impl> m_priv;
|
||||
|
@ -164,6 +164,9 @@ public:
|
||||
traverse(ir_node_visitor& v);
|
||||
};//end class translation_unit
|
||||
|
||||
typedef shared_ptr<translation_unit> translation_unit_sptr;
|
||||
typedef std::vector<translation_unit_sptr> translation_units;
|
||||
|
||||
/// The base type of all declarations.
|
||||
class decl_base : public traversable_base
|
||||
{
|
||||
|
@ -214,7 +214,7 @@ struct corpus::impl
|
||||
/// Return the list of translation units of the current corpus.
|
||||
///
|
||||
/// @return the list of translation units of the current corpus.
|
||||
const corpus::translation_units&
|
||||
const translation_units&
|
||||
corpus::get_translation_units() const
|
||||
{
|
||||
return m_priv->members;
|
||||
|
Loading…
Reference in New Issue
Block a user