Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This is an alternative to D121890.
This patch goes a step further and adds a script to update the .rst file.
It isn't invoked during the build, one needs to run it manually (just as dump_format_style.py).
There's also a validation option, currently set to column width at 95 chars. I fixed some very long lines but did't try to fix everything (it would need changing help message which is used not only by clang-format).
clang/tools/clang-format/ClangFormat.cpp | ||
---|---|---|
105 | Couldn't one split the string in python? I think an arbitrary position to split the help isn't nice. I for one have often the terminal over half the monitor spread, sometimes even the complete monitor. |
clang/tools/clang-format/ClangFormat.cpp | ||
---|---|---|
105 | Well, these strings are used to generate the output of clang-format --help, which is, IIUC, supposed to produce a 80-column output. |
clang/docs/tools/dump_format_help.py | ||
---|---|---|
29 | You intentionally did not write build/bin/clang-format to accommodate people who build in other directories, right? Sorry this comment is late. |
If nobody is against this patch. I'll land it soon, probably tomorrow.
clang/docs/tools/dump_format_help.py | ||
---|---|---|
29 | I wanted to be coherent with the generate_formatted_state.py script that calls clang-format from PATH as well. |
clang/docs/tools/dump_format_help.py | ||
---|---|---|
29 | you definitely can't assume "build", for me my build directory is build_ninja |
You intentionally did not write build/bin/clang-format to accommodate people who build in other directories, right? Sorry this comment is late.