C & C++

C & C++

By DeepSource

Identifier names are typographically ambiguous CXX-W1022

Bug risk

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


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