[clang] [NFC][analyzer] Document configuration options (PR #135169)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 14 03:10:07 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r HEAD~1...HEAD clang/docs/tools/generate_analyzer_options_docs.py clang/test/lit.cfg.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- docs/tools/generate_analyzer_options_docs.py 2025-05-14 10:06:19.000000 +0000
+++ docs/tools/generate_analyzer_options_docs.py 2025-05-14 10:09:34.093585 +0000
@@ -189,12 +189,12 @@
def desc_to_rst_paragraphs(tok):
desc = string_value(tok)
# Escape some characters that have special meaning in RST:
- desc = err_handler.replace_as_tweak(desc, '*', r'\*', "escape star")
- desc = err_handler.replace_as_tweak(desc, '_', r'\_', "escape underline")
+ desc = err_handler.replace_as_tweak(desc, "*", r"\*", "escape star")
+ desc = err_handler.replace_as_tweak(desc, "_", r"\_", "escape underline")
# Many descriptions end with "Value: <list of accepted values>", which is
# OK for a terse command line printout, but should be prettified for web
# documentation.
# Moreover, the option ctu-invocation-list shows some example file content
``````````
</details>
https://github.com/llvm/llvm-project/pull/135169
More information about the cfe-commits
mailing list