class

Bindgen::Parser::Runner

Inherits Reference < Object

Runner for the Clang part. The path can also be configured through the BINDGEN_BIN environment variable.

Constants

BINARY_PATH = File.expand_path("#{File.dirname("/tmp/tmp.jlhHHN/src/src/bindgen/parser/runner.cr")}/../../../clang/parser")

Default path to the binary

Log = ::Log.for(self)

Constructors

new(classes : Array(String), enums : Array(String), macros : Array(String), functions : Array(String), config : Configuration, project_root : String, member_functions : Array(String) = [] of String)

project_root must be a path to the directory the configuration YAML resides.

Source

Instance methods

arguments(input_file)

Arguments for the tool binary

Source
run

Calls the clang tool and returns its output as string.

Source
run_and_parse

Calls the clang tool and directly parses its output

Source