[PATCH] D121890: [clang-format] Copy help options to the doc directory.

sstwcw via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 17 05:15:11 PDT 2022


sstwcw added inline comments.


================
Comment at: clang/docs/ClangFormat.rst:76
+    --output-replacements-xml      - Output replacements as XML.
+    --qualifier-alignment=<string> - If set, overrides the qualifier alignment style determined by the QualifierAlignment style flag
+    --sort-includes                - If set, overrides the include sorting behavior determined by the SortIncludes style flag
----------------
curdeius wrote:
> Shouldn't long descriptions like this one be split into multiple lines and aligned with `-`?
> Did you do it by hand or with some script?
It was not split in the `-help` output.  I copied the output from a terminal by hand.  If you run `clang-format -help` from the latest git build in an 80-column terminal you will see that output is all over the place.  The options that were broken into lines have hard line breaks lin `clang/tools/clang-format/ClangFormat.cpp`.  But now with the `--qualifier-alignment` option being too wide even those got pushed over 80 columns.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121890/new/

https://reviews.llvm.org/D121890



More information about the cfe-commits mailing list