mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-22 00:26:21 +00:00
static analysis script
Removed some files
This commit is contained in:
12
run_clang_tidy_test.py
Normal file
12
run_clang_tidy_test.py
Normal 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-*'"])
|
||||
Reference in New Issue
Block a user