Rules

Current transformations.

Small, reviewable rules for modern C++ cleanup.

Rule 01

nullptr modernization

safe current rule

Replaces legacy null pointer constants when Legacyless can confirm pointer intent.

Before

Connection* current = NULL;
if (current == 0) {
  reconnect(current);
}

After

Connection* current = nullptr;
if (current == nullptr) {
  reconnect(current);
}

What it does

Moves null pointer spelling to the modern, explicit form.

Why safe

Applied only when null pointer context is clear, not as a blind text replacement.