[llvm] [workflows] Add post-commit job that periodically runs the clang static analyzer (PR #94106)
Artem Dergachev via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 14:56:28 PDT 2024
================
@@ -0,0 +1,34 @@
+import json
+import multiprocessing
+import os
+import re
+import subprocess
+import sys
+
+
+def run_analyzer(data):
+ os.chdir(data["directory"])
+ command = (
+ data["command"]
+ + f" --analyze --analyzer-output html -o analyzer-results -Xclang -analyzer-config -Xclang max-nodes=75000"
+ )
+ print(command)
+ subprocess.run(command, shell=True, check=True)
+
+
+def pool_error(e):
+ print("Error analyzing file:", e)
----------------
haoNoQ wrote:
```suggestion
print("Error analyzing file: ", e)
```
https://github.com/llvm/llvm-project/pull/94106
More information about the llvm-commits
mailing list