static analysis script

Removed some files
This commit is contained in:
jorenchik
2024-11-17 18:38:23 +02:00
parent 34b62b5f88
commit 581b4b3926
5 changed files with 42 additions and 31 deletions

12
run_clang_tidy_test.py Normal file
View File

@@ -0,0 +1,12 @@
import os
import subprocess
directory = "src"
extensions = (".cpp", ".h")
for root, _, files in os.walk(directory):
for file in files:
if file.endswith(extensions):
filepath = os.path.join(root, file)
print("Analizē failu: ", filepath)
subprocess.run(["clang-tidy", filepath, "-p", "./Debug/src/transpiler", "-checks='clang-analyzer-*'"])