[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 27 02:26:34 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/test/lit.cfg.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- lit.cfg.py 2025-06-27 09:22:29.000000 +0000
+++ lit.cfg.py 2025-06-27 09:26:11.277653 +0000
@@ -178,13 +178,11 @@
config.available_features.add("z3")
if config.clang_staticanalyzer_z3_include_dir:
I_z3_include_dir = '-I "%s"' % config.clang_staticanalyzer_z3_include_dir
else:
config.available_features.add("no-z3")
- config.substitutions.append(
- ("%I_z3_include_dir", I_z3_include_dir)
- )
+ config.substitutions.append(("%I_z3_include_dir", I_z3_include_dir))
check_analyzer_fixit_path = os.path.join(
config.test_source_root, "Analysis", "check-analyzer-fixit.py"
)
config.substitutions.append(
``````````
</details>
https://github.com/llvm/llvm-project/pull/146042
More information about the cfe-commits
mailing list