> Erlang中文手册 > clash/0 查找命名冲突的模块

code:clash/0

查找命名冲突的模块

用法:

clash() -> ok

内部实现:

%% Search the entire path system looking for name clashes

-spec clash() -> 'ok'.

clash() ->
    Path = get_path(),
    Struct = lists:flatten(build(Path)),
    Len = length(search(Struct)),
    io:format("** Found ~w name clashes in code paths ~n", [Len]).

在整个路径系统下查找名字冲突的模块并输出一个检查报告。

code:clash().