CWE-1055

Multiple Inheritance from Concrete Classes. [Complexity-Issues, Improper-Adherence-To-Coding-Standards]

Required inputs: IR

The product contains a class with inheritance from more than one concrete class.

This issue makes it more difficult to maintain the product, which indirectly affects security by making it more difficult or time-consuming to find and/or fix vulnerabilities. It also might make it easier to introduce vulnerabilities.

Excerpts from CWE [https://cwe.mitre.org], Copyright (C) 2006-2026, the MITRE Corporation. See section 9.4. "3rd-Party Licenses" in the documentation for full details.

Possible Messages

Key

Text

Severity

Disabled

multiple_inheritance

Use of multiple inheritance.

None

False

Options

consider_special_members_on_interfaces

consider_special_members_on_interfaces : bool = True

Whether to require special member functions on interface classes to be pure virtual or deleted.
 

ignore_pure_interfaces

ignore_pure_interfaces : bool = True

Whether C++ interfaces are allowed, i.e. classes with only pure virtual members.