aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/xref.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2022-05-31 14:46:46 +0200
committerLoïc Hoguin <[email protected]>2022-05-31 14:46:46 +0200
commitbf7a194b0b473186d14193eefdab9b65fa927443 (patch)
tree91454feb9f45103b2383441697d56a753bf2af90 /plugins/xref.mk
parent9e7c9f9e0628ee9d84ade4b4de85c2a5e7af7452 (diff)
downloaderlang.mk-bf7a194b0b473186d14193eefdab9b65fa927443.tar.gz
erlang.mk-bf7a194b0b473186d14193eefdab9b65fa927443.tar.bz2
erlang.mk-bf7a194b0b473186d14193eefdab9b65fa927443.zip
xref: Also ignore targets where applicable
Diffstat (limited to 'plugins/xref.mk')
-rw-r--r--plugins/xref.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/xref.mk b/plugins/xref.mk
index 27d66d2..0ecace2 100644
--- a/plugins/xref.mk
+++ b/plugins/xref.mk
@@ -107,9 +107,9 @@ define xref.erl
true -> Res0;
false ->
lists:filter(fun(R) ->
- {Mod, MFA} = case R of
- {MFA0 = {M, _, _}, _} -> {M, MFA0};
- {M, _, _} -> {M, R}
+ {Mod, InMFA, MFA} = case R of
+ {InMFA0 = {M, _, _}, MFA0} -> {M, InMFA0, MFA0};
+ {M, _, _} -> {M, R, R}
end,
Attrs = try
Mod:module_info(attributes)
@@ -147,7 +147,8 @@ define xref.erl
true -> [$(XREF_IGNORE)]
end,
Ignores = InlineIgnores ++ BuiltinIgnores ++ CallbackIgnores ++ WideIgnores,
- not (lists:member(MFA, Ignores)
+ not (lists:member(InMFA, Ignores)
+ orelse lists:member(MFA, Ignores)
orelse lists:member({Mod, '_', '_'}, Ignores))
end, Res0)
end,