<div dir="ltr"><div>I think you need to scope the doc - there are similar issues in various of the LLVM binutils tools. For example, both the llvm-readelf and llvm-objdump docs describe the `--file-headers` options. The scoping you need (I think) is the line at the top of these docs that looks something like `.. program:: llvm-objdump`. Indeed, without that scoping, you can potentially end up with docs linking to options described on other pages, which is almost certainly not what you want.</div><div><br></div><div>(I'm not a Sphinx expert, but did help get the LLVM binutils docs to where they are, and I think you're describing the problem this action solved)<br></div><div><br></div><div>James<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 25 Jan 2021 at 18:15, Paul C. Anagnostopoulos via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">In the Tablegen xxx-tblgen command documentation, the following lines appear:<br>
<br>
.. option:: -gen-directive-decl<br>
<br>
in the llvm-tblgen command option list, and <br>
<br>
.. option:: -gen-directive-decl<br>
<br>
in the mlir-tblgen command option list.<br>
<br>
They both generate the same target name, resulting in the warning:<br>
<br>
...CommandGuide/tblgen.rst:589:Duplicate explicit target name: "cmdoption-tblgen-gen-directive-decl".<br>
<br>
The warning messes you up if you're building with warnings treated as errors. Does anyone know how to fix this?<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>