Skip to content

Swap AST importers to populate (IR) protobuf directly instead of allocating intermediate C++ structs.#1527

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_953452399
Open

Swap AST importers to populate (IR) protobuf directly instead of allocating intermediate C++ structs.#1527
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_953452399

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jul 24, 2026

Copy link
Copy Markdown

Swap AST importers to populate (IR) protobuf directly instead of allocating intermediate C++ structs.

This change, at a high-level:

  • Ports over logic to convert C++ structs -> IR protobufs to the importer, since we now skip this intermediate step. For example, we now populate the is_incomplete field to distinguish opaque from incomplete enums in the importer; we also populate CollectNamespaces directly from the IR protobuf.
  • Updates the per-type importers to create protobuf items instead of C++ structs.
  • Updates test matchers to use gmock-protobuf-matchers to simplify protobuf testing.

@copybara-service
copybara-service Bot force-pushed the test_953452399 branch 2 times, most recently from 6abca79 to 7df9a10 Compare July 24, 2026 22:46
…cating intermediate C++ structs.

This change, at a high-level:
- Ports over logic to convert C++ structs -> IR protobufs to the importer, since we now skip this intermediate step. For example, we now populate the is_incomplete field to distinguish opaque from incomplete enums in the importer; we also populate CollectNamespaces directly from the IR protobuf.
- Updates the per-type importers to create protobuf items instead of C++ structs.
- Updates test matchers to use gmock-protobuf-matchers to simplify protobuf testing.

PiperOrigin-RevId: 953452399
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant