Warning, /sdk/clazy/docs/checks/README-assert-with-side-effects.md is written in an unsupported language. File is not indexed.
0001 # assert-with-side-effects 0002 0003 Tries to find `Q_ASSERT`s with side-effects. Asserts are compiled-out in release mode so you shouldn't put any important code inside them. 0004 0005 #### Example 0006 ``` 0007 // The connect statement wouldn't run in release mode 0008 Q_ASSERT(connect(buttonm, &QPushButton::clicked, this, &MainWindow::handleClick)); 0009 ``` 0010 0011 #### Pitfalls 0012 0013 This check is experimental and will have many false positives and might be buggy. Patches accepted!