The macro NULL is used as a null pointer, where nullptr has a pointer type

tx0/cpp:null-macroallnotestyle/conventionsdepth faststyle

What it finds

NULL is an integer constant in C++, so it takes part in overload resolution as a number and converts to integers. nullptr converts only to pointers. The fix replaces it.

From the rule's source, null_macro.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:null-macro" = "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:null-macro] reason="..."

tx0 explain tx0/cpp:null-macro shows the same in the terminal. Found a false positive? Report it.