Diligent Engine
Loading...
Searching...
No Matches
clang_parser Namespace Reference

Functions

 configure_clang ()
 clang_library ()
 describe_type (native_type)
 initializer (cursor)
 zero_value (native_type)
 aggregate_value (native_type, elements=())
 constant_value (cursor)
 extract_api (source_root, headers, declaration_names, target, clang_args=(), *, external_declarations=(), method_selections=None, method_exclusions=None, include_dependencies=False, export_headers=(), excluded_headers=(), excluded_declarations=())

Detailed Description

Extract native API declarations with Clang; no binding policies or language emission.

Function Documentation

◆ aggregate_value()

aggregate_value ( native_type,
elements = () )
Consume aggregate elements in C++ order, flattening base subobjects.

◆ clang_library()

clang_library ( )
Bind the small part of libclang 22 not exposed by clang.cindex.

◆ configure_clang()

configure_clang ( )
Use matching Python bindings and libclang without changing the host compiler.

◆ constant_value()

constant_value ( cursor)
Evaluate native values with Clang, walking braced aggregates by field order.

◆ describe_type()

describe_type ( native_type)
Keep aliases and qualifiers, but also expose their machine-readable types.

◆ extract_api()

extract_api ( source_root,
headers,
declaration_names,
target,
clang_args = (),
* ,
external_declarations = (),
method_selections = None,
method_exclusions = None,
include_dependencies = False,
export_headers = (),
excluded_headers = (),
excluded_declarations = () )
Return a plain-data API model and available symbol names for policy validation.

This stage reads native declarations only. With include_dependencies, it
follows named types and bases used by the selected signatures and fields.
External declarations remain opaque and stop dependency traversal.

◆ initializer()

initializer ( cursor)
Find the initializer of a field, parameter, or constant declaration.

◆ zero_value()

zero_value ( native_type)
Value-initialized aggregate members omitted from a braced initializer.