diff options
Diffstat (limited to 'docs/checks/README-virtual-call-ctor.md')
-rw-r--r-- | docs/checks/README-virtual-call-ctor.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/checks/README-virtual-call-ctor.md b/docs/checks/README-virtual-call-ctor.md new file mode 100644 index 00000000..2bf715c9 --- /dev/null +++ b/docs/checks/README-virtual-call-ctor.md @@ -0,0 +1,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. |