summaryrefslogtreecommitdiff
path: root/src/rebar_prv_dialyzer.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2019-07-30 16:28:50 -0400
committerFred Hebert <mononcqc@ferd.ca>2019-07-30 16:28:50 -0400
commit28a50b8a3632b4f9eafb3bc8a36cc72023b13576 (patch)
treea487a0d19df2b52a4a318b44f3c770507f921981 /src/rebar_prv_dialyzer.erl
parentdab233d6edeef2e15b8fcd4616ac01fbaea7e664 (diff)
Fixing duplicate macro definition in umbrella edoc
When in umbrella mode (or through multiple profiles), users can specify macros for EDocs based on either the {def, ...} or the {macros, ...} arguments. This patch replaces the prior options merging for umbrellas to use the rebar3 tup_umerge utils to remove identical duplicates while preserving correct ordering, and manually merges the {macros, ...} definitions while ke eping the correct precedence rules since these appear (given their behaviour) to be all individually extracted and passed as `{d, ...}` to the compiler so that epp expands them. This compiler function freaks out on any re-defined macros and explodes. Do note that the macros with `{def, ...}` are edoc macros and do not suffer from that issue, safely deduplicating multiple definitions.
Diffstat (limited to 'src/rebar_prv_dialyzer.erl')
0 files changed, 0 insertions, 0 deletions