Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong refid in Doxygen's XML generator
Given the following Doxygen input: ``` /** * This struct must be used with f() */ struct t { int x; } /** * @param tx A struct t pointer */ void f(struct t *tx) { (void)tx; } ``` The `f()` in struct t's comment generates a <ref> element with `refid` equal to `some_prefix_compoundid_anchorid`, wheres the `id` in the refered element ends up with an `id` equal to `some_prefix_anchorid`. The anchorid here is just the compoundid prefix by "_1", so the `refid` actually has this information duplicated. This is a band-aid solution that tries to detect the issue in the ref ids and adds the duplication, so that resulting links work. Signed-off-by: Fabio Utzig <[email protected]>
- Loading branch information