Bug 367906

Summary: New: warn on emit on non-signal
Product: [Developer tools] clazy Reporter: Sergio Martins <smartins>
Component: generalAssignee: Sergio Martins <smartins>
Status: RESOLVED FIXED    
Severity: wishlist CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Sergio Martins 2016-08-27 23:03:05 UTC
emit thisIsNotASignal(); // This should warn

Not trivial to implement, emit is a macro which expands to nothing.
This has to be done at the lexer level I guess, or catching the macro, reading the name of the signal and waiting for the AST Node with the method declaration to be visited
Comment 1 Sergio Martins 2017-03-19 12:29:08 UTC
Done for v1.1