[clang] [ast-matcher][NFC] make dump_ast_matchers.py run in any path (PR #117942)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 27 15:46:23 PST 2024


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 32ff209b87a84890a1487b4e0bbb4a7645d31645...65d7cd18a67fba41fe8cfe191217765830829bc9 clang/docs/tools/dump_ast_matchers.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- dump_ast_matchers.py	2024-11-27 23:42:41.000000 +0000
+++ dump_ast_matchers.py	2024-11-27 23:45:50.883543 +0000
@@ -18,11 +18,13 @@
 except Exception as e:
     CLASS_INDEX_PAGE = None
     print("Unable to get %s: %s" % (CLASS_INDEX_PAGE_URL, e))
 
 CURRENT_DIR = os.path.dirname(__file__)
-MATCHERS_FILE = os.path.join(CURRENT_DIR, "../../include/clang/ASTMatchers/ASTMatchers.h")
+MATCHERS_FILE = os.path.join(
+    CURRENT_DIR, "../../include/clang/ASTMatchers/ASTMatchers.h"
+)
 HTML_FILE = os.path.join(CURRENT_DIR, "../LibASTMatchersReference.html")
 
 # Each matcher is documented in one row of the form:
 #   result | name | argA
 # The subsequent row contains the documentation and is hidden by default,

``````````

</details>


https://github.com/llvm/llvm-project/pull/117942


More information about the cfe-commits mailing list