AutosarC++19_03-A10.1.1

Class shall not be derived from more than one base class which is not an interface class

Required inputs: IR

Multiple inheritance can make code hard to understand and should be avoided. Composition should be preferred over inheritance whenever possible.

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.