irx.analysis.ffi

irx.analysis.ffi

Source: packages/irx/src/irx/analysis/ffi.py

title: Public FFI semantic helpers.
summary: >-
  Normalize runtime-feature metadata and enforce the narrow public FFI type
  policy for explicit extern declarations.

Functions

normalize_runtime_features(prototype: astx.FunctionPrototype, *, diagnostics: DiagnosticBag) -> tuple[str, ...]

title: Normalize runtime-feature metadata from one prototype.
parameters:
  prototype:
    type: astx.FunctionPrototype
  diagnostics:
    type: DiagnosticBag
returns:
  type: tuple[str, Ellipsis]

build_ffi_callable_info(context: SemanticContext, *, signature: FunctionSignature, prototype: astx.FunctionPrototype) -> FFICallableInfo | None

title: Build validated public FFI metadata for one extern signature.
parameters:
  context:
    type: SemanticContext
  signature:
    type: FunctionSignature
  prototype:
    type: astx.FunctionPrototype
returns:
  type: FFICallableInfo | None