petrhosek wrote: Here's an idea that doesn't need to be addressed in this PR.
We already have the YAML backend for Clang-doc which is primarily used for testing and also to allow external backends. We chose YAML because back when we started working on it, there was no JSON support in LLVM, but today I think we would have gone with JSON since it's more universally supported (e.g. in languages like Go or Python it's part of the standard library as opposed to YAML). What if we replaced the YAML backend with JSON backend? We could then use its output with the Mustache templates rather than building what is essentially an internal JSON backend inside the `HTMLMustacheGenerator`. We could do the same for Markdown as well, using a different set of Mustache templates with the output from the JSON backend. https://github.com/llvm/llvm-project/pull/138061 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits