blob: 4475987b4cabdad11fe55b3ce87641dfd039470b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# skipped-base-method
Warns when calling a method from the "grand-base class" instead of the base-class method.
Example:
class MyFrame : public QFrame
{
Q_OBJECT
public:
bool event(QEvent *ev) override
{
(...)
return QWidget::event(ev); // warning: Maybe you meant to call QFrame::changeEvent() instead [-Wclazy-skipped-base-method]
}
};
Try to avoid jumping over the direct base method. If you really need to then at least
add a comment in the code, so people know it was intentional. Or even better, an clazy:exclude=skipped-base-method comment, which also sliences this warning.
|