summaryrefslogtreecommitdiff
path: root/src/rebar_prv_xref.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-09-28 19:07:00 -0400
committerGitHub <noreply@github.com>2016-09-28 19:07:00 -0400
commit7ed3ecdf4e73d04f1dc25554ac80baba908315bd (patch)
tree1558c0469c82a7caf94c3e607f8dfb98804d7319 /src/rebar_prv_xref.erl
parenta40fe42d906fde0be0534b6c6acf7e5868860357 (diff)
parent3f0e56d9c8c6da6c304543e47ff83e101aabf847 (diff)
Merge pull request #1339 from inaka/elbrujohalcon.behavior
Add support for behaviors, and not just behaviours
Diffstat (limited to 'src/rebar_prv_xref.erl')
-rw-r--r--src/rebar_prv_xref.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_xref.erl b/src/rebar_prv_xref.erl
index 45badd3..3d74c9a 100644
--- a/src/rebar_prv_xref.erl
+++ b/src/rebar_prv_xref.erl
@@ -165,7 +165,8 @@ keyall(Key, List) ->
lists:flatmap(fun({K, L}) when Key =:= K -> L; (_) -> [] end, List).
get_behaviour_callbacks(exports_not_used, Attributes) ->
- [B:behaviour_info(callbacks) || B <- keyall(behaviour, Attributes)];
+ [B:behaviour_info(callbacks) || B <- keyall(behaviour, Attributes) ++
+ keyall(behavior, Attributes)];
get_behaviour_callbacks(_XrefCheck, _Attributes) ->
[].