Warning, /sdk/clazy/docs/checks/README-incorrect-emit.md is written in an unsupported language. File is not indexed.
0001 # incorrect-emit 0002 0003 For readability purposes you should always use emit (or Q_EMIT) when calling a signal. 0004 Conversely, you should not use those macros when calling a non-signal. 0005 0006 clazy will warn if you forget to use emit (or Q_EMIT) or if you use them on a non-signal. 0007 0008 Additionally, it will warn when emitting a signal from a constructor, because there's likely nothing connected to the signal yet 0009 (it could happen though, if the constructor itself, or something called by it, connects to that signal).