[llvm] [workflows] Add post-commit job that periodically runs the clang static analyzer (PR #94106)
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 6 14:59:54 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)
----------------
tstellar wrote:
Doesn't the print function automatically put a space between arguments?
https://github.com/llvm/llvm-project/pull/94106
More information about the llvm-commits
mailing list