r/cpp • • 12h ago

How to Generate C++ Docs Straight from Clang with MrDocs

https://www.youtube.com/watch?v=wn7Mux3uY2o

This is not just about an interesting topic, since I guess most of us have struggled with dogygen and are wishing for a better alternative, but also an amazingly creative way to release a tech talk (cppcon) video!

0 Upvotes

13 comments sorted by

10

u/t_hunger 12h ago

I would love to see the presentation, but this is just unwatchable. I am at a point where I skip anything that says C++ Alliance on its cover. I find their contents absolutely unconsumable.

5

u/nemetroid 11h ago

After trying to watch this video, I have to agree. Various cuts to other conversations, sentence rhythm killed by cutting silence leading to choppy speech, slides get ~30% of the video area, background music (??).

The contents seem interesting, but I will have to wait for the actual CppCon presentation to be posted.

1

u/bert8128 11h ago

What’s wrong with the C++ Alliance? They seem very well qualified and committed to c++.

9

u/JVApen Clever is an insult, not a compliment. - T. Winters 11h ago

"seem" is the important word.

An example where they could have done better: https://listarchives.boost.org/Archives/boost/2024/04/256404.php

They are also part of the group trying to stop C++26 with contracts in it. For example: https://web.archive.org/web/20260819155123if_/https://cppalliance.org/pdf/alliance-nb-petition.pdf

The flow of AI-slop created by them on the ISO mailing isn't helping either.

This sounds rather negative, though I do believe they have the best intentions in mind and I've also seen positive stuff about it. As humans are better at remembering bad things, I can't give specific examples about that.

•

u/_a4z 22m ago edited 16m ago

You have no idea what you are talking about.

C++ Alliance abstained from voting because within it, they have people from both sides, pro-contracts and against. You mix the individual take of one C++ Alliance member with the whole C++ Alliance. And that the C++ Alliance did not vote as its most prominent member is a strong point for it! Guess which shops do not have that liberal view
(this is btw public info available on the c++ alliance channel)

Beside, guess who sponsored the recent WG21 Meeting in Buzios?

This hatred here on this sub has really reached a point that is damaging to C++ and the C++ community. The MODs in this channel should address this, not take down the most discussed and upvoted threads. But they don't, and that raises the question: why?

2

u/bert8128 9h ago

Ug. I really want contracts…

3

u/t_hunger 11h ago

I have no idea what the c++ alliance is, whether ot not they are qualified or what they are commited to. I find all the contents I found under that banner so far unconsumable. Please go and make up your own mind.

The topic of this video is actually super interesting, I hope I can find that presentation online somewhere.

-4

u/_a4z 11h ago

If you don't watch it, how can you know that this is unwatchable?
Are you aware that it sounds kind of troll-like?

6

u/t_hunger 11h ago

I tried... after being told for the 100th time that it uses a compiler in the first minute or so I had to stop.

1

u/Kriemhilt 8h ago

I watched a bit of the video, and it's edited as a TV documentary for people with short attention spans.

It's a totally valid approach when presenting things to a lay audience, but I (and maybe others on r/cpp) would prefer something that gets to the point quickly and doesn't spend time lingering on coffee cups or backstory.

•

u/OxDEADFA11 3h ago

I personally started watching it. Firstly, I struggled to understand when intro part is ended and main part is started. After 5 minutes, I turned it off. It's some kind of TikTok-style of narration, IDK. For me, it's absolutely unwatchable.

7

u/xX_Negative_Won_Xx 11h ago

This is awesome tooling to have. Guaranteed faithful docs + Multiple machine readable output formats alone makes it better than current rustdoc IMO

The video is bizarre though. Why is there music? The jump cuts every 5s? Feels like a professional video editor who normally edits for influencers or drama channels was involved

4

u/ventZl 10h ago

The thing is that doxygen is pretty competent. Actually, suprisingly competent. You have to have huuuuge macro soup in the code to confuse it (I know it, because I have it).

My main problem was that if I wanted to combine API docs (where Doxygen is a decent option for C and C++) with hand-written text pages, Doxygen sucks. It has bugs in processing markdown, it isn't flexible with the structure, certain things simply don't work or are broken.

I ended up doing custom Doxygen XML to markdown converter and then merging that with markdown using Hugo. Disclaimer: There are solutions I deployed into production you shouldn't follow as an example. This is one of them.