[all-commits] [llvm/llvm-project] 033d08: [docs][clang-format] Migrate generated clang-forma...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Mon Aug 3 09:55:59 PDT 2026


  Branch: refs/heads/users/rnk/clang-format-md-write
  Home:   https://github.com/llvm/llvm-project
  Commit: 033d086ab6e0e9d2776930ac7327ecc8c4729522
      https://github.com/llvm/llvm-project/commit/033d086ab6e0e9d2776930ac7327ecc8c4729522
  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: b24c9b6208c1b0ea05fcd602405ffc7a92fbd30f
      https://github.com/llvm/llvm-project/commit/b24c9b6208c1b0ea05fcd602405ffc7a92fbd30f
  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/9dcb8491be79...b24c9b6208c1

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