aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level2/README-virtual-call-ctor.md
blob: 2bf715c9e23ea1df7364e41d1a951c7e5ffead9f (plain)
1
2
3
4
5
6
7
8
9
# 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.