Truly independent web browser
language = "C++"
header = """/*
* Copyright (c) 2026-present, the Ladybird developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/"""
pragma_once = true
include_version = true
line_length = 120
tab_width = 4
no_includes = true
sys_includes = ["stdint.h", "stddef.h"]
includes = ["AK/Span.h"]
usize_is_size_t = true
[parse]
parse_deps = false
[parse.expand]
all_features = false
[export]
# Opaque to C++, which names each by a void pointer (see below).
exclude = ["SyntaxNode"]
[export.mangle]
rename_types = "PascalCase"
[export.rename]
# An ak::Span is laid out as an AK ReadonlySpan, which C++ passes it as.
"Span" = "AK::ReadonlySpan"
"SpanMut" = "AK::Span"
# A style engine handle is opaque to C++.
"StyleEngineHandle" = "const void*"
# What an unresolved value's text holds, as bits C++ does not read.
"UnresolvedFacts" = "uint16_t"
# A style value C++ hands back or lends is the pointer at the value it was given.
"OwnedStyleValue" = "const Web::CSS::StyleValueFFI::StyleValueData*"
"StyleValueRef" = "const Web::CSS::StyleValueFFI::StyleValueData*"
# So is a parsed syntax, which C++ holds by pointer.
"SyntaxNode" = "void"