Warning, /sdk/clazy/docs/checks/README-skipped-base-method.md is written in an unsupported language. File is not indexed.
0001 # skipped-base-method
0002
0003 Warns when calling a method from the "grand-base class" instead of the base-class one.
0004
0005 Example:
0006 ```
0007 class MyFrame : public QFrame
0008 {
0009 Q_OBJECT
0010 public:
0011 bool event(QEvent *ev) override
0012 {
0013 (...)
0014 return QWidget::event(ev); // warning: Maybe you meant to call QFrame::event() instead [-Wclazy-skipped-base-method]
0015 }
0016 };
0017 ```
0018
0019 If you really need jump over the direct base-method then at least add a comment in the code, to provide intention. Or even better, a `// clazy:exclude=skipped-base-method` comment, which also silences this warning.
0020
0021 This check might get removed in the future, as clang-tidy recently got a similar [feature](https://clang.llvm.org/extra/clang-tidy/checks/bugprone-parent-virtual-call.html).