From 07d59e94f185a74a46cc3c26faf24fead47cd40d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 4 Dec 2024 21:38:14 +0100 Subject: [PATCH] Fix #13374 (Add --check-level=reduced option) (#6496) --- cli/cmdlineparser.cpp | 14 +- gui/cppcheck_de.ts | 285 +++++++++++++++-------------- gui/cppcheck_es.ts | 285 +++++++++++++++-------------- gui/cppcheck_fi.ts | 285 +++++++++++++++-------------- gui/cppcheck_fr.ts | 285 +++++++++++++++-------------- gui/cppcheck_it.ts | 285 +++++++++++++++-------------- gui/cppcheck_ja.ts | 285 +++++++++++++++-------------- gui/cppcheck_ka.ts | 285 +++++++++++++++-------------- gui/cppcheck_ko.ts | 285 +++++++++++++++-------------- gui/cppcheck_nl.ts | 285 +++++++++++++++-------------- gui/cppcheck_ru.ts | 285 +++++++++++++++-------------- gui/cppcheck_sr.ts | 285 +++++++++++++++-------------- gui/cppcheck_sv.ts | 285 +++++++++++++++-------------- gui/cppcheck_zh_CN.ts | 285 +++++++++++++++-------------- gui/cppcheck_zh_TW.ts | 285 +++++++++++++++-------------- gui/mainwindow.cpp | 13 +- gui/projectfile.cpp | 25 ++- gui/projectfile.h | 5 +- gui/projectfile.ui | 7 + gui/projectfiledialog.cpp | 20 +- lib/importproject.cpp | 14 +- lib/importproject.h | 2 + lib/settings.cpp | 11 +- lib/settings.h | 1 + man/manual.md | 6 + releasenotes.txt | 3 +- tools/compare-normal-exhaustive.py | 211 --------------------- tools/compare-valueflow-options.py | 205 +++++++++++++++++++++ tools/donate_cpu_lib.py | 4 +- 29 files changed, 2331 insertions(+), 2200 deletions(-) delete mode 100755 tools/compare-normal-exhaustive.py create mode 100755 tools/compare-valueflow-options.py diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index d0ab75f00e9..e901da9956c 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -471,7 +471,9 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a else if (std::strncmp(argv[i], "--check-level=", 14) == 0) { Settings::CheckLevel level = Settings::CheckLevel::normal; const std::string level_s(argv[i] + 14); - if (level_s == "normal") + if (level_s == "reduced") + level = Settings::CheckLevel::reduced; + else if (level_s == "normal") level = Settings::CheckLevel::normal; else if (level_s == "exhaustive") level = Settings::CheckLevel::exhaustive; @@ -952,6 +954,11 @@ CmdLineParser::Result CmdLineParser::parseFromArgs(int argc, const char* const a return Result::Fail; } + else if (std::strncmp(argv[i], "--performance-valueflow-max-iterations=", 39) == 0) { + if (!parseNumberArg(argv[i], 39, mSettings.vfOptions.maxIterations, true)) + return Result::Fail; + } + // Specify platform else if (std::strncmp(argv[i], "--platform=", 11) == 0) { const std::string platform(11+argv[i]); @@ -1528,8 +1535,9 @@ void CmdLineParser::printHelp() const " --check-config Check cppcheck configuration. The normal code\n" " analysis is disabled by this flag.\n" " --check-level=\n" - " Configure how much checking you want:\n" - " * normal: Cppcheck uses some compromises in the checking so\n" + " Configure how much valueflow analysis you want:\n" + " * reduced: Reduce valueflow to finish checking quickly.\n" + " * normal: Cppcheck uses some compromises in the analysis so\n" " the checking will finish in reasonable time.\n" " * exhaustive: deeper analysis that you choose when you can\n" " wait.\n" diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index 8a472e571e0..408ef3e610f 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -502,14 +502,14 @@ Parameter: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -649,14 +649,14 @@ Parameter: -l(line) (file) - + Show errors Zeige Fehler - + Show warnings Zeige Warnungen @@ -1081,7 +1081,7 @@ Parameter: -l(line) (file) - + Quick Filter: Schnellfilter: @@ -1167,30 +1167,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License Lizenz - + Authors Autoren - + Save the report file Speichert die Berichtdatei - - + + XML files (*.xml) XML-Dateien (*.xml) @@ -1234,7 +1234,7 @@ Dies wurde vermutlich durch einen Wechsel der Cppcheck-Version hervorgerufen. Bi - + Error Fehler @@ -1243,35 +1243,35 @@ Dies wurde vermutlich durch einen Wechsel der Cppcheck-Version hervorgerufen. Bi Laden von %1 fehlgeschlagen. Ihre Cppcheck-Installation ist defekt. Sie können --data-dir=<Verzeichnis> als Kommandozeilenparameter verwenden, um anzugeben, wo die Datei sich befindet. Bitte beachten Sie, dass --data-dir in Installationsroutinen genutzt werden soll, und die GUI bei dessen Nutzung nicht startet, sondern die Einstellungen konfiguriert. - + Open the report file Berichtdatei öffnen - + Text files (*.txt) Textdateien (*.txt) - + CSV files (*.csv) CSV-Dateien (*.csv) - + Project files (*.cppcheck);;All files(*.*) Projektdateien (*.cppcheck);;Alle Dateien(*.*) - + Select Project File Projektdatei auswählen - - - + + + Project: Projekt: @@ -1325,7 +1325,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1336,7 +1336,7 @@ Eine neue XML-Datei zu öffnen wird die aktuellen Ergebnisse löschen Möchten sie fortfahren? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1345,109 +1345,109 @@ Do you want to stop the analysis and exit Cppcheck? Wollen sie die Analyse abbrechen und Cppcheck beenden? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML-Dateien (*.xml);;Textdateien (*.txt);;CSV-Dateien (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? Erstellungsverzeichnis '%1' existiert nicht. Erstellen? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1456,22 +1456,22 @@ Analysis is stopped. Import von '%1' fehlgeschlagen; Analyse wurde abgebrochen. - + Project files (*.cppcheck) Projektdateien (*.cppcheck) - + Select Project Filename Projektnamen auswählen - + No project file loaded Keine Projektdatei geladen - + The project file %1 @@ -1488,12 +1488,12 @@ Do you want to remove the file from the recently used projects -list? Möchten Sie die Datei von der Liste der zuletzt benutzten Projekte entfernen? - + Install - + New version available: %1. %2 @@ -1562,7 +1562,7 @@ Options: Symbolname - + Edit suppression Fehlerunterdrückung bearbeiten @@ -1632,17 +1632,17 @@ Options: MISRA C 2012 - + MISRA rule texts MISRA-Regeltexte - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> <html><head/><body><p>Text aus Anhang A &quot;Summary of guidelines&quot; aus der MISRA-C-2012-PDF in eine Textdatei einfügen.</p></body></html> - + ... ... @@ -1654,7 +1654,7 @@ Options: - + Browse... Durchsuchen... @@ -1682,15 +1682,15 @@ Options: - + Edit Bearbeiten - - + + Remove Entfernen @@ -1726,7 +1726,7 @@ Options: - + Analysis Analyse @@ -1747,97 +1747,102 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) Prüfe Code in ungenutzten Templates (langsamere und weniger genaue Analyse) - + Max CTU depth Maximale CTU-Tiefe - + Max recursion in template instantiation - + Premium License - + Warning options Warnoptionen - + Root path: Wurzelverzeichnis: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) Warnungs-Tags (Semikolon-getrennt) - + Enable inline suppressions Inline-Fehlerunterdrückung aktivieren - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools Externe Werkzeuge @@ -1867,109 +1872,109 @@ Options: - + Check that each class has a safe public interface - + Limit analysis - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Suppressions Fehlerunterdrückungen - + Add Hinzufügen - - + + Addons Add-Ons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 Y2038 - + Thread safety Threadsicherheit - + Coding standards Programmierstandards - + Misra C - + 2012 - - + + 2023 - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer Clang-Analyzer - + Clang-tidy Clang-Tidy @@ -1987,82 +1992,82 @@ Options: Projektdatei: %1 - + Select Cppcheck build dir Wähle Cppcheck-Erstellungsverzeichnis - + Select include directory Wähle Include-Verzeichnisse - + Select a directory to check Wähle zu prüfendes Verzeichnis - + Clang-tidy (not found) Clang-tidy (nicht gefunden) - + Visual Studio Visual Studio - + Compile database Compilerdatenbank - + Borland C++ Builder 6 Borland C++-Builder 6 - + Import Project Projekt importieren - + Select directory to ignore Wähle zu ignorierendes Verzeichnis - + Source files - + All files - + Exclude file - + Select MISRA rule texts file Wähle MISRA-Regeltext-Datei - + MISRA rule texts file (%1) MISRA-Regeltext-Datei - + Select license file - + License file (%1) @@ -2347,27 +2352,27 @@ Options: Undefinierte Datei - + Copy Kopieren - + Could not find file: Kann Datei nicht finden: - + Please select the folder '%1' Bitte wählen Sie den Ordner '%1' - + Select Directory '%1' Wähle Verzeichnis '%1' - + Please select the directory where file is located. Bitte wählen Sie das Verzeichnis, wo sich die Datei befindet @@ -2382,27 +2387,27 @@ Options: Anmerkung - + Recheck Erneut prüfen - + Hide Verstecken - + Hide all with id Verstecke alle mit gleicher ID - + Suppress selected id(s) Ausgewählte ID(s) unterdrücken - + Open containing folder Übergeordneten Ordner öffnen @@ -2412,23 +2417,23 @@ Options: - + Tag Tag - + No tag Kein Tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2437,7 +2442,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2446,12 +2451,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! Datei konnte nicht gefunden werden! - + Could not start %1 Please check the application path and parameters are correct. @@ -2460,7 +2465,7 @@ Please check the application path and parameters are correct. Bitte überprüfen Sie ob der Pfad und die Parameter der Anwendung richtig eingestellt sind. - + Select Directory Wähle Verzeichnis diff --git a/gui/cppcheck_es.ts b/gui/cppcheck_es.ts index c522a46ee31..9ee45de4f07 100644 --- a/gui/cppcheck_es.ts +++ b/gui/cppcheck_es.ts @@ -482,14 +482,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -644,7 +644,7 @@ Parameters: -l(line) (file) - + Show errors Mostrar errores @@ -1049,7 +1049,7 @@ Parameters: -l(line) (file) - + Show warnings Mostrar advertencias @@ -1143,41 +1143,41 @@ Analysis is aborted. - + %1 Analysis is aborted. - - + + XML files (*.xml) Archivos XML (*.xml) - + Open the report file Abrir informe - + License Licencia - + Authors Autores - + Save the report file Guardar informe - + Quick Filter: Filtro rápido: @@ -1221,35 +1221,35 @@ Do you want to load this project file instead? - + Error Error - + Text files (*.txt) Ficheros de texto (*.txt) - + CSV files (*.csv) Ficheros CVS (*.cvs) - + Project files (*.cppcheck);;All files(*.*) Ficheros de proyecto (*.cppcheck;;Todos los ficheros (*.*) - + Select Project File Selecciona el archivo de proyecto - - - + + + Project: Proyecto: @@ -1301,7 +1301,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1309,81 +1309,81 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Project files (*.cppcheck) - + Select Project Filename Selecciona el nombre del proyecto - + No project file loaded No hay ningún proyecto cargado - + The project file %1 @@ -1400,67 +1400,67 @@ Do you want to remove the file from the recently used projects -list? ¿Quiere eliminar el fichero de la lista de proyectos recientes? - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1528,7 +1528,7 @@ Options: - + Edit suppression @@ -1596,53 +1596,53 @@ Options: Nota: Ponga sus propios archivos .cfg en la misma carpeta que el proyecto. Debería verlos arriba. - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Misra C - + 2012 - - + + 2023 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... @@ -1654,7 +1654,7 @@ Options: - + Browse... @@ -1682,15 +1682,15 @@ Options: - + Edit Editar - - + + Remove Eliminar @@ -1716,7 +1716,7 @@ Options: - + Analysis @@ -1742,77 +1742,82 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + Check that each class has a safe public interface - + Limit analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth - + Premium License - + Enable inline suppressions Habilitar supresiones inline - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools @@ -1837,37 +1842,37 @@ Options: - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Warning options - + Root path: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) @@ -1882,58 +1887,58 @@ Options: - + Suppressions Supresiones - + Add Añadir - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer - + Clang-tidy @@ -1951,82 +1956,82 @@ Options: Archivo de proyecto: %1 - + Select Cppcheck build dir - + Select include directory Selecciona una carpeta para incluir - + Select a directory to check Selecciona la carpeta a comprobar - + Clang-tidy (not found) - + Visual Studio - + Compile database - + Borland C++ Builder 6 - + Import Project - + Select directory to ignore Selecciona la carpeta a ignorar - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) @@ -2312,27 +2317,27 @@ Options: Fichero no definido - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. @@ -2357,27 +2362,27 @@ Options: depuración - + Recheck - + Hide Ocultar - + Hide all with id Ocultar todos con el mismo id - + Suppress selected id(s) - + Open containing folder Abrir carpeta contenedora @@ -2387,23 +2392,23 @@ Options: - + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2413,7 +2418,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2422,12 +2427,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! ¡No se ha encontrado el fichero! - + Could not start %1 Please check the application path and parameters are correct. @@ -2436,7 +2441,7 @@ Please check the application path and parameters are correct. Por favor comprueba que la ruta a la aplicación y los parámetros son correctos. - + Select Directory Selecciona carpeta diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index 5262f8f9cbb..0b94ee3c660 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -485,14 +485,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -636,14 +636,14 @@ Parameters: -l(line) (file) - + Show errors - + Show warnings @@ -1069,7 +1069,7 @@ Parameters: -l(line) (file) - + Quick Filter: @@ -1142,30 +1142,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License Lisenssi - + Authors Tekijät - + Save the report file Tallenna raportti - - + + XML files (*.xml) XML-tiedostot (*xml) @@ -1216,40 +1216,40 @@ This is probably because the settings were changed between the Cppcheck versions - + Error - + Open the report file - + Text files (*.txt) Tekstitiedostot (*.txt) - + CSV files (*.csv) - + Project files (*.cppcheck);;All files(*.*) - + Select Project File - - - + + + Project: @@ -1301,7 +1301,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1309,81 +1309,81 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Project files (*.cppcheck) - + Select Project Filename - + No project file loaded - + The project file %1 @@ -1394,67 +1394,67 @@ Do you want to remove the file from the recently used projects -list? - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1522,7 +1522,7 @@ Options: - + Edit suppression @@ -1590,17 +1590,17 @@ Options: - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... @@ -1612,7 +1612,7 @@ Options: - + Browse... @@ -1640,15 +1640,15 @@ Options: - + Edit - - + + Remove @@ -1684,7 +1684,7 @@ Options: - + Analysis @@ -1705,97 +1705,102 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth - + Max recursion in template instantiation - + Premium License - + Warning options - + Root path: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) - + Enable inline suppressions - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools @@ -1825,109 +1830,109 @@ Options: - + Check that each class has a safe public interface - + Limit analysis - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Suppressions - + Add - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Misra C - + 2012 - - + + 2023 - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer - + Clang-tidy @@ -1945,82 +1950,82 @@ Options: - + Select Cppcheck build dir - + Select include directory - + Select a directory to check - + Clang-tidy (not found) - + Visual Studio - + Compile database - + Borland C++ Builder 6 - + Import Project - + Select directory to ignore - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) @@ -2304,27 +2309,27 @@ Options: Määrittelemätön tiedosto - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. @@ -2339,27 +2344,27 @@ Options: - + Recheck - + Hide - + Hide all with id - + Suppress selected id(s) - + Open containing folder @@ -2369,23 +2374,23 @@ Options: - + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2393,19 +2398,19 @@ Configure the editor application for Cppcheck in preferences/Applications.Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston. - + No default editor application selected. Please select the default editor application in preferences/Applications. - + Could not find the file! - + Could not start %1 Please check the application path and parameters are correct. @@ -2414,7 +2419,7 @@ Please check the application path and parameters are correct. Tarkista että ohjelman polku ja parametrit ovat oikeat. - + Select Directory diff --git a/gui/cppcheck_fr.ts b/gui/cppcheck_fr.ts index 0c69d48d028..43d6c36b312 100644 --- a/gui/cppcheck_fr.ts +++ b/gui/cppcheck_fr.ts @@ -491,14 +491,14 @@ Paramètres : -l(ligne) (fichier) - - - - - - - - + + + + + + + + Cppcheck @@ -694,38 +694,38 @@ Paramètres : -l(ligne) (fichier) - + License Licence - + Authors Auteurs - + Save the report file Sauvegarder le rapport - - + + XML files (*.xml) Fichiers XML (*.xml) - + About - + Text files (*.txt) Fichiers Texte (*.txt) - + CSV files (*.csv) Fichiers CSV (*.csv) @@ -748,7 +748,7 @@ Paramètres : -l(ligne) (fichier) - + Show errors Afficher les erreurs @@ -820,7 +820,7 @@ Paramètres : -l(ligne) (fichier) - + Show warnings Afficher les avertissements @@ -857,129 +857,129 @@ Paramètres : -l(ligne) (fichier) Vous devez d'abord fermer le projet avant de choisir des fichiers/répertoires - + Open the report file Ouvrir le rapport - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Project files (*.cppcheck);;All files(*.*) - + Select Project File - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Select Project Filename - + No project file loaded - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1002,7 +1002,7 @@ This is probably because the settings were changed between the Cppcheck versions - + Quick Filter: Filtre rapide : @@ -1015,14 +1015,14 @@ Do you want to load this project file instead? - - - + + + Project: Projet : - + The project file %1 @@ -1076,7 +1076,7 @@ Do you want to remove the file from the recently used projects -list? - + Error Erreur @@ -1188,7 +1188,7 @@ Options: - + Build dir '%1' does not exist, create it? @@ -1216,7 +1216,7 @@ Options: - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) @@ -1278,14 +1278,14 @@ Analysis is aborted. - + %1 Analysis is aborted. - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1432,7 +1432,7 @@ Do you want to stop the analysis and exit Cppcheck? - + Project files (*.cppcheck) @@ -1477,7 +1477,7 @@ Do you want to stop the analysis and exit Cppcheck? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1513,7 +1513,7 @@ Do you want to proceed? - + Edit suppression @@ -1577,15 +1577,15 @@ Do you want to proceed? - + Edit Editer - - + + Remove Supprimer @@ -1600,12 +1600,12 @@ Do you want to proceed? Descendre - + Suppressions Suppressions - + Add Ajouter @@ -1615,7 +1615,7 @@ Do you want to proceed? - + ... @@ -1640,12 +1640,12 @@ Do you want to proceed? - + Root path: - + Warning tags (separated by semicolon) @@ -1680,75 +1680,75 @@ Do you want to proceed? - + Check that each class has a safe public interface - + Limit analysis - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + Clang analyzer - + Clang-tidy - + Browse... @@ -1779,117 +1779,122 @@ Do you want to proceed? - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Premium License - + Warning options - + Filepaths in warnings will be relative to this path - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Enable inline suppressions - + Misra C - + 2012 - - + + 2023 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + Misra C++ - + 2008 - + Cert C++ - + Bug hunting (Premium) - + External tools @@ -1910,18 +1915,18 @@ Do you want to proceed? - + Analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth @@ -1934,82 +1939,82 @@ Do you want to proceed? Fichier projet : %1 - + Select include directory Selectionner un répertoire à inclure - + Select directory to ignore Selectionner un répertoire à ignorer - + Select a directory to check Selectionner un répertoire à vérifier - + Select Cppcheck build dir - + Import Project - + Clang-tidy (not found) - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) - + Visual Studio - + Compile database - + Borland C++ Builder 6 @@ -2290,13 +2295,13 @@ Do you want to proceed? Fichier indéterminé - - + + Cppcheck - + Could not start %1 Please check the application path and parameters are correct. @@ -2319,17 +2324,17 @@ Merci de vérifier que le chemin de l'application et que les paramètres so Résumé - + Hide Cacher - + Could not find the file! Fichier introuvable ! - + Select Directory Selectionner dossier @@ -2364,14 +2369,14 @@ Merci de vérifier que le chemin de l'application et que les paramètres so - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2382,17 +2387,17 @@ Please select the default editor application in preferences/Applications.Id - + Hide all with id - + Open containing folder Ouvrir l'emplacement du fichier - + Recheck Revérifier @@ -2402,42 +2407,42 @@ Please select the default editor application in preferences/Applications. - + Suppress selected id(s) - + Tag - + No tag - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + Copy diff --git a/gui/cppcheck_it.ts b/gui/cppcheck_it.ts index 590071ef9d7..0f32e24a077 100644 --- a/gui/cppcheck_it.ts +++ b/gui/cppcheck_it.ts @@ -494,14 +494,14 @@ Parametri: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -645,14 +645,14 @@ Parametri: -l(line) (file) - + Show errors Mostra gli errori - + Show warnings Mostra gli avvisi @@ -1078,7 +1078,7 @@ Parametri: -l(line) (file) - + Quick Filter: Rapido filtro: @@ -1158,30 +1158,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License Licenza - + Authors Autori - + Save the report file Salva il file di rapporto - - + + XML files (*.xml) File XML (*.xml) @@ -1229,40 +1229,40 @@ Probabilmente ciò è avvenuto perché le impostazioni sono state modificate tra - + Error - + Open the report file Apri il file di rapporto - + Text files (*.txt) File di testo (*.txt) - + CSV files (*.csv) Files CSV (*.csv) - + Project files (*.cppcheck);;All files(*.*) Files di progetto (*.cppcheck);;Tutti i files(*.*) - + Select Project File Seleziona il file di progetto - - - + + + Project: Progetto: @@ -1314,7 +1314,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1322,81 +1322,81 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Project files (*.cppcheck) - + Select Project Filename Seleziona il nome del file di progetto - + No project file loaded Nessun file di progetto caricato - + The project file %1 @@ -1413,67 +1413,67 @@ Do you want to remove the file from the recently used projects -list? Vuoi rimuovere il file dalla lista dei progetti recentemente usati? - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1541,7 +1541,7 @@ Options: - + Edit suppression @@ -1609,53 +1609,53 @@ Options: - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Misra C - + 2012 - - + + 2023 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... @@ -1667,7 +1667,7 @@ Options: - + Browse... @@ -1695,15 +1695,15 @@ Options: - + Edit Modifica - - + + Remove Rimuovi @@ -1729,7 +1729,7 @@ Options: - + Analysis @@ -1755,77 +1755,82 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + Check that each class has a safe public interface - + Limit analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth - + Premium License - + Enable inline suppressions Abilita le soppressioni - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools @@ -1850,37 +1855,37 @@ Options: - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Warning options - + Root path: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) @@ -1895,58 +1900,58 @@ Options: - + Suppressions - + Add - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer - + Clang-tidy @@ -1964,82 +1969,82 @@ Options: File di progetto: %1 - + Select Cppcheck build dir - + Select include directory Seleziona la cartella da includere - + Select a directory to check Seleziona una cartella da scansionare - + Clang-tidy (not found) - + Visual Studio - + Compile database - + Borland C++ Builder 6 - + Import Project - + Select directory to ignore Seleziona la cartella da ignorare - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) @@ -2325,27 +2330,27 @@ Options: File indefinito - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. @@ -2360,27 +2365,27 @@ Options: - + Recheck - + Hide Nascondi - + Hide all with id - + Suppress selected id(s) - + Open containing folder @@ -2390,23 +2395,23 @@ Options: - + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2415,7 +2420,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2424,12 +2429,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! Non è stato possibile trovare il file! - + Could not start %1 Please check the application path and parameters are correct. @@ -2438,7 +2443,7 @@ Please check the application path and parameters are correct. Per favore verifica che il percorso dell'applicazione e i parametri siano corretti. - + Select Directory Seleziona Cartella diff --git a/gui/cppcheck_ja.ts b/gui/cppcheck_ja.ts index f26a88f42f8..39d43faf148 100644 --- a/gui/cppcheck_ja.ts +++ b/gui/cppcheck_ja.ts @@ -508,14 +508,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -670,7 +670,7 @@ Parameters: -l(line) (file) - + Show errors エラーを表示 @@ -783,7 +783,7 @@ Parameters: -l(line) (file) - + Show warnings 警告を表示 @@ -1106,7 +1106,7 @@ Cppcheckの古いバージョンの設定には互換性がありません。エ - + Quick Filter: クイックフィルタ: @@ -1187,7 +1187,7 @@ Do you want to load this project file instead? - + Error エラー @@ -1200,73 +1200,73 @@ Do you want to load this project file instead? %1 - %2 の読み込みに失敗 - - + + XML files (*.xml) XML ファイル (*.xml) - + Open the report file レポートを開く - + License ライセンス - + Authors 作者 - + Save the report file レポートを保存 - + Text files (*.txt) テキストファイル (*.txt) - + CSV files (*.csv) CSV形式ファイル (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. コンプライアンスレポートをすぐに生成できません。解析が完了し成功していなければなりません。コードを再解析して、致命的なエラーがないことを確認してください。 - + Project files (*.cppcheck);;All files(*.*) プロジェクトファイル (*.cppcheck);;すべてのファイル(*.*) - + Select Project File プロジェクトファイルを選択 - + Failed to open file ファイルを開くのに失敗しました - + Unknown project file format プロジェクトファイルの形式が不明です - + Failed to import project file プロジェクトファイルのインポートに失敗しました - + Failed to import '%1': %2 Analysis is stopped. @@ -1275,25 +1275,25 @@ Analysis is stopped. 解析を停止しました。 - + Failed to import '%1' (%2), analysis is stopped '%1' (%2) のインポートに失敗しました。解析は停止 - + Install インストール - + New version available: %1. %2 新しいバージョンが利用可能です。: %1. %2 - - - + + + Project: プロジェクト: @@ -1377,7 +1377,7 @@ Analysis is aborted. - + %1 Analysis is aborted. @@ -1386,7 +1386,7 @@ Analysis is aborted. 解析は中止した。 - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1396,7 +1396,7 @@ Do you want to proceed? 新しくXMLファイルを開くと現在の結果が削除されます。実行しますか? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1405,77 +1405,77 @@ Do you want to stop the analysis and exit Cppcheck? チェックを中断して、Cppcheckを終了しますか? - + About CppCheckについて - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML ファイル (*.xml);;テキストファイル (*.txt);;CSVファイル (*.csv) - + Build dir '%1' does not exist, create it? ビルドディレクトリ'%1'がありません。作成しますか? - + To check the project using addons, you need a build directory. アドオンを使用してプロジェクトをチェックするためには、ビルドディレクトリが必要です。 - + Show Mandatory 必須を表示 - + Show Required 要求を表示 - + Show Advisory 推奨を表示 - + Show Document ドキュメントを表示 - + Show L1 L1を表示 - + Show L2 L2を表示 - + Show L3 L3を表示 - + Show style スタイルを表示 - + Show portability 移植可能性を表示 - + Show performance パフォーマンスを表示 - + Show information 情報を表示 @@ -1484,22 +1484,22 @@ Do you want to stop the analysis and exit Cppcheck? '%1'のインポートに失敗しました。(チェック中断) - + Project files (*.cppcheck) プロジェクトファイル (*.cppcheck) - + Select Project Filename プロジェクトファイル名を選択 - + No project file loaded プロジェクトファイルが読み込まれていません - + The project file %1 @@ -1585,7 +1585,7 @@ Options: シンボル名 - + Edit suppression 抑制の編集 @@ -1657,17 +1657,17 @@ Options: MISRA C 2012 - + MISRA rule texts MISRA ルールテキスト - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> <html><head/><body><p>MISRA C 2012 pdfのAppendix A &quot;Summary of guidelines&quot; からテキストをコピーペーストしてください。</p></body></html> - + ... ... @@ -1679,7 +1679,7 @@ Options: - + Browse... 参照... @@ -1707,15 +1707,15 @@ Options: - + Edit 編集 - - + + Remove 取り除く @@ -1741,7 +1741,7 @@ Options: - + Analysis チェック @@ -1767,108 +1767,113 @@ Options: + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + + + + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. #N 通常 -- CIでの通常の解析を意味します。解析が合理的な時間内に完了すべきです。 - + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). #E 徹底的 -- ナイトリービルド等を意味します。解析時間はより長くなることがあります (コンパイルの10倍以上時間がかかってもよい)。 - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) ヘッダファイルのコードもチェック (通常はONにしてください、制限するときのみOFF) - + Premium License プレミアムライセンス - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. タグが追加された場合、警告上で右クリックしてそれらのタグの中の一つを設定できます。警告を分類できます。 - + Exclude source files 除外するソースファイル - + Exclude folder... フォルダで除外... - + Exclude file... ファイルで除外... - + Check that each class has a safe public interface クラスが安全で公開されたインターフェースをもっているか確認 - + Limit analysis 解析の制限 - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) 未使用テンプレートのコードもチェック (解析に時間がかかり、また正確性は低い) - + Max CTU depth CTUの最大深さ - + Enable inline suppressions inline抑制を有効にする - + Misra C MISRA C - + 2012 2012 - - + + 2023 2023 - + Misra C++ MISRA C++ - + 2008 2008 - + Cert C++ Cert C++ - + Bug hunting (Premium) バグハンティング(プレミアム) - + External tools 外部ツール @@ -1893,32 +1898,32 @@ Options: Clang (実験的) - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. 可能な限りクラスが柔軟であり堅牢であることを望む場合、公開されたインターフェースが非常に堅牢です。Cppcheckは引数があらゆる値をとりうると仮定します。 - + Max recursion in template instantiation テンプレートインスタンス化の最大再帰回数 - + Warning options 警告オプション - + Root path: ルートパス: - + Filepaths in warnings will be relative to this path 警告中のファイルパスはこのパスからの相対パスになります - + Warning tags (separated by semicolon) 警告タグ(セミコロン区切り) @@ -1933,38 +1938,38 @@ Options: ライブラリ - + Suppressions 指摘の抑制 - + Add 追加 - - + + Addons アドオン - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. 注意: アドオンには<a href="https://www.python.org/">Python</a>が必要です。 - + Y2038 Y2038 - + Thread safety スレッドセーフ - + Coding standards コーディング標準 @@ -1973,12 +1978,12 @@ Options: MISRA C 2012 - + Cert C CERT C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) CERT-INT35-C: int型の精度 (もしサイズが精度と一致する場合空のままにしてください) @@ -1987,22 +1992,22 @@ Options: MISRA C++ 2008 - + Autosar AUTOSAR - + Bug hunting バグハント - + Clang analyzer Clang Analyzer - + Clang-tidy Clang-tidy @@ -2020,82 +2025,82 @@ Options: プロジェクトファイル:%1 - + Select Cppcheck build dir Cppcheckビルドディレクトリ - + Select include directory includeディレクトリを選択 - + Select a directory to check チェックするディレクトリを選択してください - + Clang-tidy (not found) Clang-tidy (みつかりません) - + Visual Studio Visual Studio - + Compile database コンパイルデータベース - + Borland C++ Builder 6 Borland C++ Builder 6 - + Import Project プロジェクトのインポート - + Select directory to ignore 除外するディレクトリを選択してください - + Source files ソースファイル - + All files 全ファイル - + Exclude file 除外ファイル - + Select MISRA rule texts file MISRAルールテキストファイルを選択 - + MISRA rule texts file (%1) MISRAルールテキストファイル (%1) - + Select license file ライセンスファイルの選択 - + License file (%1) ライセンスファイル (%1) @@ -2381,27 +2386,27 @@ Options: 未定義ファイル - + Copy コピー - + Could not find file: ファイルが見つかりません: - + Please select the folder '%1' フォルダ '%1' を選択してください - + Select Directory '%1' ディレクトリ '%1' 選択 - + Please select the directory where file is located. ファイルのあるディレクトリを選択してください。 @@ -2416,27 +2421,27 @@ Options: 注意 - + Recheck 再チェック - + Hide 非表示 - + Hide all with id IDで非表示を指定 - + Suppress selected id(s) 選択したidを抑制 - + Open containing folder 含まれるフォルダを開く @@ -2446,23 +2451,23 @@ Options: 内部 - + Tag タグ - + No tag タグなし - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2472,7 +2477,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2481,12 +2486,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! ファイルが見つかりません! - + Could not start %1 Please check the application path and parameters are correct. @@ -2495,7 +2500,7 @@ Please check the application path and parameters are correct. 実行ファイルパスや引数の設定を確認してください。 - + Select Directory ディレクトリを選択 diff --git a/gui/cppcheck_ka.ts b/gui/cppcheck_ka.ts index 63d6f0aa44c..b26df21c3bb 100644 --- a/gui/cppcheck_ka.ts +++ b/gui/cppcheck_ka.ts @@ -484,14 +484,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -635,14 +635,14 @@ Parameters: -l(line) (file) - + Show errors შეცდომების ჩვენება - + Show warnings გაფრთხილების ჩვენება @@ -1068,7 +1068,7 @@ Parameters: -l(line) (file) - + Quick Filter: სწრაფი ფილტრი: @@ -1151,7 +1151,7 @@ Analysis is aborted. - + %1 Analysis is aborted. @@ -1160,23 +1160,23 @@ Analysis is aborted. ანალიზი შეწყვეტილია. - + License ლიცენზია - + Authors ავტორები - + Save the report file ანგარიშის ფაილში ჩაწერა - - + + XML files (*.xml) XML ფაილები (*.xml) @@ -1223,40 +1223,40 @@ This is probably because the settings were changed between the Cppcheck versions - + Error შეცდომა - + Open the report file ანგარიშის ფაილის გახსნა - + Text files (*.txt) ტექსტური ფაილები (*.txt) - + CSV files (*.csv) CSV ფაილები (*.csv) - + Project files (*.cppcheck);;All files(*.*) პროექტის ფაილები (*.cppcheck);;ყველა ფაილი(*.*) - + Select Project File აირჩიეთ პროექტის ფაილი - - - + + + Project: პროექტი: @@ -1310,7 +1310,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1321,7 +1321,7 @@ Do you want to proceed? გნებავთ, გააგრძელოთ? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1330,47 +1330,47 @@ Do you want to stop the analysis and exit Cppcheck? გნებავთ, გააჩეროთ ანალიზი და გახვიდეთ Cppcheck-დან? - + About შესახებ - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML ფაილები (*.xml);;ტექსტური ფაილები (*.txt);;CSV ფაილები (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. შესაბამისობის ანგარიშის გენერაცია ახლა შეუძლებელია, რადგან ჯერ ანალიზი წარმატებით უნდა დასრულდეს. სცადეთ, კოდის ანალიზი თავიდან გაუშვათ და დარწმუნდეთ, რომ კრიტიკული შეცდომები არ არსებობს. - + Build dir '%1' does not exist, create it? აგების საქაღალდე (%1) არ არსებობს. შევქმნა? - + To check the project using addons, you need a build directory. პროექტის დამატებებით შესამოწმებლად აგების საქაღალდე გჭირდებათ. - + Failed to open file ფაილის გახსნის შეცდომა - + Unknown project file format უცნობი პროექტის ფაილის ფორმატი - + Failed to import project file პროექტის ფაილის შემოტანა ჩავარდა - + Failed to import '%1': %2 Analysis is stopped. @@ -1379,27 +1379,27 @@ Analysis is stopped. ანალიზი შეწყდა. - + Failed to import '%1' (%2), analysis is stopped '%1'-ის (%2) შემოტანა ჩავარდა. ანალიზი შეწყდა - + Project files (*.cppcheck) პროექტის ფაილები (*.cppcheck) - + Select Project Filename აირჩიეთ პროექტის ფაილის სახელი - + No project file loaded პროექტის ფაილი ჩატვირთული არაა - + The project file %1 @@ -1416,67 +1416,67 @@ Do you want to remove the file from the recently used projects -list? გნებავთ წაშალოთ ეს ფაილი ახლახან გამოყენებული პროექტების სიიდან? - + Install დაყენება - + New version available: %1. %2 ხელმისაწვდომია ახალი ვერსია: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1557,7 +1557,7 @@ Options: სიმბოლოს სახელი - + Edit suppression ჩახშობის ჩასწორება @@ -1630,57 +1630,57 @@ Options: Clang (ექსპერიმენტული) - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) თავსართის ფაილებში არსებული კოდის შეწმება (ნაგულისხმევად, ეს ჩართულია. თუ გნებავთ შეზღუდული სწრაფი ანალიზი, მაშინ გამორთეთ ეს) - + Max recursion in template instantiation - + Filepaths in warnings will be relative to this path ფაილის ბილიკები ამ ბილიკის ფარდობითი იქნება - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. თუ ჭდეები დამატებულია, შეგიძლიათ, გაფრთხილებებზე მარჯვენა ღილაკით დააწკაპუნოთ და დააყენოთ ერთ-ერთი ჭდე. გაფრთხილებების კატეგორიებად დალაგება ხელით შეგიძლიათ. - + Exclude source files კოდის ფაილების ამოღება - + Exclude folder... საქაღალდის ამოღება... - + Exclude file... ფაილის ამოღება... - + MISRA rule texts MISRA-ის წესის ტექსტები - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... ... @@ -1692,7 +1692,7 @@ Options: - + Browse... ნუსხა... @@ -1720,15 +1720,15 @@ Options: - + Edit ჩასწორება - - + + Remove წაშლა @@ -1754,7 +1754,7 @@ Options: - + Analysis ანალიზი @@ -1780,77 +1780,82 @@ Options: + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + + + + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. ნორმალური -- ნიშნავს ნორმალურ ანალიზს CI-ში. ანალიზი მისაღებ დროში დასრულდება. - + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). ამომწურავი -- განკუთვნილია ღამის აგებებისთვის და ა.შ. ანალიზის დრო, შეიძლება, უფრო მეტიც იყოს (კომპილაციაზე 10x მეტი დრო ჩვეულებრივი ამბავია). - + Check that each class has a safe public interface შემოწმება, აქვს თუ არა ყველა კლასს უსაფრთხო საჯარო ინტერფეისი - + Limit analysis ანალიზის შეზღუდვა - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth CTU-ის მაქსიმალური სიღრმე - + Premium License - + Enable inline suppressions შეცდომების ხაზშივე ჩახშობის ჩართვა - + Misra C++ Misra C++ - + 2008 2008 - + Cert C Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) CERT-INT35-C: მთელი რიცხვის სიზუსტე (თუ ზომა სიზუსტეს ემთხვევა, შეგიძლიათ, ცარიელი დატოვოთ) - + Autosar - + Bug hunting შეცდომებზე ნადირობა - + External tools გარე ხელსაწყოები @@ -1870,17 +1875,17 @@ Options: პლატფორმა - + Warning options გაფრთხილების მორგება - + Root path: Root ბილიკი: - + Warning tags (separated by semicolon) გაფრთხილების ჭდეები (წერტილმძიმით გამოყოფილი) @@ -1895,74 +1900,74 @@ Options: ბიბლიოთეკები - + Suppressions ჩახშობები - + Add დამატება - - + + Addons დამატებები - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. შენიშვნა: დამატებას დაყენებული <a href="https://www.python.org/">Python</a> სჭირდება. - + Y2038 Y2038 - + Thread safety ნაკადების უსაფრთხოება - + Coding standards კოდირების სტანდარტები - + Misra C Misra C - + 2012 2012 - - + + 2023 2023 - + Cert C++ Cert C++ - + Bug hunting (Premium) შეცდომებზე ნადირობა (ფასიანი) - + Clang analyzer Clang-ის ანალიზატორი - + Clang-tidy Clang-tidy @@ -1980,82 +1985,82 @@ Options: პროექტის ფაილი: %1 - + Select Cppcheck build dir აირჩიეთ Cppcheck-ის აგების საქაღალდე - + Select include directory აირჩიეთ ჩასასმელი საქაღალდე - + Select a directory to check აირჩიეთ შესამოწმებელი საქაღალდე - + Clang-tidy (not found) Clang-tidy (ვერ ვიპოვე) - + Visual Studio Visual Studio - + Compile database მონაცემთა ბაზის კომპილაცია - + Borland C++ Builder 6 Borland C++ Builder 6 - + Import Project პროექტის შემოტანა - + Select directory to ignore აირჩიეთ გამოსატოვებელი საქაღალდე - + Source files კოდის ფაილები - + All files ყველა ფაილი - + Exclude file ფაილის ამოღება - + Select MISRA rule texts file აირჩიეთ MISRA-ის წესების ტექსტის ფაილი - + MISRA rule texts file (%1) MISRA-ის წესის ტექსტების ფაილი (%1) - + Select license file - + License file (%1) @@ -2343,27 +2348,27 @@ Options: გაურკვეველი ფაილი - + Copy კოპირება - + Could not find file: ვერ ვიპოვე ფაილი: - + Please select the folder '%1' აირჩიეთ საქაღალდე '%1' - + Select Directory '%1' აირჩიეთ საქაღალდე '%1' - + Please select the directory where file is located. აირჩიეთ საქაღალდე, სადაც ფაილია მოთავსებული. @@ -2378,27 +2383,27 @@ Options: ნოტა - + Recheck თავიდან შემოწმება - + Hide დამალვა - + Hide all with id დამალვა ყველასი id-ით - + Suppress selected id(s) მონიშნული id(ებ)-ის ჩახშობა - + Open containing folder შემცველი საქაღალდის გახსნა @@ -2408,23 +2413,23 @@ Options: შიდა - + Tag იარლიყი - + No tag ჭდის გარეშე - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2434,7 +2439,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2443,12 +2448,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! ფაილი ვერ ვიპოვე! - + Could not start %1 Please check the application path and parameters are correct. @@ -2457,7 +2462,7 @@ Please check the application path and parameters are correct. შეამოწმეთ, სწორია, თუ არა აპლიკაციის ბილიკი და მისი პარამეტრები. - + Select Directory აირჩიეთ საქაღალდე diff --git a/gui/cppcheck_ko.ts b/gui/cppcheck_ko.ts index 9fa96968ffd..8a3efb2e1d6 100644 --- a/gui/cppcheck_ko.ts +++ b/gui/cppcheck_ko.ts @@ -491,14 +491,14 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -642,7 +642,7 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: - + Show errors 애러 표시 @@ -749,7 +749,7 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: - + Show warnings 경고 표시 @@ -857,7 +857,7 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: - + Quick Filter: 빠른 필터: @@ -885,153 +885,153 @@ Do you want to load this project file instead? 이 프로젝트 파일을 불러오겠습니까? - - + + XML files (*.xml) XML 파일 (*.xml) - + Open the report file 보고서 파일 열기 - + License 저작권 - + Authors 제작자 - + Save the report file 보고서 파일 저장 - + Text files (*.txt) 텍스트 파일 (*.txt) - + CSV files (*.csv) CSV 파일 (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Project files (*.cppcheck);;All files(*.*) 프로젝트 파일 (*.cppcheck);;모든 파일(*.*) - + Select Project File 프로젝트 파일 선택 - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information - - - + + + Project: 프로젝트: @@ -1066,34 +1066,34 @@ Analysis is aborted. - + %1 Analysis is aborted. - + About - + To check the project using addons, you need a build directory. - + Select Project Filename 프로젝트 파일이름 선택 - + No project file loaded 프로젝트 파일 불러오기 실패 - + The project file %1 @@ -1123,7 +1123,7 @@ Do you want to remove the file from the recently used projects -list? - + Error @@ -1233,7 +1233,7 @@ Options: - + Build dir '%1' does not exist, create it? @@ -1261,7 +1261,7 @@ Options: - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) @@ -1293,7 +1293,7 @@ Do you want to proceed analysis without using any of these project files? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1440,7 +1440,7 @@ Do you want to stop the analysis and exit Cppcheck? C++14 - + Project files (*.cppcheck) @@ -1485,7 +1485,7 @@ Do you want to stop the analysis and exit Cppcheck? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1521,7 +1521,7 @@ Do you want to proceed? - + Edit suppression @@ -1585,15 +1585,15 @@ Do you want to proceed? - + Edit 편집 - - + + Remove 제거 @@ -1608,12 +1608,12 @@ Do you want to proceed? 아래로 - + Suppressions - + Add @@ -1623,7 +1623,7 @@ Do you want to proceed? - + ... @@ -1648,12 +1648,12 @@ Do you want to proceed? - + Root path: - + Warning tags (separated by semicolon) @@ -1688,75 +1688,75 @@ Do you want to proceed? - + Check that each class has a safe public interface - + Limit analysis - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + Clang analyzer - + Clang-tidy - + Browse... @@ -1787,117 +1787,122 @@ Do you want to proceed? - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Premium License - + Warning options - + Filepaths in warnings will be relative to this path - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Enable inline suppressions Inline suppression 사용 - + Misra C - + 2012 - - + + 2023 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + Misra C++ - + 2008 - + Cert C++ - + Bug hunting (Premium) - + External tools @@ -1918,18 +1923,18 @@ Do you want to proceed? - + Analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth @@ -1942,82 +1947,82 @@ Do you want to proceed? 프로젝트 파일: %1 - + Select include directory Include 디렉토리 선택 - + Select a directory to check 검사할 디렉토리 선택 - + Select directory to ignore 무시할 디렉토리 선택 - + Select Cppcheck build dir - + Import Project - + Clang-tidy (not found) - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) - + Visual Studio - + Compile database - + Borland C++ Builder 6 @@ -2342,18 +2347,18 @@ Do you want to proceed? - + Hide 숨기기 - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2362,7 +2367,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2371,12 +2376,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! 파일을 찾을 수 없습니다! - + Could not start %1 Please check the application path and parameters are correct. @@ -2385,22 +2390,22 @@ Please check the application path and parameters are correct. 경로와 인자가 정확한지 확인하세요. - + Select Directory 디렉토리 선택 - + Hide all with id - + Open containing folder - + Recheck @@ -2410,42 +2415,42 @@ Please check the application path and parameters are correct. - + Suppress selected id(s) - + Tag - + No tag - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + Copy diff --git a/gui/cppcheck_nl.ts b/gui/cppcheck_nl.ts index e1064b8bc15..d379928315d 100644 --- a/gui/cppcheck_nl.ts +++ b/gui/cppcheck_nl.ts @@ -495,14 +495,14 @@ Parameters: -l(lijn) (bestand) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -646,14 +646,14 @@ Parameters: -l(lijn) (bestand) - + Show errors Toon fouten - + Show warnings Toon waarschuwingen @@ -1079,7 +1079,7 @@ Parameters: -l(lijn) (bestand) - + Quick Filter: Snel Filter: @@ -1153,30 +1153,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License Licentie - + Authors Auteurs - + Save the report file Rapport opslaan - - + + XML files (*.xml) XML bestanden (*.xml) @@ -1229,40 +1229,40 @@ Dit is waarschijnlijk omdat de instellingen zijn gewijzigd tussen de versies van - + Error - + Open the report file Open het rapport bestand - + Text files (*.txt) Tekst bestanden (*.txt) - + CSV files (*.csv) CSV bestanden (*.csv) - + Project files (*.cppcheck);;All files(*.*) Project bestanden (*.cppcheck);;Alle bestanden(*.*) - + Select Project File Selecteer project bestand - - - + + + Project: Project: @@ -1314,7 +1314,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1322,81 +1322,81 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Project files (*.cppcheck) - + Select Project Filename Selecteer project bestandsnaam - + No project file loaded Geen project bestand geladen - + The project file %1 @@ -1412,67 +1412,67 @@ Kan niet worden gevonden! Wilt u het bestand van de onlangs gebruikte project verwijderen -lijst? - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1540,7 +1540,7 @@ Options: - + Edit suppression @@ -1608,53 +1608,53 @@ Options: - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Misra C - + 2012 - - + + 2023 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... @@ -1666,7 +1666,7 @@ Options: - + Browse... @@ -1694,15 +1694,15 @@ Options: - + Edit Bewerk - - + + Remove Verwijder @@ -1728,7 +1728,7 @@ Options: - + Analysis @@ -1754,77 +1754,82 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + Check that each class has a safe public interface - + Limit analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth - + Premium License - + Enable inline suppressions Schakel inline suppressies in - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools @@ -1849,37 +1854,37 @@ Options: - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Warning options - + Root path: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) @@ -1894,58 +1899,58 @@ Options: - + Suppressions - + Add - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer - + Clang-tidy @@ -1963,82 +1968,82 @@ Options: Project Bestand %1 - + Select Cppcheck build dir - + Select include directory Selecteer include map - + Select a directory to check Selecteer een map om te controleren - + Clang-tidy (not found) - + Visual Studio - + Compile database - + Borland C++ Builder 6 - + Import Project - + Select directory to ignore Selecteer een map om te negeren - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) @@ -2326,27 +2331,27 @@ Options: Niet gedefinieerd bestand - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. @@ -2361,27 +2366,27 @@ Options: - + Recheck - + Hide Verberg - + Hide all with id Verberg alles met id - + Suppress selected id(s) - + Open containing folder @@ -2391,23 +2396,23 @@ Options: - + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2417,7 +2422,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2425,12 +2430,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! Kon het bestand niet vinden! - + Could not start %1 Please check the application path and parameters are correct. @@ -2439,7 +2444,7 @@ Please check the application path and parameters are correct. Gelieve te controleren of de het pad en de parameters correct zijn. - + Select Directory Selecteer map diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index d6a262bbd5f..95d35a7d9c1 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -495,14 +495,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -646,14 +646,14 @@ Parameters: -l(line) (file) - + Show errors Показать ошибки - + Show warnings Показать предупреждения @@ -1079,7 +1079,7 @@ Parameters: -l(line) (file) - + Quick Filter: Быстрый фильтр: @@ -1160,30 +1160,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License Лицензия - + Authors Авторы - + Save the report file Сохранить файл с отчетом - - + + XML files (*.xml) XML-файлы (*.xml) @@ -1232,7 +1232,7 @@ This is probably because the settings were changed between the Cppcheck versions - + Error Ошибка @@ -1241,35 +1241,35 @@ This is probably because the settings were changed between the Cppcheck versions Невозможно загрузить %1. Cppcheck установлен некорректно. Вы можете использовать --data-dir=<directory> в командной строке для указания расположения файлов конфигурации. Обратите внимание, что --data-dir предназначен для использования сценариями установки. При включении данной опции, графический интерфейс пользователя не запускается. - + Open the report file Открыть файл с отчетом - + Text files (*.txt) Текстовые файлы (*.txt) - + CSV files (*.csv) CSV файлы(*.csv) - + Project files (*.cppcheck);;All files(*.*) Файлы проекта (*.cppcheck);;Все файлы(*.*) - + Select Project File Выберите файл проекта - - - + + + Project: Проект: @@ -1323,7 +1323,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1334,7 +1334,7 @@ Do you want to proceed? Вы хотите продолжить? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1343,109 +1343,109 @@ Do you want to stop the analysis and exit Cppcheck? Вы хотите остановить анализ и выйти из Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML файлы (*.xml);;Текстовые файлы (*.txt);;CSV файлы (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? Директория для сборки '%1' не существует, создать? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1454,22 +1454,22 @@ Analysis is stopped. Невозможно импортировать '%1', анализ остановлен - + Project files (*.cppcheck) Файлы проекта (*.cppcheck) - + Select Project Filename Выберите имя файла для проекта - + No project file loaded Файл с проектом не загружен - + The project file %1 @@ -1485,12 +1485,12 @@ Do you want to remove the file from the recently used projects -list? Хотите удалить его из списка проектов? - + Install - + New version available: %1. %2 @@ -1571,7 +1571,7 @@ Options: Имя символа - + Edit suppression Редактировать подавление @@ -1644,42 +1644,42 @@ Options: - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Filepaths in warnings will be relative to this path - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... @@ -1688,17 +1688,17 @@ Options: MISRA C 2012 - + MISRA rule texts Файл с текстами правил MISRA - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> <html><head/><body><p>Скопируйте текст из Appendix A &quot;Summary of guidelines&quot; из фала правил MISRA C 2012 pdf в текстовый файл.</p></body></html> - + ... ... @@ -1710,7 +1710,7 @@ Options: - + Browse... Обзор... @@ -1738,15 +1738,15 @@ Options: - + Edit Изменить - - + + Remove Удалить @@ -1772,7 +1772,7 @@ Options: - + Analysis Анализ @@ -1798,77 +1798,82 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + Check that each class has a safe public interface - + Limit analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) Проверить код в неиспользуемых шаблонах - + Max CTU depth Максимальная глубина CTU - + Premium License - + Enable inline suppressions Включить inline-подавление ошибок - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools Внешние инструменты @@ -1888,17 +1893,17 @@ Options: Платформа - + Warning options Опции предупреждений - + Root path: Корневой каталог: - + Warning tags (separated by semicolon) Теги предупреждений (через ';') @@ -1913,74 +1918,74 @@ Options: Библиотеки - + Suppressions Подавления - + Add Добавить - - + + Addons Дополнения - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards Стандарты кодирования - + Misra C - + 2012 - - + + 2023 - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer - + Clang-tidy @@ -1998,82 +2003,82 @@ Options: Файл проекта: %1 - + Select Cppcheck build dir Выбрать директорию сборки Cppcheck - + Select include directory Выберите директорию для поиска заголовочных файлов - + Select a directory to check Выберите директорию для проверки - + Clang-tidy (not found) Clang-tidy (не найден) - + Visual Studio Visual Studio - + Compile database - + Borland C++ Builder 6 Borland C++ Builder 6 - + Import Project Импорт проекта - + Select directory to ignore Выберите директорию, которую надо проигнорировать - + Source files - + All files - + Exclude file - + Select MISRA rule texts file Выбрать файл текстов правил MISRA - + MISRA rule texts file (%1) Файл текстов правил MISRA (%1) - + Select license file - + License file (%1) @@ -2361,27 +2366,27 @@ Options: Неопределенный файл - + Copy Копировать - + Could not find file: Невозможно найти файл: - + Please select the folder '%1' Выберите каталог '%1' - + Select Directory '%1' Выбрать каталог '%1' - + Please select the directory where file is located. Укажите каталог с расположением файла. @@ -2396,27 +2401,27 @@ Options: заметка - + Recheck Проверить заново - + Hide Скрыть - + Hide all with id Скрыть все с id - + Suppress selected id(s) Подавить выбранные id - + Open containing folder Открыть содержащую папку @@ -2426,23 +2431,23 @@ Options: - + Tag Тег - + No tag Тег отсутствует - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2451,7 +2456,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2459,12 +2464,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! Не удается найти файл! - + Could not start %1 Please check the application path and parameters are correct. @@ -2472,7 +2477,7 @@ Please check the application path and parameters are correct. Пожалуйста, проверьте путь приложения, и верны ли параметры. - + Select Directory Выберите директорию diff --git a/gui/cppcheck_sr.ts b/gui/cppcheck_sr.ts index 72ef39bc0a6..45e28c4b2e0 100644 --- a/gui/cppcheck_sr.ts +++ b/gui/cppcheck_sr.ts @@ -483,14 +483,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -634,14 +634,14 @@ Parameters: -l(line) (file) - + Show errors - + Show warnings @@ -1067,7 +1067,7 @@ Parameters: -l(line) (file) - + Quick Filter: @@ -1140,30 +1140,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License License - + Authors Authors - + Save the report file Save the report file - - + + XML files (*.xml) XML files (*.xml) @@ -1214,40 +1214,40 @@ This is probably because the settings were changed between the Cppcheck versions - + Error - + Open the report file - + Text files (*.txt) Text files (*.txt) - + CSV files (*.csv) - + Project files (*.cppcheck);;All files(*.*) - + Select Project File - - - + + + Project: @@ -1299,7 +1299,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1307,81 +1307,81 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Project files (*.cppcheck) - + Select Project Filename - + No project file loaded - + The project file %1 @@ -1392,67 +1392,67 @@ Do you want to remove the file from the recently used projects -list? - + Install - + New version available: %1. %2 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1520,7 +1520,7 @@ Options: - + Edit suppression @@ -1588,17 +1588,17 @@ Options: - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... @@ -1610,7 +1610,7 @@ Options: - + Browse... @@ -1638,15 +1638,15 @@ Options: - + Edit - - + + Remove @@ -1682,7 +1682,7 @@ Options: - + Analysis @@ -1703,97 +1703,102 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth - + Max recursion in template instantiation - + Premium License - + Warning options - + Root path: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) - + Enable inline suppressions - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools @@ -1823,109 +1828,109 @@ Options: - + Check that each class has a safe public interface - + Limit analysis - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Suppressions - + Add - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 - + Thread safety - + Coding standards - + Misra C - + 2012 - - + + 2023 - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer - + Clang-tidy @@ -1943,82 +1948,82 @@ Options: - + Select Cppcheck build dir - + Select include directory - + Select a directory to check - + Clang-tidy (not found) - + Visual Studio - + Compile database - + Borland C++ Builder 6 - + Import Project - + Select directory to ignore - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) @@ -2300,27 +2305,27 @@ Options: Undefined file - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. @@ -2335,27 +2340,27 @@ Options: - + Recheck - + Hide - + Hide all with id - + Suppress selected id(s) - + Open containing folder @@ -2365,42 +2370,42 @@ Options: - + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. You can open this error by specifying applications in program's settings. - + No default editor application selected. Please select the default editor application in preferences/Applications. - + Could not find the file! - + Could not start %1 Please check the application path and parameters are correct. @@ -2409,7 +2414,7 @@ Please check the application path and parameters are correct. Please check the application path and parameters are correct. - + Select Directory diff --git a/gui/cppcheck_sv.ts b/gui/cppcheck_sv.ts index 50472f11c2f..65c78282034 100644 --- a/gui/cppcheck_sv.ts +++ b/gui/cppcheck_sv.ts @@ -501,14 +501,14 @@ Exempel: - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -652,14 +652,14 @@ Exempel: - + Show errors Visa fel - + Show warnings Visa varningar @@ -1086,7 +1086,7 @@ Exempel: - + Quick Filter: Snabbfilter: @@ -1167,30 +1167,30 @@ Analysis is aborted. - + %1 Analysis is aborted. - + License Licens - + Authors Utvecklare - + Save the report file Spara rapport - - + + XML files (*.xml) XML filer (*.xml) @@ -1239,7 +1239,7 @@ En trolig orsak är att inställningarna ändrats för olika Cppcheck versioner. - + Error Fel @@ -1248,35 +1248,35 @@ En trolig orsak är att inställningarna ändrats för olika Cppcheck versioner. Misslyckades att ladda %1. Din Cppcheck installation är ej komplett. Du kan använda --data-dir<directory> på kommandoraden för att specificera var denna fil finns. Det är meningen att --data-dir kommandot skall köras under installationen,så GUIt kommer ej visas när --data-dir används allt som händer är att en inställning görs. - + Open the report file Öppna rapportfilen - + Text files (*.txt) Text filer (*.txt) - + CSV files (*.csv) CSV filer (*.csv) - + Project files (*.cppcheck);;All files(*.*) Projektfiler (*.cppcheck);;Alla filer(*.*) - + Select Project File Välj projektfil - - - + + + Project: Projekt: @@ -1330,7 +1330,7 @@ Do you want to proceed analysis without using any of these project files? - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1338,7 +1338,7 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1347,109 +1347,109 @@ Do you want to stop the analysis and exit Cppcheck? Vill du stoppa analysen och avsluta Cppcheck? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML filer (*.xml);;Text filer (*.txt);;CSV filer (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Build dir '%1' does not exist, create it? Build dir '%1' existerar ej, skapa den? - + To check the project using addons, you need a build directory. - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1458,22 +1458,22 @@ Analysis is stopped. Misslyckades att importera '%1', analysen stoppas - + Project files (*.cppcheck) Projekt filer (*.cppcheck) - + Select Project Filename Välj Projektfil - + No project file loaded Inget projekt laddat - + The project file %1 @@ -1490,12 +1490,12 @@ Do you want to remove the file from the recently used projects -list? Vill du ta bort filen från 'senast använda projekt'-listan? - + Install - + New version available: %1. %2 @@ -1576,7 +1576,7 @@ Options: - + Edit suppression @@ -1644,7 +1644,7 @@ Options: Obs: Lägg dina egna .cfg filer i samma folder som projekt filen. De skall isåfall visas ovan. - + ... ... @@ -1656,7 +1656,7 @@ Options: - + Browse... @@ -1684,15 +1684,15 @@ Options: - + Edit Redigera - - + + Remove Ta bort @@ -1728,112 +1728,117 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Max recursion in template instantiation - + Premium License - + Filepaths in warnings will be relative to this path - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files - + Exclude folder... - + Exclude file... - + Enable inline suppressions Använd inline suppressions - + Misra C - + 2012 - - + + 2023 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + Misra C++ - + 2008 - + Cert C++ - + Bug hunting (Premium) - + External tools @@ -1854,7 +1859,7 @@ Options: - + Analysis @@ -1869,38 +1874,38 @@ Options: - + Check that each class has a safe public interface - + Limit analysis - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) - + Max CTU depth - + Warning options - + Root path: Bas sökväg: - + Warning tags (separated by semicolon) Varnings taggar (separerade med semikolon) @@ -1920,68 +1925,68 @@ Options: Libraries - + Suppressions Suppressions - + Add Lägg till - - + + Addons Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 Y2038 - + Thread safety Tråd säkerhet - + Coding standards Kodstandarder - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + Clang analyzer Clang analyzer - + Clang-tidy Clang-tidy @@ -1999,82 +2004,82 @@ Options: Projektfil: %1 - + Clang-tidy (not found) - + Select Cppcheck build dir Välj Cppcheck build dir - + Select include directory Välj include sökväg - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Select license file - + License file (%1) - + Select a directory to check Välj mapp att analysera - + Visual Studio Visual Studio - + Compile database - + Borland C++ Builder 6 - + Import Project Importera Projekt - + Select directory to ignore Välj sökväg att ignorera @@ -2362,27 +2367,27 @@ Options: Odefinierad fil - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. @@ -2397,27 +2402,27 @@ Options: note - + Recheck Analysera om - + Hide Dölj - + Hide all with id Dölj alla med id - + Suppress selected id(s) Stäng av valda id - + Open containing folder Öppna mapp @@ -2427,23 +2432,23 @@ Options: - + Tag Tag - + No tag Ingen tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2453,7 +2458,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2462,12 +2467,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! Kunde inte hitta filen! - + Could not start %1 Please check the application path and parameters are correct. @@ -2476,7 +2481,7 @@ Please check the application path and parameters are correct. Kontrollera att sökvägen och parametrarna är korrekta. - + Select Directory Välj mapp diff --git a/gui/cppcheck_zh_CN.ts b/gui/cppcheck_zh_CN.ts index f87bf42c548..8aadb4977e4 100644 --- a/gui/cppcheck_zh_CN.ts +++ b/gui/cppcheck_zh_CN.ts @@ -502,14 +502,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -664,7 +664,7 @@ Parameters: -l(line) (file) - + Show errors 显示错误 @@ -777,7 +777,7 @@ Parameters: -l(line) (file) - + Show warnings 显示警告 @@ -1100,7 +1100,7 @@ This is probably because the settings were changed between the Cppcheck versions - + Quick Filter: 快速滤器: @@ -1181,7 +1181,7 @@ Do you want to load this project file instead? - + Error 错误 @@ -1190,98 +1190,98 @@ Do you want to load this project file instead? 加载 %1 失败。您的 Cppcheck 安装已损坏。您可以在命令行添加 --data-dir=<目录> 参数来指定文件位置。请注意,'--data-dir' 参数应当由安装脚本使用,因此,当使用此参数时,GUI不会启动,所发生的一切只是配置了设置。 - - + + XML files (*.xml) XML 文件(*.xml) - + Open the report file 打开报告文件 - + License 许可证 - + Authors 作者 - + Save the report file 保存报告文件 - + Text files (*.txt) 文本文件(*.txt) - + CSV files (*.csv) CSV 文件(*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Project files (*.cppcheck);;All files(*.*) 项目文件(*.cppcheck);;所有文件(*.*) - + Select Project File 选择项目文件 - + Failed to open file - + Unknown project file format - + Failed to import project file - + Failed to import '%1': %2 Analysis is stopped. - + Failed to import '%1' (%2), analysis is stopped - + Install - + New version available: %1. %2 - - - + + + Project: 项目: @@ -1365,14 +1365,14 @@ Analysis is aborted. - + %1 Analysis is aborted. - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1383,7 +1383,7 @@ Do you want to proceed? 你想继续吗? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1392,77 +1392,77 @@ Do you want to stop the analysis and exit Cppcheck? 您想停止分析并退出 Cppcheck 吗? - + About - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML 文件 (*.xml);;文本文件 (*.txt);;CSV 文件 (*.csv) - + Build dir '%1' does not exist, create it? 构建文件夹 '%1' 不能存在,创建它吗? - + To check the project using addons, you need a build directory. 要使用插件检查项目,您需要一个构建目录。 - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1471,22 +1471,22 @@ Do you want to stop the analysis and exit Cppcheck? 导入 '%1' 失败,分析已停止 - + Project files (*.cppcheck) 项目文件 (*.cppcheck) - + Select Project Filename 选择项目文件名 - + No project file loaded 项目文件未加载 - + The project file %1 @@ -1578,7 +1578,7 @@ Options: 符号名 - + Edit suppression 编辑抑制 @@ -1646,22 +1646,22 @@ Options: 注意:把你自己的 .cfg 文件放在和项目文件相同的文件夹中。你应该在上面看到它们。 - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. 如果添加了标记,您将能够右键单击警告并设置其中一个标记。您可以手动对警告进行分类。 - + Exclude source files 排除源文件 - + Exclude folder... 排除文件夹... - + Exclude file... 排除文件... @@ -1670,17 +1670,17 @@ Options: MISRA C 2012 - + MISRA rule texts MISRA 规则文本 - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> <html><head/><body><p>从 MISRA C 2012 PDF 的附录 A &quot;指南摘要&quot; 复制/粘贴文本到一个文本文件。</p></body></html> - + ... ... @@ -1692,7 +1692,7 @@ Options: - + Browse... 浏览... @@ -1720,15 +1720,15 @@ Options: - + Edit 编辑 - - + + Remove 移除 @@ -1754,7 +1754,7 @@ Options: - + Analysis 分析 @@ -1780,77 +1780,82 @@ Options: - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + Check that each class has a safe public interface 检查每个类是否有一个安全的公共接口 - + Limit analysis 极限分析 - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) Check code in unused templates (slower and less accurate analysis) 检查未使用模板中的代码(正常情况下应该是打开,但理论上可以忽略未使用模板中的警告) - + Max CTU depth 最大 CTU 深度 - + Premium License - + Enable inline suppressions 启用内联方案 - + Misra C++ - + 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Autosar - + Bug hunting - + External tools 外部工具 @@ -1875,37 +1880,37 @@ Options: Clang (实验性的) - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. 如果你想要设计你的类尽可能的灵活和健壮,那么公共接口必须非常健壮。Cppcheck 将假设参数可以取 *任何* 值。 - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) 检查头文件中的代码(通常应该是打开的。如果您想要一个有限的快速分析,那么关掉它)) - + Max recursion in template instantiation 模板实例化中的最大递归 - + Warning options 警告选项 - + Root path: 根路径: - + Filepaths in warnings will be relative to this path 警告中的文件路径将相对于此路径 - + Warning tags (separated by semicolon) 警告标志(用分号隔开) @@ -1920,74 +1925,74 @@ Options: - + Suppressions 抑制 - + Add 添加 - - + + Addons 插件 - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. 注意:插件需要安装 <a href="https://www.python.org/">Python</a>。 - + Y2038 Y2038 - + Thread safety 线程安全 - + Coding standards 编码标准 - + Misra C - + 2012 - - + + 2023 - + Cert C++ - + Bug hunting (Premium) - + Clang analyzer Clang analyzer - + Clang-tidy Clang-tidy @@ -2005,82 +2010,82 @@ Options: 项目文件: %1 - + Select Cppcheck build dir 选择 Cppcheck 构建目录 - + Select include directory 选择 Include 目录 - + Select a directory to check 选择一个检查目录 - + Clang-tidy (not found) Clang-tidy (未找到) - + Visual Studio Visual Studio - + Compile database Compile database - + Borland C++ Builder 6 Borland C++ Builder 6 - + Import Project 导入项目 - + Select directory to ignore 选择忽略的目录 - + Source files 源文件 - + All files 全部文件 - + Exclude file 排除文件 - + Select MISRA rule texts file 选择 MISRA 规则文本文件 - + MISRA rule texts file (%1) MISRA 规则文本文件 (%1) - + Select license file - + License file (%1) @@ -2366,27 +2371,27 @@ Options: 未定义文件 - + Copy 复制 - + Could not find file: 找不到文件: - + Please select the folder '%1' 请选择文件夹 '%1' - + Select Directory '%1' 选择目录 '%1' - + Please select the directory where file is located. 请选择文件所在的目录。 @@ -2401,27 +2406,27 @@ Options: 注意 - + Recheck 重新检查 - + Hide 隐藏 - + Hide all with id 隐藏全部 ID - + Suppress selected id(s) 抑制选择的 ID - + Open containing folder 打开包含的文件夹 @@ -2431,23 +2436,23 @@ Options: - + Tag 标记 - + No tag 取消标记 - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2457,7 +2462,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2466,12 +2471,12 @@ Please select the default editor application in preferences/Applications. - + Could not find the file! 找不到文件! - + Could not start %1 Please check the application path and parameters are correct. @@ -2480,7 +2485,7 @@ Please check the application path and parameters are correct. 请检查此应用程序的路径与参数是否正确。 - + Select Directory 选择目录 diff --git a/gui/cppcheck_zh_TW.ts b/gui/cppcheck_zh_TW.ts index d6ab4dc47d6..3d64576fe53 100644 --- a/gui/cppcheck_zh_TW.ts +++ b/gui/cppcheck_zh_TW.ts @@ -480,14 +480,14 @@ Parameters: -l(line) (file) - - - - - - - - + + + + + + + + Cppcheck Cppcheck @@ -689,7 +689,7 @@ Parameters: -l(line) (file) - + Show errors 顯示錯誤 @@ -817,7 +817,7 @@ Parameters: -l(line) (file) - + Show warnings 顯示警告 @@ -1077,15 +1077,15 @@ Options: - + Quick Filter: 快速篩選: - - - + + + Project: 專案: @@ -1243,7 +1243,7 @@ Do you want to proceed analysis without using any of these project files? - + Error 錯誤 @@ -1263,14 +1263,14 @@ Analysis is aborted. - + %1 Analysis is aborted. - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1278,18 +1278,18 @@ Do you want to proceed? - - + + XML files (*.xml) XML 檔案 (*.xml) - + Open the report file 開啟報告檔 - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1298,82 +1298,82 @@ Do you want to stop the analysis and exit Cppcheck? 您想停止分析並離開 Cppcheck 嗎? - + About 關於 - + License 授權 - + Authors 作者 - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) XML 檔案 (*.xml);;文字檔 (*.txt);;CSV 檔案 (*.csv) - + Save the report file 儲存報告檔 - + Text files (*.txt) 文字檔 (*.txt) - + CSV files (*.csv) CSV 檔案 (*.csv) - + Cannot generate a compliance report right now, an analysis must finish successfully. Try to reanalyze the code and ensure there are no critical errors. - + Project files (*.cppcheck);;All files(*.*) 專案檔 (*.cppcheck);;所有檔案 (*.*) - + Select Project File 選取專案檔 - + Build dir '%1' does not exist, create it? 建置目錄 '%1' 不存在,是否建立它? - + To check the project using addons, you need a build directory. - + Failed to open file 無法開啟檔案 - + Unknown project file format 未知的專案檔格式 - + Failed to import project file 無法匯入專案檔 - + Failed to import '%1': %2 Analysis is stopped. @@ -1382,62 +1382,62 @@ Analysis is stopped. 停止分析。 - + Failed to import '%1' (%2), analysis is stopped - + Show Mandatory - + Show Required - + Show Advisory - + Show Document - + Show L1 - + Show L2 - + Show L3 - + Show style - + Show portability - + Show performance - + Show information @@ -1446,22 +1446,22 @@ Analysis is stopped. 無法匯入 '%1',停止分析 - + Project files (*.cppcheck) 專案檔 (*.cppcheck) - + Select Project Filename 選取專案檔案名稱 - + No project file loaded - + The project file %1 @@ -1478,12 +1478,12 @@ Do you want to remove the file from the recently used projects -list? 您要從最近使用的專案列表中移除該檔案嗎? - + Install 安章 - + New version available: %1. %2 可用的新版本: %1. %2 @@ -1516,7 +1516,7 @@ Do you want to remove the file from the recently used projects -list? 符號名稱 - + Edit suppression 編輯抑制 @@ -1574,7 +1574,7 @@ Do you want to remove the file from the recently used projects -list? - + Browse... 瀏覽... @@ -1607,15 +1607,15 @@ Do you want to remove the file from the recently used projects -list? - + Edit 編輯 - - + + Remove 移除 @@ -1676,7 +1676,7 @@ Do you want to remove the file from the recently used projects -list? - + Analysis 分析 @@ -1712,158 +1712,163 @@ Do you want to remove the file from the recently used projects -list? - Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + Normal -- meant for normal analysis in CI. Analysis should finish in reasonable time. + + + + Exhaustive -- meant for nightly builds etc. Analysis time can be longer (10x slower than compilation is OK). - + If you want to design your classes to be as flexible and robust as possible then the public interface must be very robust. Cppcheck will asumme that arguments can take *any* value. - + Check that each class has a safe public interface - + Limit analysis - + Check code in headers (should be ON normally. if you want a limited quick analysis then turn this OFF) - + Check code in unused templates (should be ON normally, however in theory you can safely ignore warnings in unused templates) - + Max CTU depth - + Max recursion in template instantiation - + Premium License - + Warning options 警告選項 - + Root path: 根路徑: - + Filepaths in warnings will be relative to this path - + Warning tags (separated by semicolon) 警告標記 (由分號分隔) - + If tags are added, you will be able to right click on warnings and set one of these tags. You can manually categorize warnings. - + Exclude source files 排除來源檔 - + Exclude folder... 排除資料夾... - + Exclude file... 排除檔案... - + Suppressions 抑制 - + Add 新增 - + Enable inline suppressions - - + + Addons - + Note: Addons require <a href="https://www.python.org/">Python</a> being installed. - + Y2038 Y2038 - + Thread safety 執行緒安全 - + Coding standards - + Misra C - + 2012 - - + + 2023 - + Misra C++ - + 2008 @@ -1872,17 +1877,17 @@ Do you want to remove the file from the recently used projects -list? Misra C 2012 - + MISRA rule texts - + <html><head/><body><p>Copy/paste the text from Appendix A &quot;Summary of guidelines&quot; from the MISRA C 2012 pdf to a text file.</p></body></html> - + ... ... @@ -1891,47 +1896,47 @@ Do you want to remove the file from the recently used projects -list? Misra C++ 2008 - + Cert C - + CERT-INT35-C: int precision (if size equals precision, you can leave empty) - + Cert C++ - + Autosar - + Bug hunting (Premium) - + Bug hunting - + External tools 外部工具 - + Clang-tidy Clang-tidy - + Clang analyzer Clang 分析器 @@ -1944,82 +1949,82 @@ Do you want to remove the file from the recently used projects -list? 專案檔: %1 - + Clang-tidy (not found) Clang-tidy (找不到) - + Select Cppcheck build dir 選取 Cppcheck 建置目錄 - + Visual Studio Visual Studio - + Compile database 編譯資料庫 - + Borland C++ Builder 6 Borland C++ Builder 6 - + Import Project 匯入專案 - + Select a directory to check 選取要檢查的目錄 - + Select include directory 選取包含目錄 - + Select directory to ignore 選取要忽略的目錄 - + Source files 來源檔 - + All files 所有檔案 - + Exclude file 排除檔案 - + Select MISRA rule texts file 選取 MISRA 規則文字檔 - + MISRA rule texts file (%1) MISRA 規則文字檔 (%1) - + Select license file - + License file (%1) @@ -2333,99 +2338,99 @@ Do you want to remove the file from the recently used projects -list? - + Recheck - + Copy 複製 - + Hide 隱藏 - + Hide all with id - + Open containing folder - + Suppress selected id(s) - + Tag 標記 - + No tag 取消標記 - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. - + Could not find the file! 找不到該檔案! - + Could not start %1 Please check the application path and parameters are correct. - + Could not find file: - + Please select the folder '%1' 請選取資料夾 '%1' - + Select Directory '%1' 選取目錄 '%1' - + Please select the directory where file is located. 請選取資料夾所在的目錄。 - + Select Directory 選取目錄 diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 7e3f19fc18f..12137dd169d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1134,10 +1134,17 @@ QPair MainWindow::getCppcheckSettings() result.maxCtuDepth = mProjectFile->getMaxCtuDepth(); result.maxTemplateRecursion = mProjectFile->getMaxTemplateRecursion(); - if (mProjectFile->isCheckLevelExhaustive()) - result.setCheckLevel(Settings::CheckLevel::exhaustive); - else + switch (mProjectFile->getCheckLevel()) { + case ProjectFile::CheckLevel::reduced: + result.setCheckLevel(Settings::CheckLevel::reduced); + break; + case ProjectFile::CheckLevel::normal: result.setCheckLevel(Settings::CheckLevel::normal); + break; + case ProjectFile::CheckLevel::exhaustive: + result.setCheckLevel(Settings::CheckLevel::exhaustive); + break; + }; result.checkHeaders = mProjectFile->getCheckHeaders(); result.checkUnusedTemplates = mProjectFile->getCheckUnusedTemplates(); result.safeChecks.classes = mProjectFile->safeChecks.classes; diff --git a/gui/projectfile.cpp b/gui/projectfile.cpp index 64a3b0d00bf..04afda02d3b 100644 --- a/gui/projectfile.cpp +++ b/gui/projectfile.cpp @@ -151,6 +151,12 @@ bool ProjectFile::read(const QString &filename) if (xmlReader.name() == QString(CppcheckXml::CheckLevelExhaustiveElementName)) mCheckLevel = CheckLevel::exhaustive; + if (xmlReader.name() == QString(CppcheckXml::CheckLevelNormalElementName)) + mCheckLevel = CheckLevel::normal; + + if (xmlReader.name() == QString(CppcheckXml::CheckLevelReducedElementName)) + mCheckLevel = CheckLevel::reduced; + // Find include directory from inside project element if (xmlReader.name() == QString(CppcheckXml::IncludeDirElementName)) readIncludeDirs(xmlReader); @@ -804,11 +810,6 @@ void ProjectFile::setCheckLevel(ProjectFile::CheckLevel checkLevel) mCheckLevel = checkLevel; } -bool ProjectFile::isCheckLevelExhaustive() const -{ - return mCheckLevel == CheckLevel::exhaustive; -} - void ProjectFile::setWarningTags(std::size_t hash, const QString& tags) { if (tags.isEmpty()) @@ -1011,10 +1012,20 @@ bool ProjectFile::write(const QString &filename) } } - if (mCheckLevel == CheckLevel::exhaustive) { + switch (mCheckLevel) { + case CheckLevel::reduced: + xmlWriter.writeStartElement(CppcheckXml::CheckLevelReducedElementName); + xmlWriter.writeEndElement(); + break; + case CheckLevel::normal: + xmlWriter.writeStartElement(CppcheckXml::CheckLevelNormalElementName); + xmlWriter.writeEndElement(); + break; + case CheckLevel::exhaustive: xmlWriter.writeStartElement(CppcheckXml::CheckLevelExhaustiveElementName); xmlWriter.writeEndElement(); - } + break; + }; // Cppcheck Premium if (mBughunting) { diff --git a/gui/projectfile.h b/gui/projectfile.h index 8b10220931d..18503e8d6e1 100644 --- a/gui/projectfile.h +++ b/gui/projectfile.h @@ -55,6 +55,7 @@ class ProjectFile : public QObject { } enum class CheckLevel : std::uint8_t { + reduced, normal, exhaustive }; @@ -352,7 +353,9 @@ class ProjectFile : public QObject { /** CheckLevel: normal/exhaustive */ void setCheckLevel(CheckLevel checkLevel); - bool isCheckLevelExhaustive() const; + CheckLevel getCheckLevel() const { + return mCheckLevel; + } /** * @brief Set tags. diff --git a/gui/projectfile.ui b/gui/projectfile.ui index 8bcd8b4879d..d2f781f27cf 100644 --- a/gui/projectfile.ui +++ b/gui/projectfile.ui @@ -458,6 +458,13 @@ Check level + + + + Reduced -- meant for usage where developer wants results directly. Limited and faster analysis with fewer results. + + + diff --git a/gui/projectfiledialog.cpp b/gui/projectfiledialog.cpp index d56893c0543..372fc7f36b9 100644 --- a/gui/projectfiledialog.cpp +++ b/gui/projectfiledialog.cpp @@ -310,10 +310,17 @@ void ProjectFileDialog::loadFromProjectFile(const ProjectFile *projectFile) else item->setCheckState(Qt::Unchecked); } - if (projectFile->isCheckLevelExhaustive()) - mUI->mCheckLevelExhaustive->setChecked(true); - else + switch (projectFile->getCheckLevel()) { + case ProjectFile::CheckLevel::reduced: + mUI->mCheckLevelReduced->setChecked(true); + break; + case ProjectFile::CheckLevel::normal: mUI->mCheckLevelNormal->setChecked(true); + break; + case ProjectFile::CheckLevel::exhaustive: + mUI->mCheckLevelExhaustive->setChecked(true); + break; + }; mUI->mCheckHeaders->setChecked(projectFile->getCheckHeaders()); mUI->mCheckUnusedTemplates->setChecked(projectFile->getCheckUnusedTemplates()); mUI->mInlineSuppressions->setChecked(projectFile->getInlineSuppression()); @@ -460,7 +467,12 @@ void ProjectFileDialog::saveToProjectFile(ProjectFile *projectFile) const projectFile->setCheckPaths(getCheckPaths()); projectFile->setExcludedPaths(getExcludedPaths()); projectFile->setLibraries(getLibraries()); - projectFile->setCheckLevel(mUI->mCheckLevelExhaustive->isChecked() ? ProjectFile::CheckLevel::exhaustive : ProjectFile::CheckLevel::normal); + if (mUI->mCheckLevelReduced->isChecked()) + projectFile->setCheckLevel(ProjectFile::CheckLevel::reduced); + else if (mUI->mCheckLevelNormal->isChecked()) + projectFile->setCheckLevel(ProjectFile::CheckLevel::normal); + else // if (mUI->mCheckLevelExhaustive->isChecked()) + projectFile->setCheckLevel(ProjectFile::CheckLevel::exhaustive); projectFile->clangParser = mUI->mBtnClangParser->isChecked(); projectFile->safeChecks.classes = mUI->mBtnSafeClasses->isChecked(); if (mUI->mComboBoxPlatform->currentText().endsWith(".xml")) diff --git a/lib/importproject.cpp b/lib/importproject.cpp index d66f89aebaa..0a38c938f31 100644 --- a/lib/importproject.cpp +++ b/lib/importproject.cpp @@ -1261,8 +1261,6 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti guiProject.analyzeAllVsConfigs.clear(); - bool checkLevelExhaustive = false; - // TODO: this should support all available command-line options for (const tinyxml2::XMLElement *node = rootnode->FirstChildElement(); node; node = node->NextSiblingElement()) { const char* name = node->Name(); @@ -1334,8 +1332,12 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti } } else if (strcmp(name, CppcheckXml::CheckHeadersElementName) == 0) temp.checkHeaders = (strcmp(default_if_null(node->GetText(), ""), "true") == 0); + else if (strcmp(name, CppcheckXml::CheckLevelReducedElementName) == 0) + temp.setCheckLevel(Settings::CheckLevel::reduced); + else if (strcmp(name, CppcheckXml::CheckLevelNormalElementName) == 0) + temp.setCheckLevel(Settings::CheckLevel::normal); else if (strcmp(name, CppcheckXml::CheckLevelExhaustiveElementName) == 0) - checkLevelExhaustive = true; + temp.setCheckLevel(Settings::CheckLevel::exhaustive); else if (strcmp(name, CppcheckXml::CheckUnusedTemplatesElementName) == 0) temp.checkUnusedTemplates = (strcmp(default_if_null(node->GetText(), ""), "true") == 0); else if (strcmp(name, CppcheckXml::InlineSuppression) == 0) @@ -1409,11 +1411,7 @@ bool ImportProject::importCppcheckGuiProject(std::istream &istr, Settings *setti settings->maxTemplateRecursion = temp.maxTemplateRecursion; settings->inlineSuppressions |= temp.inlineSuppressions; settings->safeChecks = temp.safeChecks; - - if (checkLevelExhaustive) - settings->setCheckLevel(Settings::CheckLevel::exhaustive); - else - settings->setCheckLevel(Settings::CheckLevel::normal); + settings->setCheckLevel(temp.checkLevel); return true; } diff --git a/lib/importproject.h b/lib/importproject.h index 8c4c171e38c..ef8c44f8d7b 100644 --- a/lib/importproject.h +++ b/lib/importproject.h @@ -168,6 +168,8 @@ namespace CppcheckXml { static constexpr char WarningElementName[] = "warning"; static constexpr char HashAttributeName[] = "hash"; static constexpr char CheckLevelExhaustiveElementName[] = "check-level-exhaustive"; + static constexpr char CheckLevelNormalElementName[] = "check-level-normal"; + static constexpr char CheckLevelReducedElementName[] = "check-level-reduced"; static constexpr char CheckHeadersElementName[] = "check-headers"; static constexpr char CheckUnusedTemplatesElementName[] = "check-unused-templates"; static constexpr char MaxCtuDepthElementName[] = "max-ctu-depth"; diff --git a/lib/settings.cpp b/lib/settings.cpp index 094ad586b89..9d71b472805 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -299,7 +299,16 @@ void Settings::loadSummaries() void Settings::setCheckLevel(CheckLevel level) { - if (level == CheckLevel::normal) { + if (level == CheckLevel::reduced) { + // Checking should finish quickly. + checkLevel = level; + vfOptions.maxSubFunctionArgs = 8; + vfOptions.maxIfCount = 100; + vfOptions.doConditionExpressionAnalysis = false; + vfOptions.maxForwardBranches = 4; + vfOptions.maxIterations = 1; + } + else if (level == CheckLevel::normal) { // Checking should finish in reasonable time. checkLevel = level; vfOptions.maxSubFunctionArgs = 8; diff --git a/lib/settings.h b/lib/settings.h index ec5ce8f363e..2e3b5cbedf6 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -512,6 +512,7 @@ class CPPCHECKLIB WARN_UNUSED Settings { } enum class CheckLevel : std::uint8_t { + reduced, normal, exhaustive }; diff --git a/man/manual.md b/man/manual.md index 694cb0848de..56885beed50 100644 --- a/man/manual.md +++ b/man/manual.md @@ -1086,6 +1086,12 @@ Example usage: # Check Level +## Reduced + +The "reduced" check level performs a limited data flow analysis. If developers +want to run cppcheck directly during development and require faster results +than "normal" provides then this reduced checking can be an option. + ## Normal The "normal" check level is chosen by default. Our aim is that this checking level will provide an effective checking in "reasonable" time. diff --git a/releasenotes.txt b/releasenotes.txt index 99b15ff9aee..19a19bf5577 100644 --- a/releasenotes.txt +++ b/releasenotes.txt @@ -10,7 +10,8 @@ GUI: - Changed interface: -- +-Added `reduced` check level. It can be activated with `--check-level=reduced`. You get faster analysis +but some fewer results. The motivation is to be able to make analysis time "acceptable" for direct usage. Deprecations: - diff --git a/tools/compare-normal-exhaustive.py b/tools/compare-normal-exhaustive.py deleted file mode 100755 index 6f4cf5a2afa..00000000000 --- a/tools/compare-normal-exhaustive.py +++ /dev/null @@ -1,211 +0,0 @@ -#!/usr/bin/env python3 - -# Compare "normal" check level and "exhaustive" check level - -import donate_cpu_lib as lib -import argparse -import glob -import os -import sys -import random - - -def format_float(a, b=1): - if a > 0 and b > 0: - return '{:.2f}'.format(a / b) - return 'N/A' - - -if __name__ == "__main__": - __my_script_name = os.path.splitext(os.path.basename(sys.argv[0]))[0] - __work_path = os.path.expanduser(os.path.join('~', 'cppcheck-' + __my_script_name + '-workfolder')) - - parser = argparse.ArgumentParser(description='Compare --check-level=normal and --check-level=exhaustive output') - parser.add_argument('-j', default=1, type=int, help='Concurency execution threads') - parser.add_argument('--cppcheck-path', default=None, type=str, help='Path to Cppcheck binary, if not given then clone and compile') - package_group = parser.add_mutually_exclusive_group() - package_group.add_argument('-p', default=256, type=int, help='Count of packages to check') - package_group.add_argument('--packages', nargs='+', help='Check specific packages and then stop.') - package_group.add_argument('--packages-path', default=None, type=str, help='Check packages in path.') - parser.add_argument('-o', default='my_check_diff.log', help='Filename of result inside a working path dir') - - language_group = parser.add_mutually_exclusive_group() - language_group.add_argument('--c-only', dest='c_only', help='Only process c packages', action='store_true') - language_group.add_argument('--cpp-only', dest='cpp_only', help='Only process c++ packages', action='store_true') - parser.add_argument('--work-path', '--work-path=', default=__work_path, type=str, help='Working directory for reference repo') - args = parser.parse_args() - - print(args) - - if not lib.check_requirements(): - print("Error: Check requirements") - sys.exit(1) - - work_path = os.path.abspath(args.work_path) - if not os.path.exists(work_path): - os.makedirs(work_path) - - lib.set_jobs('-j' + str(args.j)) - result_file = os.path.join(work_path, args.o) - (f, ext) = os.path.splitext(result_file) - timing_file = f + '_timing' + ext - normal_results = f + '_normal' + ext - exhaustive_results = f + '_exhaustive' + ext - - if os.path.exists(result_file): - os.remove(result_file) - if os.path.exists(timing_file): - os.remove(timing_file) - if os.path.exists(normal_results): - os.remove(normal_results) - if os.path.exists(exhaustive_results): - os.remove(exhaustive_results) - - cppcheck_path = args.cppcheck_path - - if cppcheck_path is None: - cppcheck_path = os.path.join(work_path, 'cppcheck') - try: - lib.clone_cppcheck(cppcheck_path, '') - except Exception as e: - print('Failed to clone Cppcheck repository ({}), retry later'.format(e)) - sys.exit(1) - - if not lib.compile_cppcheck(cppcheck_path): - print('Failed to compile Cppcheck') - sys.exit(1) - - if args.packages_path: - # You can download packages using daca2-download.py - args.packages = glob.glob(os.path.join(args.packages_path, '*.tar.xz')) - args.p = len(args.packages) - packages_idxs = list(range(args.p)) - random.shuffle(packages_idxs) - elif args.packages: - args.p = len(args.packages) - packages_idxs = [] - else: - packages_count = lib.get_packages_count() - if not packages_count: - print("network or server might be temporarily down..") - sys.exit(1) - - packages_idxs = list(range(packages_count)) - random.shuffle(packages_idxs) - - packages_processed = 0 - crashes = [] - timeouts = [] - - while (packages_processed < args.p and len(packages_idxs) > 0) or args.packages: - if args.packages: - package = args.packages.pop() - else: - package = lib.get_package(packages_idxs.pop()) - - if package.startswith('ftp://') or package.startswith('http://'): - tgz = lib.download_package(work_path, package, None) - if tgz is None: - print("No package downloaded") - continue - else: - print('Package: ' + package) - tgz = package - - source_path, source_found = lib.unpack_package(work_path, tgz, c_only=args.c_only, cpp_only=args.cpp_only) - if not source_found: - print("No files to process") - continue - - results_to_diff = [] - - normal_crashed = False - exhaustive_crashed = False - - normal_timeout = False - exhaustive_timeout = False - - enable = 'style' - debug_warnings = False - - libraries = lib.library_includes.get_libraries(source_path) - c, errout, info, time_normal, cppcheck_options, timing_info = lib.scan_package(cppcheck_path, source_path, libraries, enable=enable, debug_warnings=debug_warnings, check_level='normal') - if c < 0: - if c == -101 and 'error: could not find or open any of the paths given.' in errout: - # No sourcefile found (for example only headers present) - print('Error: 101') - elif c == lib.RETURN_CODE_TIMEOUT: - print('Normal check level timed out!') - normal_timeout = True - continue # we don't want to compare timeouts - else: - print('Normal check level crashed!') - normal_crashed = True - results_to_diff.append(errout) - - c, errout, info, time_exhaustive, cppcheck_options, timing_info = lib.scan_package(cppcheck_path, source_path, libraries, enable=enable, debug_warnings=debug_warnings, check_level='exhaustive') - if c < 0: - if c == -101 and 'error: could not find or open any of the paths given.' in errout: - # No sourcefile found (for example only headers present) - print('Error: 101') - elif c == lib.RETURN_CODE_TIMEOUT: - print('Exhaustive check level timed out!') - exhaustive_timeout = True - continue # we don't want to compare timeouts - else: - print('Exhaustive check level crashed!') - exhaustive_crashed = True - results_to_diff.append(errout) - - if normal_crashed or exhaustive_crashed: - who = None - if normal_crashed and exhaustive_crashed: - who = 'Both' - elif normal_crashed: - who = 'Normal' - else: - who = 'Exhaustive' - crashes.append(package + ' ' + who) - - if normal_timeout or exhaustive_timeout: - who = None - if normal_timeout and exhaustive_timeout: - who = 'Both' - elif normal_timeout: - who = 'Normal' - else: - who = 'Exhaustive' - timeouts.append(package + ' ' + who) - - with open(result_file, 'a') as myfile: - myfile.write(package + '\n') - diff = lib.diff_results('normal', results_to_diff[0], 'exhaustive', results_to_diff[1]) - if not normal_crashed and not exhaustive_crashed and diff != '': - myfile.write('libraries:' + ','.join(libraries) +'\n') - myfile.write('diff:\n' + diff + '\n') - - if not normal_crashed and not exhaustive_crashed: - with open(timing_file, 'a') as myfile: - package_width = '140' - timing_width = '>7' - myfile.write('{:{package_width}} {:{timing_width}} {:{timing_width}} {:{timing_width}}\n'.format( - package, format_float(time_normal), - format_float(time_exhaustive), format_float(time_normal, time_exhaustive), - package_width=package_width, timing_width=timing_width)) - with open(normal_results, 'a') as myfile: - myfile.write(results_to_diff[0]) - with open(exhaustive_results, 'a') as myfile: - myfile.write(results_to_diff[1]) - - packages_processed += 1 - print(str(packages_processed) + ' of ' + str(args.p) + ' packages processed\n') - - with open(result_file, 'a') as myfile: - myfile.write('\n\ncrashes\n') - myfile.write('\n'.join(crashes)) - - with open(result_file, 'a') as myfile: - myfile.write('\n\ntimeouts\n') - myfile.write('\n'.join(timeouts) + '\n') - - print('Result saved to: ' + result_file) diff --git a/tools/compare-valueflow-options.py b/tools/compare-valueflow-options.py new file mode 100755 index 00000000000..b6a31d701de --- /dev/null +++ b/tools/compare-valueflow-options.py @@ -0,0 +1,205 @@ +#!/usr/bin/env python3 + +# Compare results and timings of different valueflow options +# Example usage: +# cd ~/cppcheck && make CXXFLAGS=-O2 MATCHCOMPILER=yes +# python3 compare-valueflow-options.py --cppcheck-path=~/cppcheck --packages-path=~/daca2-packages + +import donate_cpu_lib as lib +import argparse +import glob +import os +import re +import sys +import random + + +# Do not report execution times below this limit, short execution time measurements are flaky +TIME_LIMIT = 2 + + +def format_float(a, b=1): + if a > 0 and b > 0: + return '{:.2f}'.format(a / b) + return 'N/A' + + +def count_errors(errout:str, c:set): + for line in errout.split('\n'): + if not line.endswith(']'): + continue + res = re.match(r'^[^:]+:[0-9]+:[0-9]+: (error|warning|style|portability|performance):.*\[([a-zA-Z0-9_\-]+)\]$', line) + if res is None: + print('No warning? ' + line) + continue + severity = res.group(1) + c[severity] = c.get(severity, 0) + 1 + error_id = res.group(2) + c[error_id] = c.get(error_id, 0) + 1 + + +if __name__ == "__main__": + __my_script_name = os.path.splitext(os.path.basename(sys.argv[0]))[0] + __work_path = os.path.expanduser(os.path.join('~', 'cppcheck-' + __my_script_name + '-workfolder')) + + parser = argparse.ArgumentParser(description='Compare --check-level=normal and --check-level=exhaustive output') + parser.add_argument('-j', default=1, type=int, help='Concurency execution threads') + parser.add_argument('--cppcheck-path', default=None, type=str, help='Path to Cppcheck binary, if not given then clone and compile') + package_group = parser.add_mutually_exclusive_group() + package_group.add_argument('-p', default=256, type=int, help='Count of packages to check') + package_group.add_argument('--packages', nargs='+', help='Check specific packages and then stop.') + package_group.add_argument('--packages-path', default=None, type=str, help='Check packages in path.') + parser.add_argument('-o', default='my_check_diff.log', help='Filename of result inside a working path dir') + + language_group = parser.add_mutually_exclusive_group() + language_group.add_argument('--c-only', dest='c_only', help='Only process c packages', action='store_true') + language_group.add_argument('--cpp-only', dest='cpp_only', help='Only process c++ packages', action='store_true') + parser.add_argument('--work-path', '--work-path=', default=__work_path, type=str, help='Working directory for reference repo') + args = parser.parse_args() + + print(args) + + if not lib.check_requirements(): + print("Error: Check requirements") + sys.exit(1) + + work_path = os.path.abspath(args.work_path) + if not os.path.exists(work_path): + os.makedirs(work_path) + + lib.set_jobs('-j' + str(args.j)) + + results_file = os.path.join(work_path, args.o) + summary_file = os.path.join(work_path, 'summary.log') + + for f in (results_file, summary_file): + if os.path.exists(f): + os.remove(f) + + opts = {'0': '--check-level=exhaustive --suppress=valueFlow*', + 'it2': '--check-level=exhaustive --performance-valueflow-max-iterations=2 --suppress=valueFlow*', + 'it1': '--check-level=exhaustive --performance-valueflow-max-iterations=1 --suppress=valueFlow*', + 'if8': '--check-level=exhaustive --performance-valueflow-max-if-count=8 --suppress=valueFlow*'} + + cppcheck_path = args.cppcheck_path + + if cppcheck_path is None: + cppcheck_path = os.path.join(work_path, 'cppcheck') + try: + lib.clone_cppcheck(cppcheck_path, '') + except Exception as e: + print('Failed to clone Cppcheck repository ({}), retry later'.format(e)) + sys.exit(1) + + if not lib.compile_cppcheck(cppcheck_path): + print('Failed to compile Cppcheck') + sys.exit(1) + + if args.packages_path: + # You can download packages using daca2-download.py + args.packages = glob.glob(os.path.join(args.packages_path, '*.tar.xz')) + args.p = len(args.packages) + packages_idxs = list(range(args.p)) + random.shuffle(packages_idxs) + elif args.packages: + args.p = len(args.packages) + packages_idxs = [] + else: + packages_count = lib.get_packages_count() + if not packages_count: + print("network or server might be temporarily down..") + sys.exit(1) + + packages_idxs = list(range(packages_count)) + random.shuffle(packages_idxs) + + packages_processed = 0 + summary_results = {} + for id in opts.keys(): + summary_results[id] = {} + + while (packages_processed < args.p and len(packages_idxs) > 0) or args.packages: + if args.packages: + package = args.packages.pop() + else: + package = lib.get_package(packages_idxs.pop()) + + if package.startswith('ftp://') or package.startswith('http://'): + tgz = lib.download_package(work_path, package, None) + if tgz is None: + print("No package downloaded") + continue + else: + print('Package: ' + package) + tgz = package + + source_path, source_found = lib.unpack_package(work_path, tgz, c_only=args.c_only, cpp_only=args.cpp_only) + if not source_found: + print("No files to process") + continue + + results0 = None + time0 = None + + enable = 'style' + debug_warnings = False + + libraries = lib.library_includes.get_libraries(source_path) + + with open(results_file, 'at') as myfile: + myfile.write('package:' + package + '\n') + myfile.write('libraries:' + ','.join(libraries) +'\n') + + for id, extra_args in opts.items(): + print('scan:' + id) + c, errout, info, time, cppcheck_options, timing_info = lib.scan_package(cppcheck_path, source_path, libraries, enable=enable, extra_args=extra_args) + error_text = None + if c < 0: + if c == -101 and 'error: could not find or open any of the paths given.' in errout: + # No sourcefile found (for example only headers present) + error_text = f'{id} ERR no source file' + elif c == lib.RETURN_CODE_TIMEOUT: + error_text = f'{id} timeout' + else: + error_text = f'{id} crash code={c}' + + with open(results_file, 'at') as myfile: + if error_text is not None: + myfile.write(f'{error_text}\n') + else: + results = {} + count_errors(errout, results) + count_errors(errout, summary_results[id]) + if results0 is None: + results0 = results + time0 = time + else: + for error_id, count in results0.items(): + current_count = results.get(error_id, 0) + if count > current_count: + myfile.write(f'{id}: FN {error_id}: {current_count} of {count}\n') + if time > TIME_LIMIT or time0 > TIME_LIMIT: + myfile.write(f'{id}: Time: %.1f\n' % time) + time_factor = time / time0 + myfile.write(f'{id}: Timefactor: %.3f\n' % time_factor) + + with open(summary_file, 'wt') as myfile: + all = {} + for id, c in summary_results.items(): + for error_id, count in c.items(): + if error_id not in all: + all[error_id] = {} + for id2 in opts.keys(): + all[error_id][id2] = 0 + all[error_id][id] += count + + for error_id, id_count in all.items(): + myfile.write(f'{error_id}:') + for id, count in id_count.items(): + myfile.write(f' {id}:{count}') + myfile.write('\n') + + packages_processed += 1 + print(str(packages_processed) + ' of ' + str(args.p) + ' packages processed\n') + + print('Result saved to: ' + results_file) diff --git a/tools/donate_cpu_lib.py b/tools/donate_cpu_lib.py index 845546a536b..0b6de32bdef 100644 --- a/tools/donate_cpu_lib.py +++ b/tools/donate_cpu_lib.py @@ -436,7 +436,7 @@ def __run_command(cmd, print_cmd=True): return return_code, stdout, stderr, elapsed_time -def scan_package(cppcheck_path, source_path, libraries, capture_callstack=True, enable='style,information', debug_warnings=True, check_level=None): +def scan_package(cppcheck_path, source_path, libraries, capture_callstack=True, enable='style,information', debug_warnings=True, check_level=None, extra_args=None): print('Analyze..') libs = '' for library in libraries: @@ -453,6 +453,8 @@ def scan_package(cppcheck_path, source_path, libraries, capture_callstack=True, options += ' --disable=missingInclude --suppress=unmatchedSuppression' if check_level: options += ' --check-level=' + check_level + if extra_args: + options += ' ' + extra_args if debug_warnings: options += ' --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout' \ ' --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions'