diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-02-28 13:43:38 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-02-28 13:43:38 +0000 |
commit | 095d8d4b238567c9b884714f673b7e1d0dae3f1e (patch) | |
tree | c9a1cefda5115aa238e70ce9067ae3c63d6f4706 /libcpp | |
parent | 9348eb677eb9e113ae7889faa5466723a307941f (diff) | |
download | gcc-095d8d4b238567c9b884714f673b7e1d0dae3f1e.zip gcc-095d8d4b238567c9b884714f673b7e1d0dae3f1e.tar.gz gcc-095d8d4b238567c9b884714f673b7e1d0dae3f1e.tar.bz2 |
c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
* c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
(is_char_array): Fix formatting.
(dump_template_types): Likewise.
(dump_generic_ada_node): Rename into...
(dump_ada_node): ...this.
<POINTER_TYPE>: Remove superfluous space. Use generic address for
incomplete structures and not for empty structures. Do not use it
when forward declarations are needed.
(dump_forward_type): New function.
(dump_nested_types): Remove FORWARD parameter. Do not consider
TREE_VISITED and do not generate a forward declaration. Only dump
original nested types for nested declaration.
(dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
<ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
<RECORD_TYPE>: Do not consider TREE_VISITED.
(dump_ada_declaration): Use booleans and fix formatting throughout.
<TYPE_DECL>: Skip incomplete structures and not empty structures.
Call dump_forward_type instead of dump_nested_types for a typedef.
Remove superfluous check and adjust call to dump_nested_types.
<POINTER_TYPE>: Call dump_forward_type and fall through.
(dump_ada_struct_decl): Rename into...
(dump_ada_structure): ...this. Do not special-case empty structures.
From-SVN: r258062
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions