Skip to content

Commit c3a88db

Browse files
carl-smithcopybara-github
authored andcommitted
Refactor SAPI generator: decouple argument classes and annotations into namespace sapi.
This change cleans up and modularizes the types and utilities extracted from sandboxed_library_emitter: - Promotes Arg, PointerArg, CallbackArg, and simple arg types directly into namespace sapi. - Decouples Annotations and context binding helpers into annotations.{h,cc}. - Scopes AST manipulation utilities in namespace sapi::ast. - Streamlines pointer_arg.h by moving method implementations to pointer_arg.cc. - Relocates kIncludePrefix to arg.h and removes unnecessary ast_utils.h includes. - Exposes standalone ConvertArg and ConvertArgImpl in arg_converter.h. There are no functional changes. PiperOrigin-RevId: 971269415 Change-Id: I37468757a69b6922506e833686b3ac7891a24aed
1 parent b25c2d9 commit c3a88db

17 files changed

Lines changed: 1210 additions & 1166 deletions

sandboxed_api/tools/clang_generator/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ cc_library(
4444
hdrs = [
4545
"annotations.h",
4646
"arg.h",
47+
"arg_converter.h",
4748
"ast_utils.h",
4849
"callback_arg.h",
4950
"diagnostics.h",

sandboxed_api/tools/clang_generator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ add_library(sapi_generator
2424
annotations.h
2525
arg.h
2626
arg_converter.cc
27+
arg_converter.h
2728
ast_utils.cc
2829
ast_utils.h
2930
callback_arg.cc

0 commit comments

Comments
 (0)