sandboxed-api/sandboxed_api/tools/clang_generator
Christian Blichmann e8fe398340 clang_generator: Enable mixed header processing
This implements a custom compilation database to conditionally add the correct
language flags to the compiler frontend. Otherwise, a C header might receive
`--std=c++17` and fail.

Note: All headers are always processed in C++ mode. We expect that headers of
well-behaved C libraries contain `#ifdef __cplusplus`/`extern "C" {}` guards.
PiperOrigin-RevId: 435302048
Change-Id: Ib84e6e1f301ba434999846a012b3f8c16884648e
2022-03-17 03:41:53 -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: Do not collect structs/unions if declared in another record 2022-03-17 03:30:12 -07:00
emitter.h clang_generator: Use a btree_map for fixed iteration order 2022-03-17 02:43:08 -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: Do not collect structs/unions if declared in another record 2022-03-17 03:30:12 -07:00
types.h Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00