[all-commits] [llvm/llvm-project] 7dc320: [docs][clang-format] Migrate generated clang-forma...
Reid Kleckner via All-commits
all-commits at lists.llvm.org
Mon Aug 3 09:44:45 PDT 2026
Branch: refs/heads/users/rnk/clang-format-md-write
Home: https://github.com/llvm/llvm-project
Commit: 7dc3205fecaa2d8d6be7efee071b4887c6b05705
https://github.com/llvm/llvm-project/commit/7dc3205fecaa2d8d6be7efee071b4887c6b05705
Author: Reid Kleckner <rkleckner at nvidia.com>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M clang/docs/ClangFormat.md
M clang/docs/ClangFormatStyleOptions.md
M clang/docs/tools/dump_format_help.py
M clang/docs/tools/dump_format_style.py
M clang/include/clang/Format/Format.h
M clang/include/clang/Tooling/Inclusions/IncludeStyle.h
Log Message:
-----------
[docs][clang-format] Migrate generated clang-format docs to markdown
The challenge here is that the documentation is generated from Doxygen
comments in headers, `Format.h` and `IncludeStyle.h`.
First, the generator was updated to generate markdown constructs, and
then the Doxygen comments were also modified to use markdown constructs.
Mostly this means using single backticks instead of double backticks,
which is the Doxygen-native way of expressing code font blocks anyway,
so that's good.
To validate, I built the Sphinx docs and the doxygen, and I confirmed
that the generator script is idempotent, meaning it doesn't change the
markdown output. When I add a new option to clang-format, it shows up in
the help text block, so it works.
Before/after validation links:
| Source file | Before HTML | After HTML |
| --- | --- | --- |
| `clang/docs/ClangFormat.md` | [before](https://clang.llvm.org/docs/ClangFormat.html) | [after](https://llvmdocs.staging.reidkleckner.dev/clang/docs/ClangFormat.html) |
| `clang/docs/ClangFormatStyleOptions.md` | [before](https://clang.llvm.org/docs/ClangFormatStyleOptions.html) | [after](https://llvmdocs.staging.reidkleckner.dev/clang/docs/ClangFormatStyleOptions.html) |
Assisted-by: an agent
Commit: 9dcb8491be799e27f9391985989ab86484a671dc
https://github.com/llvm/llvm-project/commit/9dcb8491be799e27f9391985989ab86484a671dc
Author: Reid Kleckner <rkleckner at nvidia.com>
Date: 2026-08-03 (Mon, 03 Aug 2026)
Changed paths:
M clang/docs/ClangFormat.md
M clang/docs/ClangFormatStyleOptions.md
M clang/docs/tools/dump_format_style.py
Log Message:
-----------
fix link word wrapping
Compare: https://github.com/llvm/llvm-project/compare/0ddaf318d5bb...9dcb8491be79
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list