AdRoll / rebar3_hank

The Erlang Dead Code Cleaner
MIT License
68 stars 9 forks source link

Macro used in ifndef is reported as unused #137

Closed elbrujohalcon closed 3 years ago

elbrujohalcon commented 3 years ago

Bug Description

Macro used in ifndef is reported as unused.

To Reproduce

Run Hank on…

-ifndef(MACRO).
-define(MACRO, true).
-endif.

Expected Behavior

No warnings.

rebar3 Logs

===> The following pieces of code are dead and should be removed:
include/header.hrl:2: ?MACRO is unused