Show HN: hdoc, the modern documentation tool for C++, is now open source
1–7 of 7 posts
Re: Show HN: hdoc, the modern documentation tool for C++, is now open source
#2Re: Show HN: hdoc, the modern documentation tool for C++, is now open source
#3Feel free to ask questions, we'll be answering as needed.
Re: Show HN: hdoc, the modern documentation tool for C++, is now open source
#4Hello HN, we've posted here several times but today we're announcing that hdoc is becoming open source. Our goal is to make hdoc available to a broader set of developers. On top of that, we're hosting the deveopment of open source projects for free at hdoc.io. Feel free to ask questions, we'll be answering as needed.
in my project, I use the catch2 framework,
the unit tests look like
TEST_CASE("....") {
}
this macro will be treated as invalid syntax by many c++ parsers, including doxygen's I think.
I notice that hdoc is based on clang. I tried using clang to dump syntax tree of the above code snippet, the result was incomprehensible, because the macro has been expanded by the preprocessor.
Re: Show HN: hdoc, the modern documentation tool for C++, is now open source
#5Hello HN, we've posted here several times but today we're announcing that hdoc is becoming open source. Our goal is to make hdoc available to a broader set of developers. On top of that, we're hosting the deveopment of open source projects for free at hdoc.io. Feel free to ask questions, we'll be answering as needed.
does this tool support preprocessor? in my project, I use the catch2 framework, the unit tests look like TEST_CASE("....") { } this macro will be treated as invalid syntax by many c++ parsers, including doxygen's I think. I notice that hdoc is based on clang. I tried using clang to dump syntax tree of the above code snippet, the result was incomprehensible, because the macro has been expanded by the preprocessor.
Re: Show HN: hdoc, the modern documentation tool for C++, is now open source
#6Earlier quoted context omitted.
does this tool support preprocessor? in my project, I use the catch2 framework, the unit tests look like TEST_CASE("....") { } this macro will be treated as invalid syntax by many c++ parsers, including doxygen's I think. I notice that hdoc is based on clang. I tried using clang to dump syntax tree of the above code snippet, the result was incomprehensible, because the macro has been expanded by the preprocessor.
hdoc uses Clang to parse your C++ code, so anything that Clang compiles should be fine. It's one of the benefits of using a production-quality parser instead of a homemade one like some other tools do.
I actually tried using clang -ast-dump to dump syntax tree of the above code snippet, the result was incomprehensible, because the macro has been expanded by the preprocessor.
Re: Show HN: hdoc, the modern documentation tool for C++, is now open source
#7Earlier quoted context omitted.
hdoc uses Clang to parse your C++ code, so anything that Clang compiles should be fine. It's one of the benefits of using a production-quality parser instead of a homemade one like some other tools do.
I'm interested in trying hdoc. I actually tried using clang -ast-dump to dump syntax tree of the above code snippet, the result was incomprehensible, because the macro has been expanded by the preprocessor.
Please do try hdoc. The source is now available and there are precompiled binaries available on hdoc.io. It takes about 2 minutes to go from downloading hdoc to seeing your documentation on a website if you use the latter route.