Loom C API
Public Loom compiler C API
Loading...
Searching...
No Matches
loomc_cxx_import_options_t Struct Reference

Configuration for one source translation unit. More...

#include <cxx.h>

Data Fields

loomc_structure_type_t type
 Structure type; LOOMC_STRUCTURE_TYPE_CXX_IMPORT_OPTIONS when nonzero.
loomc_host_size_t structure_size
 Size of this structure in bytes, or zero.
const void * next
 Reserved extension chain. Must be NULL.
loomc_string_view_t standard
 Frontend standard spelling, such as c23 or c++26. Empty selects c++26.
loomc_string_view_t triple
 Source ABI triple, independent of output target selection.
loomc_cxx_data_model_t data_model
 Source integer and pointer layout.
loomc_cxx_import_flags_t flags
 Source permissions and include delivery flags.
loomc_cxx_source_provider_t source_provider
 Optional include provider; embedded headers are resolved separately.
const loomc_string_view_t * include_paths
 User include directories, searched after quoted local includes.
loomc_host_size_t include_path_count
 Number of user include directories.
const loomc_string_view_t * system_include_paths
 System include directories, searched before the embedded system root.
loomc_host_size_t system_include_path_count
 Number of system include directories.
const loomc_cxx_define_t * defines
 Ordered macro definitions.
loomc_host_size_t define_count
 Number of macro definitions.
const loomc_string_view_t * roots
 Qualified source function names to export.
loomc_host_size_t root_count
 Number of explicitly selected roots.

Detailed Description

Configuration for one source translation unit.

Zero initialization selects C++26, LP64, strict math, visible definitions as roots, and the embedded facade system root when built into the library. All strings, arrays, and callback state are borrowed until import returns.

Field Documentation

◆ roots

const loomc_string_view_t* loomc_cxx_import_options_t::roots

Qualified source function names to export.

Empty exports visible concrete definitions; reached helpers remain private when roots are explicit.


The documentation for this struct was generated from the following file: