Benjamin Kosnik
6684ad97ad
Separate out bits from the ir header.
...
* include/abg-irfwd.h: Move to...
* include/abg-fwd.h: ...this.
* include/abg-ir.h (traverse_base): Move to...
* include/abg-traverse.h: ...here. New.
* include/abg-ir.h (location, location_manager, translation_unit):
Move to...
* include/abg-corpus.h: ...here.
* include/Makefile.am: Adjust.
* include/Makefile.in: Regenerate.
2013-08-14 15:07:19 +02:00
Benjamin Kosnik
9258b41534
Template naming compression.
...
* include/abg-ir.h: Template naming compressions.
(class_template_decl): To class_tdecl.
(function_template_decl): To function_tdecl.
(template_type_parameter): To type_tparameter.
(template_non_type_parameter): To non_type_tparameter.
(template_template_parameter): To template_tparameter.
(tmpl_parm_type_composition): To type_composition.
* include/abg-irfwd.h: Same.
* src/abg-hash.cc: Same.
* src/abg-ir.cc: Same.
* src/abg-reader.cc: Same.
2013-08-14 15:07:19 +02:00
Benjamin Kosnik
c06c007abc
Move class_decl nested types out-of-line.
...
* include/abg-ir.h (class_decl): Move nested types out of line.
2013-08-14 15:07:19 +02:00
Benjamin Kosnik
ea59f3c426
Rename class_decl::method to class_decl::method_base.
...
* include/abg-ir.h (class_decl::member): To member_base.
* src/abg-hash.cc: Same.
* src/abg-ir.cc: Same.
* src/abg-writer.cc: Same.
2013-08-14 15:07:19 +02:00
Benjamin Kosnik
373a74044a
Nest hashers.
...
* include/abg-ir.h: Nest all hashers.
* include/abg-irfwd.h (abigail): Don't inject std::tr1::hash.
Remove hasher forward declarations.
* include/abg-hash.h: Tweak.
* src/abg-hash.cc: Define hashers here.
* src/abg-ir.cc: Adjust for above.
* src/abg-reader.cc: Same.
* src/abg-writer.cc: Same.
2013-08-14 15:07:19 +02:00
Benjamin Kosnik
9c7f025ae9
Simplify interface for serializing/deserializing translation_units.
...
2013-08-06 Benjamin Kosnik <bkoz@redhat.com>
* include/abg-ir.h (translation_unit::read): New member function.
(translation_unit::write): Same.
* src/abg-reader.cc (translation_unit::read): Define.
* src/abg-writer.cc (translation_unit::write): Define.
* include/abg-reader.h: Remove.
* include/abg-writer.h: Remove.
* include/Makefile.am (headers): Same.
* include/Makefile.in: Regenerate.
2013-08-14 15:07:18 +02:00
Benjamin Kosnik
f7fd078486
Rename traversable to traversable_base, move up the _decl hierarchy via decl_base derivation.
...
* include/abg-ir.h (traversable): To traversable_base.
(decl_base): Inherit from traversable_base.
(decl_base::traverse): Null definition.
(function_decl, etc.): Remove traversable_base as base class.
2013-08-14 15:07:18 +02:00
Benjamin Kosnik
7916bff4fb
Standardize typedef naming. Plural form is the container form, smart_ptr types are type + _sptr.
...
* include/abg-ir.h (scope_decl): Add declarations, scopes as types.
(function_type): Add parameter_sptr, parameters as types.
(enum_type_decl): Add type_sptr, enumerators as types.
(class_decl): Adjust typedefs for consistency. Change
base_specs_type to base_specs, member_types_type to member_types,
data_members_type to data_members, member_functions_type to
member_functions, member_function_templates_type to
member_function_templates, member_class_templates_type to
member_class_templates.
2013-08-14 15:07:18 +02:00
Benjamin Kosnik
1240a6513a
Doxygen markup fixes final.
...
* include/abg-config.h: Doxygen cleanups round two.
* include/abg-hash.h: Same.
* include/abg-ir.h: Same.
* include/abg-irfwd.h: Same.
* include/abg-libxml-utils.h: Same.
* src/abg-config.cc: Same.
* src/abg-hash.cc: Same.
* src/abg-ir.cc: Same.
* src/abg-reader.cc: Same.
* src/abg-writer.cc: Same.
2013-08-14 15:07:18 +02:00
Benjamin Kosnik
e80ad1adee
Forward decls for abg-ir.h, doxygen fixups, restyle.
...
* include/abg-irfwd.h: New file for forward declarations.
* include/Makefile.am: Add new header.
* include/Makefile.in: Regenerate.
* include/*: Forward declare, doxygen fixups, restyle.
* src/*: Same.
* src/abg-corpus.cc: Empty, removed.
* doc/api/libabigail.doxy: Tweak.
2013-08-14 15:07:18 +02:00
Benjamin Kosnik
8652e0f935
Add virtual dtor to translation_unit.
...
* include/abg-ir.h (translation_unit): Add virtual dtor.
* src/abg-ir.cc: Define.
2013-08-14 15:07:18 +02:00
Benjamin Kosnik
d23c4e9b96
Collapse subdir of include to include.
...
* include/libabigail/abg-*.h: Move to...
* include/abg-*.h
* include/libabigail: Remove.
* configure.ac: Adjust include location from libabigail/include to
include.
* Makefile.in: Same.
* aclocal.m4: Same.
* configure: Same.
* doc/Makefile.in: Same.
* include/Makefile.am: Same.
* src/Makefile.am: Same.
* src/Makefile.in: Same.
* tests/Makefile.am: Same.
* tests/Makefile.in: Same.
2013-08-14 15:07:18 +02:00