C & C++

C & C++

Made by DeepSource

Identifier names are typographically ambiguous CXX-W1022

Bug risk
Major

Identifiers with typographically ambiguous names can be hard to read and adds unnecessary responsibility on the developer to be careful with the exact identifiers they are using.

Clear names are always preferred to ambiguous names, consider following a specified convention across the project to simplify the process of naming.

Bad practice

int FOO = 10;
int FO0 = 20;
int foo = 30; // typographically close names

Recommended

int foo = 10;
int bar = 20;
int qux = 30; // explicitly different names

References