Dialyzer: report call to undefined function

Vlad Dumitrescu <>
Fri May 19 09:38:27 CEST 2006


Yes, that's a good suggestion! I thought there would be a way to use
xref for that, but didn't manage to put together the required
filter...

Xref isn't incremental either, so it's not going all the way, but at
least is doable without patching anyhting.

Thanks!
Vlad


On 5/19/06, Samuel Rivas <> wrote:
> Vlad Dumitrescu wrote:
> > I think it would be useful if Dialyzer would also report calls to
> > undefined or unexported functions. I often spell names wrong :-)
>
> If you are eager enough, you can already do that with xref.
>
> xref:start(xref_example).
> xref:add_release(xref_example, code:lib_dir(),
>                               [{verbose, false}, {warnings, false},
>                                {name, otp}]).
> xref:add_application(xref_example, YourAppPath, [{name, YourAppName}]).
> xref:q(xref_example, "(XC - UC) | ((Fun) YourAppName : App) || (XU - X - B)").
>
> Maybe there is a simpler way, but that works for me :)
>
> Regards
> --
>        Samuel
>



More information about the erlang-questions mailing list