android_bionic/libc/kernel/tools
Christopher Ferris 658b16fd90 Rewrite removeVarsAndFuncs.
The current version has these bugs:
- Adding a semicolon after a function results in the removal of structures
  following the function.
- Function like macros get removed on accident rather than on purpose.
- It removes extern "C" { completely, which might not be a bug, but doesn't
  seem right.

I couldn't easily fix any of these problems because the code depends heavily
on the header being correct.

New unit tests added for the function to cover all of these cases.

A follow-on CL will include the updated headers.

Bug: 112290385

Test: Passes all new unit tests.
Test: When run on the current kernel headers, the generated headers are
Test: nearly the same, missing data is being added.
Change-Id: Ib22a5f2e78873544e8a9d54e385af1156b2a72bb
2019-01-10 15:15:15 -08:00
..
clean_header.py Use in_addr in ip_mreq_source and ip_msfilter. 2017-12-14 10:07:27 -08:00
cpp.py Rewrite removeVarsAndFuncs. 2019-01-10 15:15:15 -08:00
defaults.py Use in_addr in ip_mreq_source and ip_msfilter. 2017-12-14 10:07:27 -08:00
generate_uapi_headers.sh Modify the script to use the linux source tree. 2018-05-24 15:10:33 -07:00
kernel.py
update_all.py Enable exporting the non-uapi scsi headers. 2017-05-25 19:17:55 -07:00
utils.py Refactor the kernel update scripts. 2017-03-02 15:21:42 -08:00