Open Quuxplusone opened 7 years ago
Will be great to have readability check for order of function and constant in comparisons.
For example:
if (nullptr != getenv("VARIABLE"))
should be changed to
if (getenv("VARIABLE") != nullptr)
Would this also apply to variables? Example: char *p; // ... if (nullptr == p) { // ... }
Will be great to have readability check for order of function and constant in comparisons.
For example:
if (nullptr != getenv("VARIABLE"))
should be changed to
if (getenv("VARIABLE") != nullptr)