diff options
Diffstat (limited to 'src/checks/manuallevel/README-unneeded-cast.md')
-rw-r--r-- | src/checks/manuallevel/README-unneeded-cast.md | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/checks/manuallevel/README-unneeded-cast.md b/src/checks/manuallevel/README-unneeded-cast.md deleted file mode 100644 index 97af458f..00000000 --- a/src/checks/manuallevel/README-unneeded-cast.md +++ /dev/null @@ -1,17 +0,0 @@ -# unneeded-cast - -Finds unneeded qobject_cast, static_cast and dynamic_casts. -Warns when you're casting to base or casting to the same type, which doesn't require -any explicit cast. - -Also warns when you're using dynamic_cast for QObjects. qobject_cast is prefered. - - -#### Example - - Foo *a = ...; - Foo *b = qobject_cast<Foo*>(a); - - -To shut the warnings about using qobject_cast over dynamic cast you can set: -`export CLAZY_EXTRA_OPTIONS="unneeded-cast-prefer-dynamic-cast-over-qobject"` |