public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Incomplete enum support
@ 2020-04-23 13:03 Giuliano Procida
  2020-04-23 13:03 ` [RFC PATCH 1/2] Support declaration-only enums Giuliano Procida
  2020-04-23 13:03 ` [RFC PATCH 2/2] Add tests for " Giuliano Procida
  0 siblings, 2 replies; 8+ messages in thread
From: Giuliano Procida @ 2020-04-23 13:03 UTC (permalink / raw)
  To: libabigail; +Cc: dodji, kernel-team, gprocida, maennich

Incomplete enums are heavily used in the Linux kernel source as part
of interface specifications.

This code appears to work, but it is lightly tested and unreviewed.

It also duplicates a lot of code that is used for incomplete class and
union types. There may be a significant opportunity for refactoring
and shared code and data.

Giuliano Procida (2):
  Support declaration-only enums.
  Add tests for declaration-only enums.

 include/abg-comp-filter.h                     |   7 +
 include/abg-comparison.h                      |   7 +
 include/abg-fwd.h                             |  26 +-
 include/abg-ir.h                              |  23 ++
 src/abg-comp-filter.cc                        |  78 ++++-
 src/abg-comparison.cc                         |  21 +-
 src/abg-default-reporter.cc                   |  34 +-
 src/abg-dwarf-reader.cc                       | 308 +++++++++++++++++-
 src/abg-ir.cc                                 | 235 ++++++++++++-
 tests/data/Makefile.am                        |   5 +
 .../test-decl-enum-report.txt                 |  17 +
 .../test-abidiff-exit/test-decl-enum-v0.c     |   5 +
 .../test-abidiff-exit/test-decl-enum-v0.o     | Bin 0 -> 3048 bytes
 .../test-abidiff-exit/test-decl-enum-v1.c     |   5 +
 .../test-abidiff-exit/test-decl-enum-v1.o     | Bin 0 -> 3048 bytes
 tests/test-abidiff-exit.cc                    |   9 +
 16 files changed, 754 insertions(+), 26 deletions(-)
 create mode 100644 tests/data/test-abidiff-exit/test-decl-enum-report.txt
 create mode 100644 tests/data/test-abidiff-exit/test-decl-enum-v0.c
 create mode 100644 tests/data/test-abidiff-exit/test-decl-enum-v0.o
 create mode 100644 tests/data/test-abidiff-exit/test-decl-enum-v1.c
 create mode 100644 tests/data/test-abidiff-exit/test-decl-enum-v1.o

-- 
2.26.1.301.g55bc3eb7cb9-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-06-04 17:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23 13:03 [RFC PATCH 0/2] Incomplete enum support Giuliano Procida
2020-04-23 13:03 ` [RFC PATCH 1/2] Support declaration-only enums Giuliano Procida
2020-05-12 14:02   ` Matthias Maennich
2020-05-15 14:42     ` Giuliano Procida
2020-05-22 10:03   ` Dodji Seketeli
2020-06-04 17:23     ` Giuliano Procida
2020-04-23 13:03 ` [RFC PATCH 2/2] Add tests for " Giuliano Procida
2020-05-12 14:05   ` Matthias Maennich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).