sandboxed-api/sandboxed_api/tools/clang_generator
Christian Blichmann 4b2c730c5e Bazel: Make generator configurable
This change introduces an experimental `generator_version` attribute to the
`sapi_library()` rule. Version `1` will select the current interface
generator, which is based on libclang and Python. Setting the attribute to
version `2`, will select the newer interface generator written in C++ that
uses a full clang compiler frontend for parsing. Both emit equivalent header
output, differences in parsing and/or edge cases notwithstanding.

The default, as of now, is still the old version `1` generator.

Note: CMake allows to select the new interface generator globally by setting
`SAPI_ENABLE_GENERATOR`.
PiperOrigin-RevId: 438765013
Change-Id: I69c49a6bcf1751724edb0bce5c3b2beea2097138
2022-04-01 01:34:48 -07:00
..
BUILD.bazel Bazel: Make generator configurable 2022-04-01 01:34:48 -07:00
CMakeLists.txt clang_generator: Enable mixed header processing 2022-03-17 03:41:53 -07:00
compilation_database.cc clang_generator: Enable mixed header processing 2022-03-17 03:41:53 -07:00
compilation_database.h clang_generator: Enable mixed header processing 2022-03-17 03:41:53 -07:00
diagnostics.cc Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
diagnostics.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
emitter_test.cc clang_generator: Do not collect structs/unions if declared in another record 2022-03-17 03:30:12 -07:00
emitter.cc clang_generator: Improve formatting of function prototype comments 2022-03-17 03:53:13 -07:00
emitter.h clang_generator: Improve formatting of function prototype comments 2022-03-17 03:53:13 -07:00
frontend_action_test_util.cc clang_generator: Do not collect structs/unions if declared in another record 2022-03-17 03:30:12 -07:00
frontend_action_test_util.h clang_generator: Do not collect structs/unions if declared in another record 2022-03-17 03:30:12 -07:00
generator_tool.cc clang_generator: Enable mixed header processing 2022-03-17 03:41:53 -07:00
generator.cc clang_generator: Handle intrinsics directly 2022-03-17 02:31:57 -07:00
generator.h clang_generator: Handle intrinsics directly 2022-03-17 02:31:57 -07:00
types.cc clang_generator: Map C's _Bool to bool 2022-03-21 04:11:21 -07:00
types.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00