What definitions are always kept by trimmer
mainThe following elements are never removed, regardless of reachability or flags:
- Constants — all constants are kept unconditionally.
- Typedefs — all typedefs are kept unconditionally.
- Enums — all enums are kept unconditionally.
- Included files containing constants, enums, or typedefs — an
includestatement is retained (and its IDL recursively trimmed) even if no struct types from it are directly referenced. @preserve-annotated structs — any struct, union, or exception whose reserved comments contain a line matching// @preserveor# @preserve(case-insensitive) is kept, unless-p falseis passed.