[clang] [clang-format][doc] fix documentation for clang-format (PR #83415)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 1 10:46:32 PST 2024
PeterChou1 wrote:
> Hi, you need to edit `clang/include/clang/Format/Format.h` and then run `clang/docs/tools/dump_format_style.py` to regenerate `clang/docs/ClangFormatStyleOptions.rst`.
Hi my mistake. I'm quite new to the LLVM project so I was not aware the docs were generated through a script I've updated
Format.h however I ended up needing to change how the auto generated python doc worked slightly
The problem was I couldn't carry over the generated member names to the parent type so i did added a simple search and replace to the generating script so now every time [[[NAME]]] is reference it will use the members name.
I'm not sure if this is the best way to do this though let me know if there's a better method
https://github.com/llvm/llvm-project/pull/83415
More information about the cfe-commits
mailing list