[all-commits] [llvm/llvm-project] 8d5bb5: [OptTable] Make new lines in help text respect ind...

Andres Villegas via All-commits all-commits at lists.llvm.org
Thu Dec 14 16:05:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d5bb54f774d9ddccdb9097fdc395ef46e372c70
      https://github.com/llvm/llvm-project/commit/8d5bb54f774d9ddccdb9097fdc395ef46e372c70
  Author: Andres Villegas <andresvi at google.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M llvm/lib/Option/OptTable.cpp
    M llvm/unittests/Option/OptionParsingTest.cpp
    M llvm/unittests/Option/Opts.td

  Log Message:
  -----------
  [OptTable] Make new lines in help text respect indentation (#75366)

With this changes, new lines in the HelpText defined in OptTable have
the same indentation as the first line.

Before, the help output will look something like:

```
--color=<value>       Whether to use color when
symbolizing log markup: always, auto, never
```

With this change:

```
--color=<value>       Whether to use color when
                      symbolizing log markup: always, auto, never
```




More information about the All-commits mailing list