sandboxed-api/sandboxed_api/tools
Christian Blichmann 67bc67bbef clang_generator: Handle inter-type dependencies better
This change changes the emitter to work on `clang::TypeDecl`s instead of
`clang::QualType`s, as the latter only describe complete definitions. This
allows us to better deal with situations where we would otherwise have a kind
of circular type dependencies: For example, a `typedef` that depends on a
`struct` which in turn has a member that references the typedef.
For this to work, we now also record the actual source order of declarations,
similar to what the libclang based header generator does.

Also add some more tests for the newly covered cases.

PiperOrigin-RevId: 488370914
Change-Id: I2d1baa863fb12d1801bf11a20f3f88df7fde3129
2022-11-14 08:19:13 -08:00
..
clang_generator clang_generator: Handle inter-type dependencies better 2022-11-14 08:19:13 -08:00
filewrapper cmake: Rename build options to follow Abseil naming 2022-04-21 01:17:39 -07:00
generator2 Silence some pytype errors. 2022-11-02 01:08:49 -07:00