[erlang-questions] xref doesn't show all the calls

Gonchar Denis ritchie.ua@REDACTED
Fri Sep 2 11:11:32 CEST 2016


Hi, all.

I noticed that *xref* doesn't detect some of the calls.

here is the simple test module:

-module(test).
-compile(export_all).

test()->
lists:reverse([]),
lists:keyfind(a,1,[]).

and* xref* query to get the calls from the module:

*1>* c(test,[debug_info]).
{ok,test}
*2>* xref:start(s).
{ok,<0.41.0>}
*3>* xref:add_directory(s,".").
{ok,[test]}
*4>* xref:q(s, "E | test:Mod").
{ok,[{{test,test,0},{lists,reverse,1}}]}
*5>* xref:stop(s).
stopped

can anyone explain why *xref* doesn't detect* lists:keyfind/3* call?

Regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160902/c8c1a8a7/attachment.htm>


More information about the erlang-questions mailing list