Commit Graph

2 Commits

Author SHA1 Message Date
Jayant Chowdhary
ee0a448f4a Added More Abi information.
Make Messages mirror clang Types better.
Added type size and alignments for independent and complete types.
Added vtable layout for CXXRecordDecls.
Added abi information for variables with global storage.
Added new return status to signify abi extension.
Added checks for access specifier downgrades.
Removed repeated code from header-abi-diff.

Test: header-abi-dumper -o example1.dump tests/input/example1.cpp -I
tests -- -x c++ -std=c++11 -I . -I
~/android/aosp/external/clang/lib/Headers

Change-Id: I21b5a8ef6dff92ecae47a0b1c46342862c5e0ebd
2017-03-16 08:47:24 -07:00
Jayant Chowdhary
75c61f0a40 Added header-abi-linker.
header-abi-linker links dumps produced by header-abi-dumper when it goes
over each source file in a vndk shared library. It simply looks at the
"mlinker_set_key" field of the protobuf message to do this.

Only abi information present in source files in "export_include_headers"
is dumped now. If a library does not export headers it's abi is not
dumped.

Added information about anonymous records. eg: typedef struct {} Foo;

Test: header-abi-dumper -o example1.dump tests/input/example1.cpp -I tests --
-x c++ -std=c++11 -I . -I ~/android/aosp/external/clang/lib/Headers/

Bug: 32750600

Change-Id: I692de0933349a6b80a6b1a3b605a377a25cd0b5a
2017-02-07 22:46:48 -08:00