DeepSource
Dashboard Resources Pricing Discover Directory Log in

Run your first analysis.

Find thousands of code security and quality issues in your codebase, before they end up in production.

Start now
All analyzers C & C++
C & C++

C & C++

By DeepSource

Use Analyzer
Docs
Discuss
Missing or incorrect invocation of base class copy constructor CXX-W2003
Bug risk

An inheriting class with a user-defined copy constructor must call its base class's copy constructor.

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.

Found shadowing of identifiers from outer scope CXX-W1023
Bug risk

Having identifiers unintentionally shadowed from the outer scope by the inner scope can possibly lead to bugs in code.

Consider using unique identifier names.

Unintended implicit conversion of a boolean pointer in a condition CXX-W2002
Bug risk

A pointer to the boolean type is used in the if condition with implicit conversion. The same pointer is never dereferenced.

Possible loss of precision due to iterator element type-casting in std::accumulate CXX-W2005
Bug risk

std::accumulate folds the elements to the initial value type (provided as the last argument to std::accumulate). When the initial value type is narrower than that of the elements to sum, there is a loss in precision.