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

View File

@@ -1,4 +1,8 @@
- iofhweio >
- foiew:
-^ ifoejwof
- iofhweio >
-foiew:
-^ ifoejwof
- ifoejwof

View File

@@ -1,4 +1,24 @@
- [cap_riga] 1 What is the capital of Latvia? >
- Riga
- [cap_riga] 2 What is the capital of Latvia? >
- Riga
17.11.2024 17\:51
- Mans secības jautājums? >
-^ Pirmais el
-^ Otrais el
-^ Trešais el
- [10.50] Grupas jaut >
- Grupa X1:
- Grupa A:
- Elements 1
- Elements 2
- [2.12] Izvēles jaut >
+ Element A
+ Element B
- Mans jautājums >
-^ Mana atbilde
-^ Tas ir order jautājums \:))
- 1 What is the capital of Latvia? >
- Riga

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-*'"])

View File

@@ -1,26 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}"
},
{
"name": "Debug with Build Flags",
"type": "go",
"request": "launch",
"mode": "debug",
"program": "${workspaceFolder}/mdemory-app-qt/main.go",
// "buildFlags": "-gcflags='all=-N -l'",
"args": [],
"env": {},
"cwd": "${workspaceFolder}"
}
]
}

View File

@@ -6,6 +6,7 @@ int initApp(int argc, char *argv[]) {
auto *app = new QApplication(argc, argv);
initMdemListWindow();
app->exec();
delete app;
return 0;
}