mirror of
https://github.com/jorenchik/mdemory.git
synced 2026-03-21 16:16:19 +00:00
13 lines
390 B
Python
13 lines
390 B
Python
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-*'"])
|