Bug 367906 - New: warn on emit on non-signal
Summary: New: warn on emit on non-signal
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-27 23:03 UTC by Sergio Martins
Modified: 2017-03-19 12:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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