object-introspection/test
Jake Hillion 40af807d8b tbv2: support capture-thrift-isset
Support the capture-thrift-isset feature with TreeBuilder-v2. Fairly minor
changes here except the type of the Enum in a template parameter now matters.

We follow the previous behaviour of capturing a value for each field in a
struct that has an `isset_bitset`. This value is a VarInt captured before the
C++ contents of the member. It has 3 values: 0 (not set), 1 (set), and 2
(unavailable). These are handled by the processor and represented in the output
as `false`, `true`, and `std::nullopt_t` respectively.

Changes:
- Add a simple Thrift isset processor before any fields that have Thrift isset.
- Store the fully qualified names of enum types in DrgnParser - it already
  worked out this information anyway for naming the values and this is
  consistent with classes.
- Forward all enum template parameters under their input name under the
  assumption that they will all be policy type things like `IssetBitsetOption`.
  This could turn out to be wrong.

Test plan:
- CI (doesn't test thrift changes but covers other regressions)
- Updated Thrift enum tests for new format.
- `FILTER='OilIntegration.*' make test` - Thrift tests failed before, succeed
  after.
2024-01-16 19:09:46 +00:00
..
integration tbv2: support capture-thrift-isset 2024-01-16 19:09:46 +00:00
ci.oid.toml Update to clang/llvm 15 (#342) 2023-09-14 06:02:32 -07:00
CMakeLists.txt TypeGraph: Add IdentifyContainers mutator pass 2023-11-06 11:28:00 +00:00
integration_entry_doStuff_arg0.oid Initial commit 2022-12-19 06:37:51 -08:00
integration_entry_doStuff_this.oid Initial commit 2022-12-19 06:37:51 -08:00
integration_entry_inc_arg0.oid Initial commit 2022-12-19 06:37:51 -08:00
integration_mttest.cpp Update to clang/llvm 15 (#342) 2023-09-14 06:02:32 -07:00
integration_return_incN_arg0.oid Initial commit 2022-12-19 06:37:51 -08:00
integration_sleepy.cpp Update to clang/llvm 15 (#342) 2023-09-14 06:02:32 -07:00
integration.py integration_py: fix expected sizes 2023-05-31 19:00:10 +02:00
main.cpp Tests: Split common code out into type_graph_utils 2023-05-31 15:49:37 +01:00
mocks.h move all internal logic to oi::detail namespace 2023-07-26 18:01:38 +01:00
mttest.h formatting: force pointers/references with the type 2023-03-24 20:18:18 +00:00
test_add_children.cpp circleci: clean up codegen v1 runs 2024-01-03 17:29:59 +00:00
test_add_padding.cpp clang-format: disable bin packing 2023-11-13 18:19:53 +00:00
test_alignment_calc.cpp TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00
test_codegen.cpp TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00
test_compiler.cpp clang-format: disable bin packing 2023-11-13 18:19:53 +00:00
test_container_info.cpp ContainerInfo: Move matcher regex construction to class ctor and add unit tests 2023-05-26 18:21:59 +01:00
test_drgn_parser.cpp incomplete: name type in compiler errors 2024-01-09 15:08:25 +00:00
test_drgn_parser.h TypeGraph: Stop identifying containers in DrgnParser 2023-11-06 11:45:57 +00:00
test_enforce_compatibility.cpp CodeGen v2: Enable independent running without CodeGen v1 2023-12-15 14:57:24 +00:00
test_flattener.cpp incomplete: name type in compiler errors 2024-01-09 15:08:25 +00:00
test_identify_containers.cpp TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00
test_key_capture.cpp clang-format: disable bin packing 2023-11-13 18:19:53 +00:00
test_name_gen.cpp incomplete: name type in compiler errors 2024-01-09 15:08:25 +00:00
test_node_tracker.cpp TypeGraph: Remove NodeTracker from the TypeGraph class 2023-08-24 15:01:45 +01:00
test_parser.cpp clang-format: disable bin packing 2023-11-13 18:19:53 +00:00
test_prune.cpp TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00
test_remove_members.cpp incomplete: name type in compiler errors 2024-01-09 15:08:25 +00:00
test_remove_top_level_pointer.cpp clang-format: disable bin packing 2023-11-13 18:19:53 +00:00
test_topo_sorter.cpp tbv2: name array member types correctly 2024-01-15 16:22:28 +00:00
test_type_identifier.cpp TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00
type_graph_utils.cpp TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00
type_graph_utils.h TypeGraph: Add IdentifyContainers mutator pass 2023-11-06 11:28:00 +00:00
TypeGraphParser.cpp incomplete: name type in compiler errors 2024-01-09 15:08:25 +00:00
TypeGraphParser.h TypeGraph: Fix handling for classes which inherit from containers 2023-12-14 18:02:45 +00:00