aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level1/README-incorrect-emit.md
blob: 09640675013bc2a5a05a7ba99406ddc17bb1c611 (plain)
1
2
3
4
5
6
7
8
# incorrect-emit

For readability purposes you should always use emit (or Q_EMIT) when calling a signal.
Conversely, you should not use those macros when calling a non-signal.

clazy will warn if you forget to use emit (or Q_EMIT) or if you use them on a non-signal.

Additionally, it will warn when emitting a signal from a constructor, because there's nothing connected to the signal yet.