[clang-format] Upgrade ShortFunctionStyle to a struct (#134337)
The current clang-format configuration
option AllowShortFunctionsOnASingleLine uses a single enum
(ShortFunctionStyle) to control when short function definitions can be
merged onto a single line. This enum provides predefined combinations of
conditions
(e.g., None, Empty only, Inline only, Inline including Empty, All).
This approach has limitations:
1. **Lack of Granularity:** Users cannot specify arbitrary combinations
of conditions. For example, a user might want to allow merging
for both empty functions and short top-level functions, but not for
short functions defined within classes. This is not possible with the
current enum options except by choosing All, which might merge more than
desired.
2. **Inflexibility:** Adding new conditions for merging (e.g.,
[15 lines not shown]
[mlir] Fix op comparisons in extensible dialects (#186637)
The extensible dialect system defined `compareProperties` to false
because it doesn't use properties. However, this should have been
`true`, as the empty properties are trivially always equal to
themselves. Doing otherwise means that no operations in extensible
dialects that aren't the exact same operation will ever compare equal
for the purposes of operations like CSE.
ipfwpcap: Fix build after libpcap 1.10.6 update
pcap-int.h now references SIZEOF_TIME_T from libpcap's config.h, which
is not available to consumers of the internal header outside of the
libpcap build. Switch to the public <pcap.h> header and replace the
direct FILE* casts and ferror()/fflush() calls with pcap_dump_flush(3),
which is the correct public API for flushing a pcap dump file.
Sponsored by: The FreeBSD Foundation
ipfwpcap: Fix build after libpcap 1.10.6 update
pcap-int.h now references SIZEOF_TIME_T from libpcap's config.h, which
is not available to consumers of the internal header outside of the
libpcap build. Switch to the public <pcap.h> header and replace the
direct FILE* casts and ferror()/fflush() calls with pcap_dump_flush(3),
which is the correct public API for flushing a pcap dump file.
Sponsored by: The FreeBSD Foundation
net/ipaddr: New port: Command-line IP address manipulation tool
ipaddr is a command-line tool for manipulating and querying IP addresses
and networks. It provides functionality similar to Python's ipaddress module
but as a standalone CLI utility.
Features include:
- IPv4 and IPv6 address normalization
- CIDR and netmask prefix notation support
- Network calculations (network, broadcast, host addressing)
- Address classification (private, loopback, multicast, etc.)
- Subnet and supernet operations
- Command chaining for complex operations
- IPv6-specific features (6to4, Teredo, zone-id)
WWW: https://github.com/astralblue/ipaddr
PR: 292621
Reported by: Eugene M. Kim <ab at astral.blue> (new maintainer)
net/ipaddr: New port: Command-line IP address manipulation tool
ipaddr is a command-line tool for manipulating and querying IP addresses
and networks. It provides functionality similar to Python's ipaddress module
but as a standalone CLI utility.
Features include:
- IPv4 and IPv6 address normalization
- CIDR and netmask prefix notation support
- Network calculations (network, broadcast, host addressing)
- Address classification (private, loopback, multicast, etc.)
- Subnet and supernet operations
- Command chaining for complex operations
- IPv6-specific features (6to4, Teredo, zone-id)
WWW: https://github.com/astralblue/ipaddr
PR: 292621
Reported by: Eugene M. Kim <ab at astral.blue> (new maintainer)
cpu_is_better: fix comparison
the current coding always return true.
this commit fixes it to return if the first one is better
than the other one, which i believe is the author's intention.
fix a regression in the
"partly prepare for more than 2-level CPU speed scheduler support"
change.
[orc-rt] Return ref from Session::addService, add createService. (#186640)
Session::addService now returns a reference to the added Service. This
allows clients to hold a reference for further direct interaction with
the Service object.
This commit also introduces a new Session::createService convenience
method that creates the service and returns a reference to it.
editors/zed: Fix WASM extension host panic on FreeBSD ("unsupported os")
Zed's WASM extension host panics with "unsupported os" on FreeBSD when
any Rust-based extension (Typst, LaTeX, HTML, typos, etc.) loads. The
panic occurs at
crates/extension_host/src/wasm_host/wit/since_v0_8_0.rs:840 where
current_platform() only handles macOS, Linux, and Windows.
The patch maps FreeBSD to the Linux OS variant and seems to solve the
issue, allowing the user to install the extensions for Typst, LaTex,
and typos.
PR: 293816
Reported by: John Holloway <mail at jholloway.dev>
Pull Request: https://github.com/tagattie/FreeBSD-Zed/pull/3
editors/zed: Fix WASM extension host panic on FreeBSD ("unsupported os")
Zed's WASM extension host panics with "unsupported os" on FreeBSD when
any Rust-based extension (Typst, LaTeX, HTML, typos, etc.) loads. The
panic occurs at
crates/extension_host/src/wasm_host/wit/since_v0_8_0.rs:840 where
current_platform() only handles macOS, Linux, and Windows.
The patch maps FreeBSD to the Linux OS variant and seems to solve the
issue, allowing the user to install the extensions for Typst, LaTex,
and typos.
PR: 293816
Reported by: John Holloway <mail at jholloway.dev>
Pull Request: https://github.com/tagattie/FreeBSD-Zed/pull/3
[orc-rt] Rename "ResourceManager" to "Service". NFCI. (#186639)
The name "Service" better reflects the general purpose of this class: It
provides *something* (often resource management) to the Session, is
owned by the Session, and receives notifications from the Session when
the controller detaches / is detached, and when the Session is shut
down.
An example of a non-resource-managing Service (to be added in an
upcoming patch) is a detach / shutdown notification service: Clients can
add this service to register arbitrary callbacks to be run on detach /
shutdown. The advantage of this over the current Session detach /
shutdown callback system is that clients can control both the order of
the callbacks, and their order relative to notification of other
services.