A header defines a static function that is not inline, so every including file gets a copy

tx0/c:static-function-in-headerstrictwarningmaintainability/designdepth fastmaintainability

What it finds

A header defines static int helper(void) { ... } without inline: every file that includes the header gets its own copy of the function, and compilers warn in each file that does not call it. static inline says the copies are intended; a function with one definition belongs in a source file. Headers made to be included by one file only, as generated ones often are, define such functions on purpose, so the rule is strict.

From the rule's source, static_function_in_header.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/c:static-function-in-header" = "warning"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/c:static-function-in-header] reason="..."

tx0 explain tx0/c:static-function-in-header shows the same in the terminal. Found a false positive? Report it.