Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 392 Bytes

README-virtual-call-ctor.md

File metadata and controls

9 lines (6 loc) · 392 Bytes

virtual-call-ctor

Finds places where you're calling pure virtual functions inside a constructor or destructor. Compilers usually warn about this if there isn't any indirection, this check will catch cases like calling a non-pure virtual that calls a pure virtual.

This check only looks for pure virtuals, ignoring non-pure, which in theory you shouldn't call, but seems common practice.