A C library header is included by its C name, as <stdio.h>, instead of the C++ form <cstdio>

tx0/cpp:c-library-headerallnotestyle/conventionsdepth faststyle

What it finds

The C++ forms of the C headers, <cstdio>, <cstring> and the others, declare the functions in namespace std and are the forms the C++ standard describes; the .h forms are kept for compatibility. Headers ending in .h, which C may read too, are left alone. The fix rewrites the include.

From the rule's source, c_library_header.rs.

Turn it on, off or suppress it

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

tx0.toml
[rules]
"tx0/cpp:c-library-header" = "note"

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/cpp:c-library-header] reason="..."

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