Are clang-doc and ExtractAPI Compatible?
At LLVM Dev Meeting 2025, I was asked whether Clang ExtractAPI could be used in clang-doc’s JSON generation. My answer was, because of the way that clang-doc uses templating, ExtractAPI’s JSON output wasn’t compatible with clang-doc. This actually isn’t entirely true and I wanted to clarify that answer since these tools actually do a lot of similar things, but they differ heavily architecturally. It also might be helpful to clarify since the LLVM project now has at least two tools that directly document source code into JSON. Spoiler: They’re compatible. Sort of. ...