From e94598eab8b2304815039869e07844539567b0a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 29 Oct 2025 21:06:01 +0100 Subject: [PATCH 1/9] refactor Settings::premium --- cli/cmdlineparser.cpp | 1 - gui/mainwindow.cpp | 2 -- lib/settings.cpp | 1 + 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index 999180f84dd..f5ee2250662 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -2196,7 +2196,6 @@ bool CmdLineParser::loadCppcheckCfg() mLogger.printError("could not load cppcheck.cfg - " + cfgErr); return false; } - mSettings.premium = startsWith(mSettings.cppcheckCfgProductName, "Cppcheck Premium"); return true; } diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 749fe27796e..5bdad49e289 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1091,8 +1091,6 @@ bool MainWindow::getCppcheckSettings(Settings& settings, Suppressions& supprs) return false; } - settings.premium = startsWith(settings.cppcheckCfgProductName, "Cppcheck Premium"); - const auto cfgAddons = settings.addons; settings.addons.clear(); for (const std::string& addon : cfgAddons) { diff --git a/lib/settings.cpp b/lib/settings.cpp index 7be37686e0b..0be3706de14 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -166,6 +166,7 @@ std::string Settings::loadCppcheckCfg(Settings& settings, Suppressions& suppress } } + settings.premium = startsWith(settings.cppcheckCfgProductName, "Cppcheck Premium"); settings.settingsFiles.emplace_back(std::move(fileName)); return ""; From fc90808f1338cecd4b8e43aa93c6b6f17b2d397c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 10:07:24 +0100 Subject: [PATCH 2/9] test --- test/testcmdlineparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index 5970943d6d5..3b5dfc5c2e7 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -118,7 +118,7 @@ class TestCmdlineParser : public TestFixture { void asPremium() { // set this so we think it is the premium - settings->cppcheckCfgProductName = "Cppcheck Premium 0.0.0"; + settings->premium = true; } template From d045d615a7e3d413fb840bc761ee3aec174300a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 11:43:38 +0100 Subject: [PATCH 3/9] 1 --- gui/cppcheck_de.ts | 1130 ++++++++++++++++++++++++++-------------- gui/cppcheck_es.ts | 1132 ++++++++++++++++++++++++++-------------- gui/cppcheck_fi.ts | 1134 +++++++++++++++++++++++++++-------------- gui/cppcheck_fr.ts | 1134 +++++++++++++++++++++++++++-------------- gui/cppcheck_it.ts | 1132 ++++++++++++++++++++++++++-------------- gui/cppcheck_ja.ts | 1130 ++++++++++++++++++++++++++-------------- gui/cppcheck_ka.ts | 1130 ++++++++++++++++++++++++++-------------- gui/cppcheck_ko.ts | 1128 ++++++++++++++++++++++++++-------------- gui/cppcheck_nl.ts | 1134 +++++++++++++++++++++++++++-------------- gui/cppcheck_ru.ts | 1130 ++++++++++++++++++++++++++-------------- gui/cppcheck_sr.ts | 1134 +++++++++++++++++++++++++++-------------- gui/cppcheck_sv.ts | 1130 ++++++++++++++++++++++++++-------------- gui/cppcheck_zh_CN.ts | 1130 ++++++++++++++++++++++++++-------------- gui/cppcheck_zh_TW.ts | 1130 ++++++++++++++++++++++++++-------------- gui/mainwindow.cpp | 2 +- lib/settings.h | 2 + 16 files changed, 10476 insertions(+), 5366 deletions(-) diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index dc9556a15b8..6d4a977d02b 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -5,27 +5,32 @@ About + About Cppcheck Über Cppcheck + Version %1 Version %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Ein Werkzeug zur statischen C/C++-Code-Analyse. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-%1 Cppcheck-Team. + This program is licensed under the terms of the GNU General Public License version 3 Dieses Programm ist unter den Bedingungen @@ -33,11 +38,13 @@ der GNU General Public License Version 3 lizenziert + Visit Cppcheck homepage at %1 Besuchen Sie die Cppcheck-Homepage unter %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ der GNU General Public License Version 3 lizenziert ApplicationDialog + Add an application Anwendung hinzufügen + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -78,21 +87,25 @@ Parameter: -l(line) (file) + &Name: &Name: + &Executable: &Ausführbare Datei: + &Parameters: &Parameter: + Browse Suchen @@ -121,41 +134,49 @@ Parameter: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -204,16 +225,19 @@ Parameter: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -232,16 +256,19 @@ Parameter: -l(line) (file) LibraryAddFunctionDialog + Add function Funktion hinzufügen + Function name(s) Funktionsname(n) + Number of arguments Anzahl Argumente @@ -250,86 +277,103 @@ Parameter: -l(line) (file) LibraryDialog + Library Editor Bibliothekseditor + Open Öffnen + Save Speichern + Save as Speichern unter + Functions Funktionen + Sort Sortiere + Add Hinzufügen + Filter: Filter: + Comments Kommentare + noreturn Zurückkehrend + False Ja + True Nein + Unknown Unbekannt + return value must be used Rückgabewert muss genutzt werden + ignore function in leaks checking Ignoriere Funktion in Speicherleck-Prüfung + Arguments Argumente + Edit Bearbeiten @@ -376,11 +420,13 @@ Parameter: -l(line) (file) LibraryEditArgDialog + Edit argument Argument bearbeiten + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -396,11 +442,13 @@ Parameter: -l(line) (file) + Not bool Nicht boolsch + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -416,78 +464,99 @@ Parameter: -l(line) (file) + Not null Nicht Null + Not uninit Nicht uninitialisiert + String String + Format string Formatstring + Min size of buffer Minimale Puffergröße + + Type Typ + + None Keine + + argvalue Argumentwert + + mul Multiplikation + + strlen strlen + + Arg Argument 1 + + Arg2 Argument 2 + and und + Valid values Zulässige Werte @@ -496,602 +565,728 @@ Parameter: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + Standard Standard + &File &Datei + &View &Ansicht + &Toolbars &Symbolleisten - + + A&nalyze A&nalysieren - + + C++ standard C++-Standard - + + &C standard &C-Standard - + + &Edit &Bearbeiten - + + &License... &Lizenz... - + + A&uthors... &Autoren... - + + &About... Ü&ber... - + + &Files... &Dateien... - - + + + + Analyze files Analysiere Dateien - + + Ctrl+F Strg+F - + + &Directory... &Verzeichnis... - - + + + + Analyze directory Analysiere Verzeichnis - + + Ctrl+D Strg+D - + + Ctrl+R Strg+R - + + &Stop &Stoppen - - + + + + Stop analysis Analyse abbrechen - + + Esc Esc - + + &Save results to file... &Ergebnisse in Datei speichern... - + + Ctrl+S Strg+S - + + &Quit &Beenden - + + &Clear results Ergebnisse &löschen - + + &Preferences &Einstellungen - - - + + + + + Show errors Zeige Fehler - - - + + + + + Show warnings Zeige Warnungen - - + + + + Show performance warnings Zeige Performance-Warnungen - + + Show &hidden Zeige &versteckte - - + + Information Information - + + Show information messages Zeige Informationsmeldungen - + + Show portability warnings Zeige Portabilitätswarnungen - + + Show Cppcheck results Zeige Cppcheck-Ergebnisse - + + Clang Clang - + + Show Clang results Zeige Clang-Ergebnisse - + + &Filter &Filter - + + Filter results Gefilterte Ergebnisse - + + Windows 32-bit ANSI Windows 32-bit, ANSI - + + Windows 32-bit Unicode Windows 32-bit, Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... Drucken... - + + Print the Current Report Aktuellen Bericht ausdrucken - + + Print Pre&view... Druckvorschau - + + Open a Print Preview Dialog for the Current Results Druckvorschaudialog für aktuelle Ergebnisse öffnen - + + Open library editor Bibliothekseditor öffnen - + + &Check all Alle &auswählen + Checking for updates + Hide Verstecken - + + + Report - + + Filter Filter - + + &Reanalyze modified files Veränderte Dateien neu analysieren - + + Reanal&yze all files Alle Dateien erneut anal&ysieren - + + Ctrl+Q - + + Style war&nings Stilwar&nungen - + + E&rrors F&ehler - + + &Uncheck all Alle a&bwählen - + + Collapse &all Alle &reduzieren - + + &Expand all Alle &erweitern - + + &Standard &Standard - + + Standard items Standardeinträge - + + Toolbar Symbolleiste - + + &Categories &Kategorien - + + Error categories Fehler-Kategorien - + + &Open XML... Öffne &XML... - + + Open P&roject File... Pr&ojektdatei öffnen... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... &Zeige Schmierzettel... - + + &New Project File... &Neue Projektdatei... - + + Ctrl+Shift+N - + + &Log View &Loganzeige - + + Log View Loganzeige - + + C&lose Project File Projektdatei &schließen - + + &Edit Project File... Projektdatei &bearbeiten... - + + &Statistics &Statistik - + + &Warnings &Warnungen - + + Per&formance warnings Per&formance-Warnungen - + + &Information &Information - + + &Portability &Portabilität - + + P&latforms P&lattformen - + + C++&11 C++&11 - + + C&99 C&99 - + + &Posix Posix - + + C&11 C&11 - + + &C89 &C89 - + + &C++03 &C++03 - + + &Library Editor... &Bibliothekseditor - + + &Auto-detect language Sprache &automatisch erkennen - + + &Enforce C++ C++ &erzwingen - + + E&nforce C C e&rzwingen - + + C++14 C++14 - + + Reanalyze and check library Neu analysieren und Bibliothek prüfen - + + Check configuration (defines, includes) Prüfe Konfiguration (Definitionen, Includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents &Inhalte - + + Categories Kategorien - - + + + + Show style warnings Zeige Stilwarnungen - + + Open the help contents Öffnet die Hilfe-Inhalte - + + F1 F1 + &Help &Hilfe - - + + Quick Filter: Schnellfilter: - + Select configuration Konfiguration wählen - + Found project file: %1 Do you want to load this project file instead? @@ -1100,102 +1295,102 @@ Do you want to load this project file instead? Möchten Sie stattdessen diese öffnen? - + File not found Datei nicht gefunden - + Bad XML Fehlerhaftes XML - + Missing attribute Fehlendes Attribut - + Bad attribute value Falscher Attributwert - + Duplicate platform type Plattformtyp doppelt - + Platform type redefined Plattformtyp neu definiert - + Duplicate define - + Failed to load the selected library '%1'. %2 Laden der ausgewählten Bibliothek '%1' schlug fehl. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + License Lizenz - + Authors Autoren - + Save the report file Speichert die Berichtdatei - - + + XML files (*.xml) XML-Dateien (*.xml) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1204,37 +1399,37 @@ This is probably because the settings were changed between the Cppcheck versions Dies wurde vermutlich durch einen Wechsel der Cppcheck-Version hervorgerufen. Bitte prüfen (und korrigieren) Sie die Einstellungen, andernfalls könnte die Editor-Anwendung nicht korrekt starten. - + You must close the project file before selecting new files or directories! Sie müssen die Projektdatei schließen, bevor Sie neue Dateien oder Verzeichnisse auswählen! - + The library '%1' contains unknown elements: %2 Die Bibliothek '%1' enthält unbekannte Elemente: %2 - + Unsupported format Nicht unterstütztes Format - + Unknown element Unbekanntes Element - + Unknown issue Unbekannter Fehler - - - - + + + + Error Fehler @@ -1243,80 +1438,80 @@ 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: - + No suitable files found to analyze! Keine passenden Dateien für Analyse gefunden! - + C/C++ Source C/C++-Quellcode - + Compile database Compilerdatenbank - + Visual Studio Visual Studio - + Borland C++ Builder 6 Borland C++-Builder 6 - + Select files to analyze Dateien für Analyse auswählen - + Select directory to analyze Verzeichnis für Analyse auswählen - + Select the configuration that will be analyzed Zu analysierende Konfiguration auswählen - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? @@ -1325,7 +1520,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 +1531,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 +1540,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 +1651,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,17 +1683,17 @@ 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 - + Cppcheck GUI. Syntax: @@ -1529,7 +1724,7 @@ Options: - + Cppcheck GUI - Command line parameters Cppcheck GUI - Kommandozeilenparameter @@ -1538,26 +1733,31 @@ Options: NewSuppressionDialog + New suppression Neue Fehlerunterdrückung + Error ID Fehler-ID + File name Dateiname + Line number Zeilennummer + Symbol name Symbolname @@ -1604,26 +1804,31 @@ Options: ProjectFile + Project File Projektdatei + Paths and Defines Pfade und Definitionen + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Importiere Projekt (Visual Studio / Compile-Datenbank / Borland C++-Builder 6) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Definitionen müssen mit einem Semikolon getrennt werden. Beispiel: DEF1;DEF2=5;DEF3=int + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. Hinweis: Legen Sie eigene .cfg-Dateien in den Ordner der Projektdatei. Dann sollten sie oben sichtbar werden. @@ -1633,21 +1838,25 @@ Options: + 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> + ... ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> <html><head/><body><p>Sie haben die Auswahl:</p><p> * Alle Debug- und Release-Konfigurationen analysieren</p><p> * Nur die erste passende Debug-Konfiguration analysieren</p><p><br/></p></body></html> @@ -1655,27 +1864,35 @@ Options: + + + Browse... Durchsuchen... + Analyze all Visual Studio configurations Alle Visual-Studio-Konfigurationen analysieren + Selected VS Configurations + Paths: Pfade: + + Add... Hinzufügen... @@ -1683,6 +1900,9 @@ Options: + + + Edit Bearbeiten @@ -1691,300 +1911,365 @@ Options: + + + + Remove Entfernen + Undefines: Un-Definitionen: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 Un-Definitionen müssen Semikolon-getrennt sein. Beispiel: UNDEF1;UNDEF2;UNDEF3 + Include Paths: Includepfade: + Up Auf + Down Ab + Platform Plattform + + Analysis Analyse + This is a workfolder that Cppcheck will use for various purposes. + Clang (experimental) + Check level + 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 + 2025 + 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 + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) Cppcheck-Arbeitsverzeichnis (Vollständige Programmanalyse, inkrementelle Analyse, Statistiken, etc.) + Types and Functions + Libraries Bibliotheken + Parser + Cppcheck (built in) + 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 + Defines: Definitionen: @@ -1997,77 +2282,77 @@ 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 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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 @@ -2075,32 +2360,32 @@ Options: QObject - + Unknown language specified! Unbekannte Sprache angegeben! - + Language file %1 not found! Sprachdatei %1 nicht gefunden! - + Failed to load translation for language %1 from file %2 Die Übersetzungen der Sprache %1 konnten nicht aus der Datei %2 geladen werden - + line %1: Unhandled element %2 Zeile %1: Nicht behandeltes Element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) (nicht gefunden) @@ -2230,77 +2515,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File Datei - + Line Zeile - + Severity Schweregrad - + Classification - + Level - + Inconclusive Unklar - + Summary Zusammenfassung - + Id Id - + Guideline - + Rule - + Since date Seit Datum - + Tags - + CWE @@ -2308,22 +2593,22 @@ Options: QPlatformTheme - + OK OK - + Cancel Abbrechen - + Close Schließen - + Save Speichern @@ -2347,93 +2632,101 @@ Options: Zusammenfassung - + Undefined file 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 - + debug Debug - + note Anmerkung - Recheck - Erneut prüfen + Erneut prüfen - Hide - Verstecken + 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 - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag Tag - + No tag Kein Tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2442,7 +2735,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2451,12 +2744,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. @@ -2465,7 +2758,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 @@ -2482,32 +2775,32 @@ Bitte überprüfen Sie ob der Pfad und die Parameter der Anwendung richtig einge Seit Datum - + style Stil - + error Fehler - + warning Warnung - + performance Performance - + portability Portabilität - + information Information @@ -2515,33 +2808,33 @@ Bitte überprüfen Sie ob der Pfad und die Parameter der Anwendung richtig einge ResultsView - + Print Report Bericht drucken - + No errors found, nothing to print. Keine Funde, nichts zu drucken. - + %p% (%1 of %2 files checked) %p% (%1 von %2 Dateien geprüft) - - + + Cppcheck Cppcheck - + No errors found. Keine Fehler gefunden. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Es wurden Fehler gefunden, aber sie sind so konfiguriert, ausgeblendet zu werden. @@ -2614,28 +2907,32 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde - - + + Failed to save the report. Der Bericht konnte nicht speichern werden. + Results Berichte + Critical errors + Analysis Log Analyseprotokoll + Warning Details Warnungs-Details @@ -2644,26 +2941,31 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde ScratchPad + Scratchpad Schmierzettel + Copy or write some C/C++ code here: Kopieren oder schreiben Sie C/C++-Code hierher: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": Optional einen Dateinamen (hauptsächlich für automatische Spracherkennung) eingeben und auf "Prüfe" klicken: + filename Dateiname + Check Prüfe @@ -2672,194 +2974,239 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde Settings + Preferences Einstellungen + General Allgemein - + + Add... Hinzufügen... + Number of threads: Anzahl der Threads: - Ideal count: - Ideale Anzahl: + Ideale Anzahl: - + + Force checking all #ifdef configurations Erzwinge Prüfung aller #ifdef-Konfigurationen - + + Show full path of files Vollständigen Dateipfad anzeigen - + + Show "No errors found" message when no errors found "Keine Fehler gefunden"-Meldung anzeigen, wenn keine Fehler gefunden werden - + + Display error Id in column "Id" Zeige Meldungs-Id in Spalte "Id" - + + Enable inline suppressions Inline-Fehlerunterdrückung aktivieren - + + Check for inconclusive errors also Auch nach unklaren Fehlern suchen - + + Show statistics on check completion Zeige Statistiken nach Prüfungsabschluss - + + Check for updates - + + Show internal warnings in log Interne Warnungen im Log anzeigen - + + Addons Add-Ons - + + Python binary (leave this empty to use python in the PATH) Python-Binärdatei (Python aus PATH wird genutzt, wenn leer) - - - + + + + + + ... ... - + + MISRA addon MISRA-Addon - + + MISRA rule texts file MISRA-Regeltext-Datei - + + <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> - + + Clang Clang - + + Clang path (leave empty to use system PATH) Clang-Verzeichnis (PATH wird genutzt, wenn leer) - + + Visual Studio headers Visual-Studio-Header - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> <html><head/><body><p>Pfade zu Visual-Studio-Headern, Semikolon-getrennt.</p><p>Sie können eine Visual-Studio-Kommandozeile öffnen, &quot;SET INCLUDE&quot; eingeben und dann die Pfade hier reinkopieren.</p></body></html> - + + Code Editor Code-Editor - + + Code Editor Style Code-Editor-Stil - + + System Style Systemstil - + + Default Light Style Heller Standardstil - + + Default Dark Style Dunkler Standardstil - + + Custom Benutzerdefiniert - + + Remove Entfernen - + + + Max count: + + + + + Applications Anwendungen - - + + + + Edit... Bearbeiten... - + + Set as default Als Standard festlegen - + + Reports Berichte - + + Save all errors when creating report Alle Fehler beim Erstellen von Berichten speichern - + + Save full path to files in reports Vollständigen Dateipfad in Berichten speichern - + + Language Sprache @@ -2867,47 +3214,46 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde SettingsDialog - N/A - kA + kA - + The executable file "%1" is not available - + Add a new application Neue Anwendung hinzufügen - + Modify an application Anwendung ändern - + [Default] [Standard] - + [Default] [Standard] - + Select python binary Python-Binärdatei auswählen - + Select MISRA File Wähle MISRA-Datei - + Select clang path Clang-Verzeichnis auswählen @@ -2917,261 +3263,285 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde - - + + + + Statistics Statistik - + + Project Projekt + Project: Projekt: + Paths: Pfade: + Include paths: Include-Pfade: + Defines: Definitionen: + Undefines: Un-Definitionen: - + + Previous Scan Vorherige Prüfung + Path Selected: Ausgewählte Pfade: + Number of Files Scanned: Anzahl der geprüften Dateien: + Scan Duration: Prüfungsdauer: + Errors: Fehler: + Warnings: Warnungen: + Stylistic warnings: Stilwarnungen: + Portability warnings: Portabilitätswarnungen: + Performance issues: Performance-Probleme: + Information messages: Informationsmeldungen: + Active checkers: + Checkers + History Verlauf + File: Datei: + Copy to Clipboard In die Zwischenablage kopieren + Pdf Export PDF-Export - + 1 day 1 Tag - + %1 days %1 Tage - + 1 hour 1 Stunde - + %1 hours %1 Stunden - + 1 minute 1 Minute - + %1 minutes %1 Minuten - + 1 second 1 Sekunde - + %1 seconds %1 Sekunden - + 0.%1 seconds 0,%1 Sekunden - + and und - + Export PDF Exportiere PDF - + Project Settings Projekteinstellungen - + Paths Pfade - + Include paths Include-Pfade - + Defines Definitionen - + Undefines Un-Definitionen - + Path selected Gewählte Pfade - + Number of files scanned Anzahl geprüfter Dateien - + Scan duration Prüfungsdauer - - + + Errors Fehler - + File: Datei: - + No cppcheck build dir Kein Cppcheck-Analyseverzeichnis - - + + Warnings Warnungen - - + + Style warnings Stilwarnungen - - + + Portability warnings Portabilitätswarnungen - - + + Performance warnings Performance-Warnungen - - + + Information messages Informationsmeldungen @@ -3179,7 +3549,7 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde ThreadResult - + %1 of %2 files checked %1 von %2 Dateien geprüft @@ -3187,7 +3557,7 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde TranslationHandler - + Failed to change the user interface language: %1 @@ -3200,7 +3570,7 @@ The user interface language has been reset to English. Open the Preferences-dial Die Sprache wurde auf Englisch zurückgesetzt. Öffnen Sie den Einstellungen-Dialog um eine verfügbare Sprache auszuwählen. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_es.ts b/gui/cppcheck_es.ts index 3ee30c7c3e1..5532722610b 100644 --- a/gui/cppcheck_es.ts +++ b/gui/cppcheck_es.ts @@ -5,38 +5,45 @@ About + About Cppcheck Acerca de Cppcheck + Version %1 Versión %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Una utilidad para el análisis estático de código C/C++. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-2021 el equipo de cppcheck. + This program is licensed under the terms of the GNU General Public License version 3 Este programa está licenciado bajo los términos de GNU General Public License versión 3 + Visit Cppcheck homepage at %1 Visita el sitio de Cppcheck en %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -46,11 +53,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application Añade una aplicación + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -66,21 +75,25 @@ Parameters: -l(line) (file) + &Name: &Nombre: + &Executable: &Ejecutable: + &Parameters: &Parámetros: + Browse Buscar @@ -109,41 +122,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -192,16 +213,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -220,16 +244,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function Añadir función + Function name(s) Nombre(s) de la función + Number of arguments Número de argumentos @@ -238,86 +265,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor Editor de bibliotecas + Open Abrir + Save Guardar + Save as + Functions Funciones + Sort + Add Añadir + Filter: + Comments + noreturn + False Falso + True Verdadero + Unknown Desconocido + return value must be used + ignore function in leaks checking + Arguments Argumentos + Edit Editar @@ -366,11 +410,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument Editar argumento + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -381,11 +427,13 @@ Parameters: -l(line) (file) + Not bool No bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -396,78 +444,99 @@ Parameters: -l(line) (file) + Not null No null + Not uninit No uninit + String String + Format string + Min size of buffer + + Type Tipo + + None Ninguno + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values Valores válidos @@ -476,713 +545,839 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck + &File &Archivo + &View &Ver + &Toolbars &Herramientas + &Help &Ayuda - + + C++ standard C++ estándar - + + &C standard C standard C estándar - + + &Edit &Editar - + + Standard Estándar - + + Categories Categorías - + + &License... &Licencia... - + + A&uthors... A&utores... - + + &About... &Acerca de... - + + &Files... &Ficheros... - - + + + + Analyze files Check files Comprobar archivos - + + Ctrl+F Ctrl+F - + + &Directory... &Carpeta... - - + + + + Analyze directory Check directory Comprobar carpeta - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &Detener - - + + + + Stop analysis Stop checking Detener comprobación - + + Esc Esc - + + &Save results to file... &Guardar los resultados en el fichero... - + + Ctrl+S Ctrl+S - + + &Quit &Salir - + + &Clear results &Limpiar resultados - + + &Preferences &Preferencias - - + + + + Show style warnings Mostrar advertencias de estilo - - - + + + + + Show errors Mostrar errores - - + + Information Información - + + Show information messages Mostrar mensajes de información - + + Show portability warnings Mostrar advertencias de portabilidad - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + &Filter &Filtro - + + Filter results Resultados del filtro - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... Im&primir... - + + Print the Current Report Imprimir el informe actual - + + Print Pre&view... Pre&visualización de impresión... - + + Open a Print Preview Dialog for the Current Results Abre el diálogo de previsualización de impresión para el informe actual - + + Open library editor Abrir el editor de bibliotecas - + + &Check all &Seleccionar todo + Checking for updates + Hide Ocultar - + + + Report - + + A&nalyze - + + Filter Filtro - + + &Reanalyze modified files &Recheck modified files - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + &Uncheck all &Deseleccionar todo - + + Collapse &all Contraer &todo - + + &Expand all &Expandir todo - + + &Standard &Estándar - + + Standard items Elementos estándar - + + &Contents &Contenidos - + + Open the help contents Abrir la ayuda de contenidos - + + F1 F1 - + + Toolbar Barra de herramientas - + + &Categories &Categorías - + + Error categories Categorías de error - + + &Open XML... &Abrir XML... - + + Open P&roject File... Abrir P&royecto... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + &New Project File... &Nuevo Proyecto... - + + Ctrl+Shift+N - + + &Log View &Visor del log - + + Log View Visor del log - + + C&lose Project File C&errar Proyecto - + + &Edit Project File... &Editar Proyecto... - + + &Statistics &Estadísticas - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 C++14 - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - - - + + + EULA... + + + + + + + + Show warnings Mostrar advertencias - - + + + + Show performance warnings Mostrar advertencias de rendimiento - + + Show &hidden Mostrar &ocultos - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. - + You must close the project file before selecting new files or directories! ¡Tienes que cerrar el proyecto antes de seleccionar nuevos ficheros o carpetas! - + Select configuration - + File not found Archivo no encontrado - + Bad XML XML malformado - + Missing attribute Falta el atributo - + Bad attribute value - + Unsupported format Formato no soportado - + Duplicate define - + Failed to load the selected library '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 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: - + Found project file: %1 Do you want to load this project file instead? @@ -1191,117 +1386,117 @@ Do you want to load this project file instead? ¿Quiere cargar este fichero de proyecto en su lugar? - + The library '%1' contains unknown elements: %2 La biblioteca '%1' contiene elementos deconocidos: %2 - + Duplicate platform type - + Platform type redefined - + Unknown element - + Unknown issue - - - - + + + + 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: - + No suitable files found to analyze! - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. 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 +1504,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,72 +1595,72 @@ 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 - + Cppcheck GUI. Syntax: @@ -1495,7 +1690,7 @@ Options: - + Cppcheck GUI - Command line parameters @@ -1504,26 +1699,31 @@ Options: NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1570,84 +1770,101 @@ Options: ProjectFile + Project File Archivo de proyecto + Paths and Defines + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. 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> + ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> @@ -1655,27 +1872,35 @@ Options: + + + Browse... + Analyze all Visual Studio configurations + Selected VS Configurations + Paths: Rutas: + + Add... Añadir... @@ -1683,6 +1908,9 @@ Options: + + + Edit Editar @@ -1691,264 +1919,321 @@ Options: + + + + Remove Eliminar + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: + Types and Functions + + Analysis + This is a workfolder that Cppcheck will use for various purposes. + Parser + Cppcheck (built in) + Check level + 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 + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools + Up Subir + Down Bajar + Platform + Clang (experimental) + 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) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Libraries + 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 + Defines: Definiciones: @@ -1961,77 +2246,77 @@ 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 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2039,32 +2324,32 @@ Options: QObject - + Unknown language specified! ¡Idioma especificado desconocido! - + Language file %1 not found! ¡Fichero de idioma %1 no encontrado! - + Failed to load translation for language %1 from file %2 Fallo al cargar la traducción para el idioma %1 desde el fichero %2 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2195,77 +2480,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File Archivo - + Line Línea - + Severity Severidad - + Classification - + Level - + Inconclusive - + Summary Resumen - + Id Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2273,22 +2558,22 @@ Options: QPlatformTheme - + OK Aceptar - + Cancel Cancelar - + Close Cerrar - + Save Guardar @@ -2312,103 +2597,107 @@ Options: Resumen - + Undefined file Fichero no definido - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + portability portabilidad - + note - + information información - + debug depuración - - Recheck - - - - Hide - Ocultar + Ocultar - + Hide all with id Ocultar todos con el mismo id - + Suppress selected id(s) - + Open containing folder Abrir carpeta contenedora - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2418,7 +2707,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2427,12 +2716,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. @@ -2441,7 +2730,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 @@ -2450,22 +2739,22 @@ Por favor comprueba que la ruta a la aplicación y los parámetros son correctos Id - + style estilo - + error error - + warning advertencia - + performance ajuste @@ -2474,58 +2763,62 @@ Por favor comprueba que la ruta a la aplicación y los parámetros son correctos ResultsView + Results Resultados + Critical errors + Analysis Log + Warning Details - - + + Failed to save the report. Error al guardar el informe. - + Print Report Imprimir informe - + No errors found, nothing to print. No se encontraron errores, nada que imprimir. - + %p% (%1 of %2 files checked) %p% (%1 of %2 archivos comprobados) - - + + Cppcheck Cppcheck - + No errors found. No se han encontrado errores. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Se han encontrado errores, pero están configurados para que no se muestren. @@ -2602,26 +2895,31 @@ Para cambiar el tipo de comportamiento, abra el menú Ver. ScratchPad + Scratchpad Scratchpad + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename nombre de archivo + Check Comprobar @@ -2630,194 +2928,239 @@ Para cambiar el tipo de comportamiento, abra el menú Ver. Settings + Preferences Preferencias + General General - Ideal count: - Cantidad ideal: + Cantidad ideal: - + + Force checking all #ifdef configurations Forzar comprobación de todas las configuraciones #ifdef - + + Display error Id in column "Id" Mostrar el Id del error en la columna "Id" - + + Enable inline suppressions Habilitar supresiones inline - + + Check for inconclusive errors also - + + Show statistics on check completion - + + Check for updates - + + Show internal warnings in log - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor - + + Code Editor Style - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Add... Añadir... - - + + + Max count: + + + + + + + Edit... Editar... - + + Set as default Definir por defecto - + + Language Idioma + Number of threads: Número de hilos: - + + Show full path of files Mostrar la ruta completa de los ficheros - + + Show "No errors found" message when no errors found Mostrar el mensaje "No se han encontrado errores" - + + Remove Eliminar - + + Applications Aplicaciones - + + Reports Informes - + + Save all errors when creating report Guardar todos los errores cuando se cree el informe - + + Save full path to files in reports Guardar la ruta completa en los ficheros de informes @@ -2825,47 +3168,46 @@ Para cambiar el tipo de comportamiento, abra el menú Ver. SettingsDialog - N/A - N/A + N/A - + The executable file "%1" is not available - + Add a new application Añadir una nueva aplicación - + Modify an application Modificar una aplicación - + [Default] - + [Default] [Predeterminada] - + Select python binary - + Select MISRA File - + Select clang path @@ -2875,261 +3217,285 @@ Para cambiar el tipo de comportamiento, abra el menú Ver. - - + + + + Statistics Estadísticas - + + Project Proyecto + Project: Proyecto: + Paths: Rutas: + Include paths: Incluye las rutas: + Defines: Definiciones: + Undefines: - + + Previous Scan Análisis anterior + Path Selected: Ruta seleccionada: + Number of Files Scanned: Número de archivos analizados: + Scan Duration: Duración del análisis: + Errors: Errores: + Warnings: Advertencias: + Stylistic warnings: Advertencias de estilo: + Portability warnings: Advertencias de portabilidad: + Performance issues: Problemas de rendimiento: + Information messages: Mensajes de información: + Active checkers: + Checkers + History + File: + Copy to Clipboard Copiar al portapapeles + Pdf Export - + 1 day 1 día - + %1 days %1 días - + 1 hour 1 hora - + %1 hours %1 horas - + 1 minute 1 minuto - + %1 minutes %1 minutos - + 1 second 1 segundo - + %1 seconds %1 segundos - + 0.%1 seconds 0.%1 segundos - + and y - + Export PDF - + Project Settings Preferencias del proyecto - + Paths Rutas - + Include paths Incluye las rutas - + Defines Definiciones - + Undefines - + Path selected Ruta seleccionada - + Number of files scanned Número de archivos analizados - + Scan duration Duración del análisis - - + + Errors Errores - + File: - + No cppcheck build dir - - + + Warnings Advertencias - - + + Style warnings Advertencias de estilo - - + + Portability warnings Advertencias de portabilidad - - + + Performance warnings Advertencias de rendimiento - - + + Information messages Mensajes de información @@ -3137,7 +3503,7 @@ Para cambiar el tipo de comportamiento, abra el menú Ver. ThreadResult - + %1 of %2 files checked %1 de %2 archivos comprobados @@ -3145,7 +3511,7 @@ Para cambiar el tipo de comportamiento, abra el menú Ver. TranslationHandler - + Failed to change the user interface language: %1 @@ -3158,7 +3524,7 @@ The user interface language has been reset to English. Open the Preferences-dial El idioma de la interfaz gráfica ha sido cambiado a Inglés. Abra la ventana de Preferencias para seleccionar alguno de los idiomas disponibles. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index 39ed1df58f2..ec8d3f5cdd9 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -5,27 +5,32 @@ About + About Cppcheck Tietoa ohjelmasta Cppcheck + Version %1 Versio %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Työkalu C/C++ koodin staattiseen analysointiin. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright (C) 2007-2021 Daniel Marjamäki ja cppcheck tiimi. + This program is licensed under the terms of the GNU General Public License version 3 Tämä ohjelma on lisensoitu GNU General @@ -33,11 +38,13 @@ Public lisenssin version 3 alaisuuteen + Visit Cppcheck homepage at %1 Cppcheckin kotisivu löytyy osoitteesta %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ Public lisenssin version 3 alaisuuteen ApplicationDialog + Add an application Lisää uusi ohjelma + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -67,21 +76,25 @@ Parameters: -l(line) (file) + &Name: + &Executable: + &Parameters: + Browse Selaa @@ -110,41 +123,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -195,16 +216,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -223,16 +247,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function + Function name(s) + Number of arguments @@ -241,86 +268,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor + Open + Save + Save as + Functions + Sort + Add + Filter: + Comments + noreturn + False + True + Unknown + return value must be used + ignore function in leaks checking + Arguments + Edit @@ -369,11 +413,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -384,11 +430,13 @@ Parameters: -l(line) (file) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -399,78 +447,99 @@ Parameters: -l(line) (file) + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -479,829 +548,955 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze - + + Standard Vakio + &File &Tiedosto + &View &Näytä + &Toolbars - + + C++ standard - + + &C standard C standard - + + &Edit &Muokkaa - + + &License... &Lisenssi... - + + A&uthors... &Tekijät... - + + &About... &Tietoa ohjelmasta Cppcheck... - + + &Files... &Tiedostot... - - + + + + Analyze files Check files - + + Ctrl+F Ctrl+F - + + &Directory... &Hakemisto... - - + + + + Analyze directory Check directory - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &Pysäytä - - + + + + Stop analysis Stop checking - + + Esc Esc - + + &Save results to file... &Tallenna tulokset tiedostoon... - + + Ctrl+S Ctrl+S - + + &Quit &Lopeta - + + &Clear results &Tyhjennä tulokset - + + &Preferences &Asetukset - - - + + + + + Show errors - - - + + + + + Show warnings - - + + + + Show performance warnings - + + Show &hidden - - + + Information - + + Show information messages - + + Show portability warnings - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + &Filter - + + Filter results - + + Windows 32-bit ANSI - + + Windows 32-bit Unicode - + + Unix 32-bit - + + Unix 64-bit - + + Windows 64-bit - + + &Print... - + + Print the Current Report - + + Print Pre&view... - + + Open a Print Preview Dialog for the Current Results - + + Open library editor - + + &Check all &Valitse kaikki + Checking for updates + Hide - + + + Report - + + Filter - + + &Reanalyze modified files &Recheck modified files - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + &Uncheck all &Poista kaikista valinta - + + Collapse &all &Pienennä kaikki - + + &Expand all &Laajenna kaikki - + + &Standard - + + Standard items - + + Toolbar - + + &Categories - + + Error categories - + + &Open XML... - + + Open P&roject File... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + &New Project File... - + + Ctrl+Shift+N - + + &Log View - + + Log View - + + C&lose Project File - + + &Edit Project File... - + + &Statistics - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 - + + C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents - + + Categories - - + + + + Show style warnings - + + Open the help contents - + + F1 + &Help &Ohje - - + + Quick Filter: - + Select configuration - + Found project file: %1 Do you want to load this project file instead? - + File not found - + Bad XML - + Missing attribute - + Bad attribute value - + Duplicate define - + Failed to load the selected library '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + License Lisenssi - + Authors Tekijät - + Save the report file Tallenna raportti - - + + XML files (*.xml) XML-tiedostot (*xml) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. - + You must close the project file before selecting new files or directories! - + The library '%1' contains unknown elements: %2 - + Unsupported format - + Duplicate platform type - + Platform type redefined - + Unknown element - + Unknown issue - - - - + + + + Error - + Open the report file - + Text files (*.txt) Tekstitiedostot (*.txt) - + CSV files (*.csv) - + Project files (*.cppcheck);;All files(*.*) - + Select Project File - - - - + + + + Project: - + No suitable files found to analyze! - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. 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 +1504,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,72 +1589,72 @@ 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 - + Cppcheck GUI. Syntax: @@ -1489,7 +1684,7 @@ Options: - + Cppcheck GUI - Command line parameters @@ -1498,26 +1693,31 @@ Options: NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1564,48 +1764,57 @@ Options: ProjectFile + Project File + Paths and Defines + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + 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> + ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> @@ -1613,27 +1822,35 @@ Options: + + + Browse... + Analyze all Visual Studio configurations + Selected VS Configurations + Paths: + + Add... @@ -1641,6 +1858,9 @@ Options: + + + Edit @@ -1649,300 +1869,365 @@ Options: + + + + Remove + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: + Up + Down + Platform + + Analysis + This is a workfolder that Cppcheck will use for various purposes. + Clang (experimental) + Check level + 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 + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Types and Functions + Libraries + Parser + Cppcheck (built in) + 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 + Defines: @@ -1955,77 +2240,77 @@ Options: - + Select Cppcheck build dir - + Select include directory - + Select a directory to check - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2033,34 +2318,34 @@ Options: QObject - + Unknown language specified! - + Language file %1 not found! Language file %1.qm not found! Käännöstiedostoa %1 ei löytynyt! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Käänöksen lataaminen kielelle %1 tiedostosta %2 epäonnistui - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2191,77 +2476,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File Tiedosto - + Line Rivi - + Severity Tyyppi - + Classification - + Level - + Inconclusive - + Summary - + Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2269,22 +2554,22 @@ Options: QPlatformTheme - + OK - + Cancel - + Close - + Save @@ -2304,93 +2589,93 @@ Options: Rivi - + Undefined file 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. - + debug - + note - - Recheck + + Hide all with id - - Hide + + Suppress selected id(s) - - Hide all with id + + Open containing folder - - Suppress selected id(s) + + internal - - Open containing folder + + Recheck %1 file(s) - - internal + + Hide %1 result(s) - + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2398,19 +2683,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. @@ -2419,37 +2704,37 @@ Please check the application path and parameters are correct. Tarkista että ohjelman polku ja parametrit ovat oikeat. - + Select Directory - + style Tyyli - + error Yleinen - + warning - + performance - + portability - + information @@ -2457,33 +2742,33 @@ Tarkista että ohjelman polku ja parametrit ovat oikeat. ResultsView - + Print Report - + No errors found, nothing to print. - + %p% (%1 of %2 files checked) - - + + Cppcheck Cppcheck - + No errors found. Virheitä ei löytynyt. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Virheitä löytyi, mutta asetuksissa kyseiset virheet on määritelty piilotettavaksi. @@ -2556,28 +2841,32 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik - - + + Failed to save the report. Raportin tallentaminen epäonnistui. + Results Tulokset + Critical errors + Analysis Log + Warning Details @@ -2586,26 +2875,31 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik ScratchPad + Scratchpad + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename + Check @@ -2614,195 +2908,236 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik Settings + Preferences Asetukset + General Yleiset - + + Add... + Number of threads: Säikeiden lukumäärä: - - Ideal count: - - - - + + Force checking all #ifdef configurations Check all #ifdef configurations Tarkista kaikki #ifdef kombinaatiot - + + Show full path of files Näytä tiedostojen täysi polku - + + Show "No errors found" message when no errors found Näytä "virheitä ei löytynyt"-viesti jos virheitä ei löydy - + + Display error Id in column "Id" - + + Enable inline suppressions - + + Check for inconclusive errors also - + + Show statistics on check completion - + + Check for updates - + + Show internal warnings in log - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor - + + Code Editor Style - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Remove - + + + Max count: + + + + + Applications Ohjelmat - - + + + + Edit... - + + Set as default - + + Reports Raportit - + + Save all errors when creating report Tallenna kaikki virheet raporttia luodessa - + + Save full path to files in reports Tallenna tiedostojen koko polku raportteihin - + + Language @@ -2810,47 +3145,42 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik SettingsDialog - - N/A - - - - + The executable file "%1" is not available - + Add a new application Lisää uusi ohjelma - + Modify an application Muokkaa ohjelmaa - + [Default] - + [Default] - + Select python binary - + Select MISRA File - + Select clang path @@ -2860,261 +3190,285 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik - - + + + + Statistics - + + Project + Project: + Paths: + Include paths: + Defines: + Undefines: - + + Previous Scan + Path Selected: + Number of Files Scanned: + Scan Duration: + Errors: + Warnings: + Stylistic warnings: + Portability warnings: + Performance issues: + Information messages: + Active checkers: + Checkers + History + File: + Copy to Clipboard + Pdf Export - + 1 day - + %1 days - + 1 hour - + %1 hours - + 1 minute - + %1 minutes - + 1 second - + %1 seconds - + 0.%1 seconds - + and - + Export PDF - + Project Settings - + Paths - + Include paths - + Defines - + Undefines - + Path selected - + Number of files scanned - + Scan duration - - + + Errors - + File: - + No cppcheck build dir - - + + Warnings - - + + Style warnings - - + + Portability warnings - - + + Performance warnings - - + + Information messages @@ -3122,7 +3476,7 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik ThreadResult - + %1 of %2 files checked @@ -3130,7 +3484,7 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik TranslationHandler - + Failed to change the user interface language: %1 @@ -3139,7 +3493,7 @@ The user interface language has been reset to English. Open the Preferences-dial - + Cppcheck Cppcheck diff --git a/gui/cppcheck_fr.ts b/gui/cppcheck_fr.ts index 278592b42e2..f087382c29e 100644 --- a/gui/cppcheck_fr.ts +++ b/gui/cppcheck_fr.ts @@ -5,21 +5,25 @@ About + About Cppcheck A propos + Version %1 Version %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Un outil d'analyse statique de code C/C++. + This program is licensed under the terms of the GNU General Public License version 3 Ce programme est sous licence GNU @@ -27,17 +31,20 @@ General Public License version 3 + Visit Cppcheck homepage at %1 Visitez le site Cppcheck : %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. @@ -47,11 +54,13 @@ General Public License version 3 ApplicationDialog + Add an application Ajouter une application + Browse Parcourir @@ -72,16 +81,19 @@ General Public License version 3 + &Executable: &Exécutable : + &Parameters: &Paramètres : + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -107,6 +119,7 @@ Paramètres : -l(ligne) (fichier) + &Name: &Nom : @@ -120,41 +133,49 @@ Paramètres : -l(ligne) (fichier) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -203,16 +224,19 @@ Paramètres : -l(ligne) (fichier) HelpDialog + Cppcheck GUI help + Contents + Index @@ -231,16 +255,19 @@ Paramètres : -l(ligne) (fichier) LibraryAddFunctionDialog + Add function Ajouter une fonction + Function name(s) Nom(s) de la fonction + Number of arguments Nombre d'arguments @@ -249,66 +276,79 @@ Paramètres : -l(ligne) (fichier) LibraryDialog + Library Editor + Open + Save Sauvegarder + Functions + Add Ajouter + noreturn + False + True + Unknown + return value must be used + ignore function in leaks checking + Arguments + Edit Editer @@ -325,21 +365,25 @@ Paramètres : -l(ligne) (fichier) + Sort + Filter: + Comments + Save as @@ -375,11 +419,13 @@ Paramètres : -l(ligne) (fichier) LibraryEditArgDialog + Edit argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -390,11 +436,13 @@ Paramètres : -l(ligne) (fichier) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -405,78 +453,99 @@ Paramètres : -l(ligne) (fichier) + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -485,544 +554,619 @@ Paramètres : -l(ligne) (fichier) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck + Checking for updates + Hide Cacher + &File &Fichier + &View &Affichage - + + + Report + &Help &Aide - + + &Edit &Édition - + + Standard Standard - + + &License... &Licence... - + + A&uthors... A&uteurs... - + + &About... À &Propos... - + + &Files... &Fichiers... - + + Ctrl+F - + + &Directory... &Répertoires... - + + Ctrl+D - + + Ctrl+R - + + &Stop &Arrêter - + + Esc - + + &Save results to file... &Sauvegarder les résultats dans un fichier... - + + Ctrl+S - + + &Quit &Quitter - + + &Clear results &Effacer les résultats - + + &Preferences &Préférences - + + &Check all &Tout cocher - + + &Uncheck all &Tout décocher - + + Collapse &all &Tout réduire - + + &Expand all &Tout dérouler - + + &Contents &Contenus - + + Open the help contents Ouvir l'aide - + + F1 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + 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) + &Toolbars &Boite à outils - + + Categories Catégories - - + + + + Show style warnings Afficher les avertissements de style - - - + + + + + Show errors Afficher les erreurs - + + &Standard - + + Standard items - + + Toolbar - + + &Categories - + + Error categories - + + &Open XML... &Ouvrir un fichier XML... - + + Open P&roject File... Ouvrir un P&rojet... - + + &New Project File... &Nouveau Projet... - + + &Log View &Journal - + + Log View Journal - + + C&lose Project File F&ermer le projet - + + &Edit Project File... &Editer le projet - + + &Statistics Statistiques - - - + + + + + Show warnings Afficher les avertissements - - + + + + Show performance warnings Afficher les avertissements de performance - + + Show &hidden - - + + Information Information - + + Show information messages Afficher les messages d'information - + + Show portability warnings Afficher les problèmes de portabilité - + You must close the project file before selecting new files or directories! 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 - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. - + + &Filter &Filtre - + + Filter results - - + + Quick Filter: Filtre rapide : - + Found project file: %1 Do you want to load this project file instead? - - - - + + + + Project: Projet : - + The project file %1 @@ -1033,144 +1177,156 @@ Do you want to remove the file from the recently used projects -list? - + + Filter Filtre - + + Windows 32-bit ANSI - + + Windows 32-bit Unicode - + + Unix 32-bit - + + Unix 64-bit - + + Windows 64-bit - + Cppcheck GUI - Command line parameters - + + C++ standard - - - - + + + + Error Erreur - + File not found Fichier introuvable - + Bad XML Mauvais fichier XML - + Missing attribute Attribut manquant - + Bad attribute value Mauvaise valeur d'attribut - + Failed to load the selected library '%1'. %2 Echec lors du chargement de la bibliothèque '%1'. %2 - + Unsupported format Format non supporté - + The library '%1' contains unknown elements: %2 La bibliothèque '%1' contient des éléments inconnus: %2 - + Duplicate platform type - + Platform type redefined - + + &Print... &Imprimer... - + + Print the Current Report Imprimer le rapport - + + Print Pre&view... Apercu d'impression... - + + Open a Print Preview Dialog for the Current Results - + + Open library editor - + Unknown element - + Unknown issue - + Select configuration - + Cppcheck GUI. Syntax: @@ -1188,296 +1344,335 @@ Options: - + Build dir '%1' does not exist, create it? - - + + + + Analyze files - - + + + + Analyze directory - + + &Reanalyze modified files - - + + + + Stop analysis - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + No suitable files found to analyze! - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? - + Duplicate define - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? - + + A&nalyze - + + &C standard - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + Ctrl+Shift+N - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 - + Project files (*.cppcheck) - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 - + + C++20 - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1489,26 +1684,31 @@ Do you want to proceed? NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1555,22 +1755,27 @@ Do you want to proceed? ProjectFile + Project File Fichier Projet + Paths: Chemins : + Defines: + + Add... Ajouter... @@ -1578,6 +1783,9 @@ Do you want to proceed? + + + Edit Editer @@ -1586,162 +1794,198 @@ Do you want to proceed? + + + + Remove Supprimer + Up Monter + Down Descendre + Suppressions Suppressions + Add Ajouter + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + ... + Include Paths: + Paths and Defines + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> + Analyze all Visual Studio configurations + Root path: + Warning tags (separated by semicolon) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Selected VS Configurations + Types and Functions + Libraries + Parser + Cppcheck (built in) + 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 @@ -1749,189 +1993,230 @@ Do you want to proceed? + + + Browse... + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int + Platform + This is a workfolder that Cppcheck will use for various purposes. + Clang (experimental) + Check level + 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 + 2025 + 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 + Import Project (Visual studio / compile database/ Borland C++ Builder 6) + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + + 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 @@ -1944,77 +2229,77 @@ 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) - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Visual Studio - + Compile database - + Borland C++ Builder 6 @@ -2022,32 +2307,32 @@ Do you want to proceed? QObject - + Language file %1 not found! Fichier de langue %1 non trouvé ! - + Failed to load translation for language %1 from file %2 Erreur lors du chargement de la langue %1 depuis le fichier %2 - + Unknown language specified! - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2172,12 +2457,12 @@ Do you want to proceed? - + Set to Default Light - + Set to Default Dark @@ -2187,67 +2472,67 @@ Do you want to proceed? - + File Fichier - + Line Ligne - + Severity Sévérité - + Classification - + Level - + Inconclusive - + Summary Résumé - + Id Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2255,22 +2540,22 @@ Do you want to proceed? QPlatformTheme - + OK OK - + Cancel Annuler - + Close Fermer - + Save Sauvegarder @@ -2290,18 +2575,18 @@ Do you want to proceed? Ligne - + Undefined file Fichier indéterminé - - + + Cppcheck - + Could not start %1 Please check the application path and parameters are correct. @@ -2310,12 +2595,12 @@ Please check the application path and parameters are correct. Merci de vérifier que le chemin de l'application et que les paramètres sont corrects. - + style erreur de style - + error erreur @@ -2324,59 +2609,68 @@ Merci de vérifier que le chemin de l'application et que les paramètres so Résumé - Hide - Cacher + Cacher - + Could not find the file! Fichier introuvable ! - + Select Directory Selectionner dossier - + warning avertissement - + performance performance - + portability portabilité - + information information - + debug débogage - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + 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. @@ -2387,62 +2681,61 @@ 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 + Revérifier - + note - + 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 @@ -2451,22 +2744,23 @@ Please select the default editor application in preferences/Applications.ResultsView + Results Résultats - - + + Cppcheck - + No errors found. Pas d'erreurs trouvées. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Des erreurs ont été trouvées mais sont configurées pour rester cachées. @@ -2503,8 +2797,8 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage. - - + + Failed to save the report. Erreur lors de la sauvegarde du rapport. @@ -2515,7 +2809,7 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage.Erreur lors de la lecture du rapport - + %p% (%1 of %2 files checked) %p% (%1 fichiers sur %2 vérifiés) @@ -2525,12 +2819,12 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage.Id - + Print Report Imprimer le rapport - + No errors found, nothing to print. Aucune erreur trouvée. Il n'y a rien à imprimer @@ -2546,16 +2840,19 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage. + Critical errors + Analysis Log + Warning Details @@ -2579,26 +2876,31 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage.ScratchPad + Scratchpad + filename + Check + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": @@ -2607,194 +2909,235 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage.Settings + Preferences Préférences + General Général + Number of threads: Nombre de fils : - + + + Max count: + + + + + Show full path of files Montrer le chemin complet des fichiers - + + Show "No errors found" message when no errors found Afficher un message "Pas d'erreur trouvée" lorsque aucune erreur est trouvée - + + Check for updates - + + Applications Applications - + + Reports Rapports - + + Save all errors when creating report Sauvegarder toutes les erreurs lorsqu'un rapport est créé - + + Save full path to files in reports Sauvegarder le chemin complet des fichiers dans les rapports - + + Add... Ajouter... - - Ideal count: - - - - + + Force checking all #ifdef configurations - + + Enable inline suppressions - + + Language Langue - + + Remove Supprimer - - + + + + Edit... Editer... - + + Set as default - + + Display error Id in column "Id" Afficher l'identifiant d'erreur Id dans la colonne "Id" - + + Check for inconclusive errors also - + + Show internal warnings in log Montrer les avertissements internes dans le journal - + + Show statistics on check completion - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Code Editor - + + Code Editor Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + System Style @@ -2802,47 +3145,42 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage. SettingsDialog - + Add a new application Ajouter une nouvelle application - + Modify an application Modifier une application - - N/A - - - - + [Default] - + [Default] - + The executable file "%1" is not available - + Select python binary - + Select clang path - + Select MISRA File @@ -2852,261 +3190,285 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage. - - + + + + Statistics Statistiques - + + Project Projet + Project: Projet : + Paths: Chemins : + Include paths: Inclure les chemins : + Defines: - + + Previous Scan Analyse précédente + Path Selected: Chemin sélectionné : + Number of Files Scanned: Nombre de fichiers analysés : + Scan Duration: Durée de l'analyse : + Errors: Erreurs : + Warnings: Avertissements + Stylistic warnings: Avertissements de style + Portability warnings: Avertissements de portabilité + Performance issues: Problème de performance + Information messages: Messages d'information : + Active checkers: + Checkers + Copy to Clipboard Copier vers le presse-papier - + 1 day - + %1 days - + 1 hour - + %1 hours - + 1 minute - + %1 minutes - + 1 second - + %1 seconds - + 0.%1 seconds - + and - + Project Settings - + Paths Chemins - + Include paths - + Defines - + Path selected - + Number of files scanned - + Scan duration - - + + Errors Erreurs - - + + Warnings Avertissements - - + + Style warnings Avertissement de style - - + + Portability warnings - - + + Performance warnings Avertissements de performance - - + + Information messages + Pdf Export - + Export PDF + History + File: - + File: - + No cppcheck build dir + Undefines: - + Undefines @@ -3114,7 +3476,7 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage. ThreadResult - + %1 of %2 files checked @@ -3122,7 +3484,7 @@ Pour configurer les erreurs affichées, ouvrez le menu d'affichage. TranslationHandler - + Failed to change the user interface language: %1 @@ -3131,7 +3493,7 @@ The user interface language has been reset to English. Open the Preferences-dial - + Cppcheck diff --git a/gui/cppcheck_it.ts b/gui/cppcheck_it.ts index 1592e2e2107..0b721d50e17 100644 --- a/gui/cppcheck_it.ts +++ b/gui/cppcheck_it.ts @@ -5,27 +5,32 @@ About + About Cppcheck Informazioni su Cppcheck + Version %1 Versione %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Uno strumento per l'analisi statica di codice C/C++ + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-2021 il team Cppcheck. + This program is licensed under the terms of the GNU General Public License version 3 Questo programma è rilasciato sotto i termini @@ -33,11 +38,13 @@ della GNU General Public License versione 3 + Visit Cppcheck homepage at %1 Visita la pagina iniziale di Cppcheck all'indirizzo: %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ della GNU General Public License versione 3 ApplicationDialog + Add an application Aggiungi un'applicazione + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -78,21 +87,25 @@ Parametri: -l(line) (file) + &Name: &Nome: + &Executable: &Eseguibile: + &Parameters: &Parametri: + Browse Esplora @@ -121,41 +134,49 @@ Parametri: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -204,16 +225,19 @@ Parametri: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -232,16 +256,19 @@ Parametri: -l(line) (file) LibraryAddFunctionDialog + Add function + Function name(s) + Number of arguments @@ -250,86 +277,103 @@ Parametri: -l(line) (file) LibraryDialog + Library Editor + Open + Save + Save as + Functions + Sort + Add + Filter: + Comments + noreturn + False + True + Unknown + return value must be used + ignore function in leaks checking + Arguments + Edit Modifica @@ -378,11 +422,13 @@ Parametri: -l(line) (file) LibraryEditArgDialog + Edit argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -393,11 +439,13 @@ Parametri: -l(line) (file) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -408,78 +456,99 @@ Parametri: -l(line) (file) + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -488,607 +557,733 @@ Parametri: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze - + + Standard Standard + &File &File + &View &Visualizza + &Toolbars &Barre degli strumenti - + + C++ standard - + + &C standard C standard - + + &Edit &Modifica - + + &License... &Licenza... - + + A&uthors... A&utori... - + + &About... I&nformazioni su... - + + &Files... &File... - - + + + + Analyze files Check files Scansiona i file - + + Ctrl+F Ctrl+F - + + &Directory... &Cartella... - - + + + + Analyze directory Check directory Scansiona la cartella - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &Ferma - - + + + + Stop analysis Stop checking Ferma la scansione - + + Esc Esc - + + &Save results to file... &Salva i risultati nel file... - + + Ctrl+S Ctrl+S - + + &Quit &Esci - + + &Clear results &Cancella i risultati - + + &Preferences &Preferenze - - - + + + + + Show errors Mostra gli errori - - - + + + + + Show warnings Mostra gli avvisi - - + + + + Show performance warnings Mostra gli avvisi sulle prestazioni - + + Show &hidden Mostra &i nascosti - - + + Information Informazione - + + Show information messages Mostra messaggi di informazione - + + Show portability warnings Mostra gli avvisi sulla portabilità - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + &Filter &Filtro - + + Filter results Filtra i risultati - + + Windows 32-bit ANSI Windows 32-bit, ANSI - + + Windows 32-bit Unicode Windows 32-bit, Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... - + + Print the Current Report - + + Print Pre&view... - + + Open a Print Preview Dialog for the Current Results - + + Open library editor - + + &Check all &Seleziona tutto + Checking for updates + Hide Nascondi - + + + Report - + + Filter Filtro - + + &Reanalyze modified files &Recheck modified files - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + &Uncheck all &Deseleziona tutto - + + Collapse &all Riduci &tutto - + + &Expand all &Espandi tutto - + + &Standard &Standard - + + Standard items Oggetti standard - + + Toolbar Barra degli strumenti - + + &Categories &Categorie - + + Error categories Categorie di errore - + + &Open XML... &Apri XML... - + + Open P&roject File... Apri file di p&rogetto... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + &New Project File... &Nuovo file di progetto... - + + Ctrl+Shift+N - + + &Log View &Visualizza il rapporto - + + Log View Visualizza il rapporto - + + C&lose Project File C&hiudi il file di progetto - + + &Edit Project File... &Modifica il file di progetto... - + + &Statistics &Statistiche - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 C++14 - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents &Contenuti - + + Categories Categorie - - + + + + Show style warnings Mostra gli avvisi sullo stile - + + Open the help contents Apri i contenuti di aiuto - + + F1 F1 + &Help &Aiuto - - + + Quick Filter: Rapido filtro: - + Select configuration - + Found project file: %1 Do you want to load this project file instead? @@ -1097,96 +1292,96 @@ Do you want to load this project file instead? Vuoi piuttosto caricare questo file di progetto? - + File not found - + Bad XML - + Missing attribute - + Bad attribute value - + Unsupported format - + Duplicate define - + Failed to load the selected library '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 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) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1195,126 +1390,126 @@ This is probably because the settings were changed between the Cppcheck versions Probabilmente ciò è avvenuto perché le impostazioni sono state modificate tra le versioni di Cppcheck. Per favore controlla (e sistema) le impostazioni delle applicazioni editor, altrimenti il programma editor può non partire correttamente. - + You must close the project file before selecting new files or directories! Devi chiudere il file di progetto prima di selezionare nuovi file o cartelle! - + The library '%1' contains unknown elements: %2 - + Duplicate platform type - + Platform type redefined - + Unknown element - + Unknown issue - - - - + + + + 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: - + No suitable files found to analyze! - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. 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 +1517,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,72 +1608,72 @@ 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 - + Cppcheck GUI. Syntax: @@ -1508,7 +1703,7 @@ Options: - + Cppcheck GUI - Command line parameters @@ -1517,26 +1712,31 @@ Options: NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1583,84 +1783,101 @@ Options: ProjectFile + Project File File di progetto + Paths and Defines + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + 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> + ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> @@ -1668,27 +1885,35 @@ Options: + + + Browse... + Analyze all Visual Studio configurations + Selected VS Configurations + Paths: Percorsi: + + Add... Aggiungi... @@ -1696,6 +1921,9 @@ Options: + + + Edit Modifica @@ -1704,264 +1932,321 @@ Options: + + + + Remove Rimuovi + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: + Types and Functions + + Analysis + This is a workfolder that Cppcheck will use for various purposes. + Parser + Cppcheck (built in) + Check level + 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 + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools + Up Su + Down Giù + Platform + Clang (experimental) + 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) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Libraries + 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 + Defines: Definizioni: @@ -1974,77 +2259,77 @@ 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 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2052,32 +2337,32 @@ Options: QObject - + Unknown language specified! Lingua specificata sconosciuta! - + Language file %1 not found! Il file di lingua %1 non trovato! - + Failed to load translation for language %1 from file %2 Fallito il tentativo di aprire la traduzione per la lingua %1 dal file %2 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2208,77 +2493,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File File - + Line Linea - + Severity Severità - + Classification - + Level - + Inconclusive - + Summary Riassunto - + Id Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2286,22 +2571,22 @@ Options: QPlatformTheme - + OK - + Cancel - + Close Chiudi - + Save @@ -2325,93 +2610,97 @@ Options: Riassunto - + Undefined file File indefinito - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + debug debug - + note - - Recheck - - - - Hide - Nascondi + Nascondi - + Hide all with id - + Suppress selected id(s) - + Open containing folder - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2420,7 +2709,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2429,12 +2718,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. @@ -2443,7 +2732,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 @@ -2452,32 +2741,32 @@ Per favore verifica che il percorso dell'applicazione e i parametri siano c Id - + style stile - + error errore - + warning avviso - + performance performance - + portability portabilità - + information Informazione @@ -2485,33 +2774,33 @@ Per favore verifica che il percorso dell'applicazione e i parametri siano c ResultsView - + Print Report - + No errors found, nothing to print. - + %p% (%1 of %2 files checked) %p% (%1 su %2 file scansionati) - - + + Cppcheck Cppcheck - + No errors found. Nessun errore trovato. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Sono stati trovati errori, ma sono stati configurati per essere nascosti. @@ -2584,28 +2873,32 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza. - - + + Failed to save the report. Salvataggio del report fallito. + Results Risultati + Critical errors + Analysis Log + Warning Details @@ -2614,26 +2907,31 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza.ScratchPad + Scratchpad Blocchetto per appunti + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename Nome file + Check Scansiona @@ -2642,194 +2940,239 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza.Settings + Preferences Preferenze + General Generale - + + Add... Aggiungi... + Number of threads: Numero di threads: - Ideal count: - Numero ideale: + Numero ideale: - + + Force checking all #ifdef configurations Forza la scansione di tutte le configurazioni #ifdef - + + Show full path of files Mostra tutto il percorso dei files - + + Show "No errors found" message when no errors found Mostra il messaggio "Nessun errore trovato" quando nessun errore è stato trovato - + + Display error Id in column "Id" Mostra l'id dell'errore nella colonna "Id" - + + Enable inline suppressions Abilita le soppressioni - + + Check for inconclusive errors also - + + Show statistics on check completion - + + Check for updates - + + Show internal warnings in log - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor - + + Code Editor Style - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Remove Rimuovi - + + + Max count: + + + + + Applications Applicazioni - - + + + + Edit... Modifica... - + + Set as default Imposta come predefinito - + + Reports Rapporti - + + Save all errors when creating report Salva tutti gli errori quando viene creato il rapporto - + + Save full path to files in reports Salva tutto il percorso ai files nei rapporti - + + Language Lingua @@ -2837,47 +3180,46 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza. SettingsDialog - N/A - N/A + N/A - + The executable file "%1" is not available - + Add a new application Aggiungi una nuova applicazione - + Modify an application Modifica un'applicazione - + [Default] - + [Default] [Predefinito] - + Select python binary - + Select MISRA File - + Select clang path @@ -2887,261 +3229,285 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza. - - + + + + Statistics Statistiche - + + Project Progetto + Project: Progetto: + Paths: Percorsi: + Include paths: Percorsi di inclusione: + Defines: Definizioni: + Undefines: - + + Previous Scan Precedente Scansione + Path Selected: Selezionato percorso: + Number of Files Scanned: Numero di Files Scansionati: + Scan Duration: Durata della scansione: + Errors: Errori: + Warnings: Avvisi: + Stylistic warnings: Avvisi sullo stile: + Portability warnings: Avvisi sulla portabilità: + Performance issues: Casi sulla performance: + Information messages: Messaggi di informazione: + Active checkers: + Checkers + History + File: + Copy to Clipboard Copia negli Appunti + Pdf Export - + 1 day 1 giorno - + %1 days %1 giorni - + 1 hour 1 ora - + %1 hours %1 ore - + 1 minute 1 minuto - + %1 minutes %1 minuti - + 1 second 1 secondo - + %1 seconds %1 secondi - + 0.%1 seconds 0,%1 secondi - + and e - + Export PDF - + Project Settings Impostazioni progetto - + Paths Percorsi - + Include paths Percorsi di inclusione - + Defines Definizioni - + Undefines - + Path selected Selezionato percorso - + Number of files scanned Numero di file scansionati - + Scan duration Durata della scansione - - + + Errors Errori - + File: - + No cppcheck build dir - - + + Warnings Avvisi - - + + Style warnings Stilwarnungen - - + + Portability warnings Avvisi sulla portabilità - - + + Performance warnings Avvisi sulle performance - - + + Information messages Messaggi di informazione @@ -3149,7 +3515,7 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza. ThreadResult - + %1 of %2 files checked %1 su %2 file scansionati @@ -3157,7 +3523,7 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza. TranslationHandler - + Failed to change the user interface language: %1 @@ -3170,7 +3536,7 @@ The user interface language has been reset to English. Open the Preferences-dial L'interfaccia utente è stata risettata in Inglese. Apri la finestra di dialogo Preferenze per selezionare una qualunque lingua a disposizione. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_ja.ts b/gui/cppcheck_ja.ts index 051fd3b8989..5036aaab1ca 100644 --- a/gui/cppcheck_ja.ts +++ b/gui/cppcheck_ja.ts @@ -5,38 +5,45 @@ About + About Cppcheck cppcheckについて + Version %1 Version %1 + Cppcheck - A tool for static C/C++ code analysis. CppcheckはC/C++ 静的コード解析ツールです. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-%1 Cppcheck team. + This program is licensed under the terms of the GNU General Public License version 3 本ソフトウェアはGNU General Public License Version3 ライセンスの元で配布されます + Visit Cppcheck homepage at %1 Cppcheckのホームページはこちら %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> <html><head/><body><p>ライブラリの開発者に感謝を捧げます:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> @@ -46,11 +53,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application アプリケーションの追加 + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -77,21 +86,25 @@ Parameters: -l(line) (file) + &Name: 表示名(&N): + &Executable: 実行ファイルのパス(&E): + &Parameters: パラメータ(&P): + Browse 参照 @@ -120,41 +133,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report コンプライアンスレポート + Project name プロジェクト名 + Project version プロジェクトバージョン + Coding Standard コーディング標準 + Misra C MISRA C + Cert C CERT C + Cert C++ Cert C++ + List of files with md5 checksums md5チェックサムつきファイルリスト @@ -207,16 +228,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help Cppcheck GUI ヘルプ + Contents 目次 + Index インデックス @@ -235,16 +259,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function 関数の追加 + Function name(s) 関数の名称 + Number of arguments 引数の数 @@ -253,86 +280,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor ライブラリエディタ + Open 開く + Save 保存する + Save as 別名で保存する + Functions 関数 + Sort ソート + Add 追加 + Filter: フィルタ: + Comments コメント + noreturn noreturn(返り値なし) + False False(偽) + True True(真) + Unknown Unknown(不明) + return value must be used 返り値は使用されなければならない + ignore function in leaks checking リークの解析中に無視する関数 + Arguments Arguments(引数) + Edit 編集 @@ -381,11 +425,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument 引数の編集 + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -401,12 +447,14 @@ Parameters: -l(line) (file) + Not bool 非ブール型 非bool値 + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -422,78 +470,99 @@ Parameters: -l(line) (file) + Not null 非NULL + Not uninit 未初期化 + String 文字列 + Format string フォーマット文字列 + Min size of buffer バッファの最小サイズ + + Type Type(型) + + None None(無) + + argvalue argvalue(引数の値) + + mul mul(積) + + strlen strlen(文字数) + + Arg Arg(引数) + + Arg2 Arg2(第二引数) + and and(和) + Valid values 妥当な値 @@ -502,596 +571,722 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck + &File ファイル(&F) + &View 表示(&V) + &Toolbars ツールバー(&T) + &Help ヘルプ(&H) - + + C++ standard C++標準 - + + &C standard C standard &C標準 - + + &Edit 編集(&E) - + + Standard 言語規格 - + + Categories カテゴリ - + + &License... ライセンス(&L)... - + + A&uthors... 作者(&u)... - + + &About... Cppcheckについて(&A)... - + + &Files... ファイル選択(&F)... - - + + + + Analyze files Check files ファイルをチェックする - + + Ctrl+F Ctrl+F - + + &Directory... ディレクトリ選択(&D)... - - + + + + Analyze directory Check directory ディレクトリをチェックする - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop 停止(&S) - - + + + + Stop analysis Stop checking チェックを停止する - + + Esc Esc - + + &Save results to file... 結果をファイルに保存(&S)... - + + Ctrl+S Ctrl+S - + + &Quit 終了(&Q) - + + &Clear results 結果をクリア(&C) - + + &Preferences 設定(&P) - - + + + + Show style warnings スタイル警告を表示 - - - + + + + + Show errors エラーを表示 - - + + Information 情報 - + + Show information messages 情報メッセージを表示 - + + Show portability warnings 移植可能性の問題を表示 - + + Show Cppcheck results Cppcheck結果を表示する - + + Clang Clang - + + Show Clang results Clangの結果を表示 - + + &Filter フィルター(&F) - + + Filter results フィルタ結果 - + + Windows 32-bit ANSI Windows 32-bit ANSIエンコード - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... 印刷(&P)... - + + Print the Current Report 現在のレポートを印刷 - + + Print Pre&view... 印刷プレビュー(&v)... - + + Open a Print Preview Dialog for the Current Results 現在のレポートをプレビュー表示 - + + Open library editor ライブラリエディタを開く - + + C&lose Project File プロジェクトを閉じる(&l) - + + &Edit Project File... プロジェクトの編集(&E)... - + + &Statistics 統計情報(&S) - - - + + + + + Show warnings 警告を表示 - - + + + + Show performance warnings パフォーマンス警告を表示 - + + Show &hidden 非表示を表示(&h) - + + &Check all すべてのエラーを表示(&C) + Checking for updates 更新の確認 + Hide 非表示 - + + + Report レポート - + + A&nalyze チェック(&n) - + + Filter フィルター - + + &Reanalyze modified files &Recheck modified files 変更ありファイルを再解析(&R) - + + Reanal&yze all files 全ファイル再解析(&y) - + + Ctrl+Q Ctrl+Q - + + Style war&nings スタイル警告(&n) - + + E&rrors エラー(&r) - + + &Uncheck all すべてのエラーを非表示(&U) - + + Collapse &all ツリーを折り畳む(&a) - + + &Expand all ツリーを展開(&E) - + + &Standard 言語規格(&S) - + + Standard items 標準項目 - + + &Contents コンテンツ(&C) - + + Open the help contents ヘルプファイルを開く - + + F1 F1 - + + Toolbar ツールバー - + + &Categories カテゴリ(&C) - + + Error categories エラーカテゴリ - + + &Open XML... XMLを開く(&O)... - + + Open P&roject File... プロジェクトを開く(&R)... - + + Ctrl+Shift+O Ctrl+Shift+O - + + Sh&ow Scratchpad... スクラッチパッドを表示(&o)... - + + &New Project File... 新規プロジェクト(&N)... - + + Ctrl+Shift+N Ctrl+Shift+N - + + &Log View ログを表示(&L) - + + Log View ログ表示 - + + &Warnings 警告(&W) - + + Per&formance warnings パフォーマンス警告(&f) - + + &Information 情報(&I) - + + &Portability 移植可能性(&P) - + + P&latforms プラットフォーム(&l) - + + C++&11 C++11(&1) - + + C&99 C99(&9) - + + &Posix Posix(&P) - + + C&11 C11(&1) - + + &C89 C89(&C) - + + &C++03 C++03(&C) - + + &Library Editor... ライブラリエディタ(&L)... - + + &Auto-detect language 自動言語検出(&A) - + + &Enforce C++ C++ 強制(&E) - + + E&nforce C C 強制(&n) - + + C++14 C++14 - + + Reanalyze and check library ライブラリを再チェックする - + + Check configuration (defines, includes) チェックの設定(define、インクルード) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... コンプライアンスレポート... - + + Normal ノーマル - + + Misra C MISRA C - + + Misra C++ 2008 MISRA C++ 2008 - + + Cert C CERT C - + + Cert C++ Cert C++ - + + Misra C++ 2023 MISRA C++ 2023 - + + Autosar AUTOSAR - + + + EULA... + + + + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1100,23 +1295,23 @@ This is probably because the settings were changed between the Cppcheck versions Cppcheckの古いバージョンの設定には互換性がありません。エディタアプリケーションの設定を確認して修正してください、そうしないと正しく起動できないかもしれません。 - + You must close the project file before selecting new files or directories! 新しいファイル/ディレクトリをチェックするには現在のプロジェクトを閉じてください! - - + + Quick Filter: クイックフィルタ: - + Select configuration コンフィグレーションの選択 - + Found project file: %1 Do you want to load this project file instead? @@ -1125,69 +1320,69 @@ Do you want to load this project file instead? 現在のプロジェクトの代わりにこのプロジェクトファイルを読み込んでもかまいませんか? - + The library '%1' contains unknown elements: %2 このライブラリ '%1' には次の不明な要素が含まれています。 %2 - + File not found ファイルがありません - + Bad XML 不正なXML - + Missing attribute 属性がありません - + Bad attribute value 不正な属性があります - + Unsupported format サポートされていないフォーマット - + Duplicate platform type プラットフォームの種類が重複しています - + Platform type redefined プラットフォームの種類が再定義されました - + Unknown element 不明な要素 - + Unknown issue 不明な課題 - + Failed to load the selected library '%1'. %2 選択したライブラリの読み込みに失敗しました '%1' %2 - - - - + + + + Error エラー @@ -1200,73 +1395,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,70 +1470,70 @@ Analysis is stopped. 解析を停止しました。 - + Failed to import '%1' (%2), analysis is stopped '%1' (%2) のインポートに失敗しました。解析は停止 - + Install インストール - + New version available: %1. %2 新しいバージョンが利用可能です。: %1. %2 - - - - + + + + Project: プロジェクト: - + No suitable files found to analyze! チェック対象のファイルがみつかりません! - + C/C++ Source C/C++のソースコード - + Compile database コンパイルデータベース - + Visual Studio Visual Studio - + Borland C++ Builder 6 Borland C++ Builder 6 - + Select files to analyze チェック対象のファイルを選択 - + Select directory to analyze チェックするディレクトリを選択してください - + Select the configuration that will be analyzed チェックの設定を選択 - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? @@ -1347,37 +1542,37 @@ Do you want to proceed analysis without using any of these project files? - + Duplicate define 重複した定義 - + File not found: '%1' ファイルがありません: '%1' - + Failed to load/setup addon %1: %2 アドオンの読み込みまたは設定に失敗 %1 - %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. %1のロードに失敗しました。あなたの Cppcheck は正しくインストールされていません。あなたは --data-dir=<directory> コマンドラインオプションを使ってこのファイルの場所を指定できます。ただし、この --data-dir はインストールスクリプトによって使用されていなければなりません。またGUI版はこれを使用しません。さらに、全ての設定は調整済みでなければなりません。 - + Failed to load %1 - %2 Analysis is aborted. 読み込みに失敗 %1 - %2 - - + + %1 Analysis is aborted. @@ -1386,7 +1581,7 @@ Analysis is aborted. 解析は中止した。 - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1396,7 +1591,7 @@ Do you want to proceed? 新しくXMLファイルを開くと現在の結果が削除されます。実行しますか? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1405,77 +1600,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 +1679,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 @@ -1511,7 +1706,7 @@ Do you want to remove the file from the recently used projects -list? 最近使用したプロジェクトのリストからこのファイルを取り除きますか? - + Cppcheck GUI. Syntax: @@ -1552,7 +1747,7 @@ Options: --data-dir=<directory> GUI のデータファイル(翻訳やcfg)のあるディレクトリを指定する。このオプションを指定した場合、GUIで起動しません。 - + Cppcheck GUI - Command line parameters Cppcheck GUI - コマンドラインパラメータ @@ -1561,26 +1756,31 @@ Options: NewSuppressionDialog + New suppression 新しい指摘の抑制 + Error ID エラーID + File name ファイル名 + Line number 行数 + Symbol name シンボル名 @@ -1627,28 +1827,33 @@ Options: ProjectFile + Project File プロジェクトファイル + Paths and Defines パスと定義 + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) プロジェクトのインポート(Visual studio / compile database Borland C++ Builder 6)) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' 定義(Define)はセミコロン';'で区切る必要があります。 例: DEF1;DEF2=5;DEF3=int + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. カスタマイズした cfgファイルを同じフォルダにプロジェクトファイルとして保存してください。ここに表示できるようになります。 @@ -1658,21 +1863,25 @@ Options: + 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> + ... ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> <html><head/><body><p>選択済み:</p><p> * 全Debug と Release設定をチェックする</p><p> * 最初にマッチした Debug 設定のみチェックする</p><p><br/></p></body></html> @@ -1680,27 +1889,35 @@ Options: + + + Browse... 参照... + Analyze all Visual Studio configurations Visual Studioの全ての設定をチェックする + Selected VS Configurations 選択したVS設定 + Paths: パス: + + Add... 追加... @@ -1708,6 +1925,9 @@ Options: + + + Edit 編集 @@ -1716,265 +1936,323 @@ Options: + + + + Remove 取り除く + Undefines: 定義取り消し(Undefines): + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 定義の取り消しはセミコロンで区切ります。例: UNDEF1;UNDEF2;UNDEF3 + Include Paths: インクルードパス: + Types and Functions 型と関数 + + Analysis チェック + This is a workfolder that Cppcheck will use for various purposes. Cppcheckがさまざまな目的で使用するワークディレクトリ。 + Parser パーサー + Cppcheck (built in) Cppcheckビルトイン + Check level チェックレベル + 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 + 2025 2025 + Misra C++ MISRA C++ + 2008 2008 + Cert C++ Cert C++ + Bug hunting (Premium) バグハンティング(プレミアム) + External tools 外部ツール + Up + Down + Platform プラットフォーム + Clang (experimental) 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) 警告タグ(セミコロン区切り) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) Cppcheck ビルドディレクトリ (全プログラムチェック, 差分チェック, 統計等) + Libraries ライブラリ + 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 コーディング標準 @@ -1984,11 +2262,13 @@ Options: + Cert C CERT C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) CERT-INT35-C: int型の精度 (もしサイズが精度と一致する場合空のままにしてください) @@ -1998,26 +2278,31 @@ Options: + Autosar AUTOSAR + Bug hunting バグハント + Clang analyzer Clang Analyzer + Clang-tidy Clang-tidy + Defines: 定義(Defines): @@ -2030,77 +2315,77 @@ Options: プロジェクトファイル:%1 - + Select Cppcheck build dir Cppcheckビルドディレクトリ - + Select include directory includeディレクトリを選択 - + Select a directory to check チェックするディレクトリを選択してください - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2116,32 +2401,32 @@ Options: QObject - + Unknown language specified! 未知の言語が指定されました! - + Language file %1 not found! 言語ファイル %1 が見つかりません! - + Failed to load translation for language %1 from file %2 言語 %2 から %1 への翻訳ファイルの読み込みに失敗 - + line %1: Unhandled element %2 行 %1: 扱われていない要素(Unhandled element) %2 - + line %1: Mandatory attribute '%2' missing in '%3' 行 %1: 必須の属性 '%2' が '%3'にない - + (Not found) (見つかりません) @@ -2272,77 +2557,77 @@ Options: シンボルのフォントウェイト - + Set to Default Light デフォルトをライトに設定 - + Set to Default Dark デフォルトをダークに設定 - + File ファイル - + Line - + Severity 警告の種別 - + Classification 分類 - + Level レベル - + Inconclusive 結論のでない - + Summary 要約 - + Id Id - + Guideline ガイドライン - + Rule ルール - + Since date 日付 - + Tags タグ - + CWE CWE @@ -2350,22 +2635,22 @@ Options: QPlatformTheme - + OK OK - + Cancel キャンセル - + Close 閉じる - + Save 保存する @@ -2389,93 +2674,101 @@ Options: 要約 - + Undefined file 未定義ファイル - + Copy コピー - + Could not find file: ファイルが見つかりません: - + Please select the folder '%1' フォルダ '%1' を選択してください - + Select Directory '%1' ディレクトリ '%1' 選択 - + Please select the directory where file is located. ファイルのあるディレクトリを選択してください。 - + debug デバッグ - + note 注意 - Recheck - 再チェック + 再チェック - Hide - 非表示 + 非表示 - + Hide all with id IDで非表示を指定 - + Suppress selected id(s) 選択したidを抑制 - + Open containing folder 含まれるフォルダを開く - + internal 内部 - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag タグ - + No tag タグなし - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2485,7 +2778,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2494,12 +2787,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. @@ -2508,7 +2801,7 @@ Please check the application path and parameters are correct. 実行ファイルパスや引数の設定を確認してください。 - + Select Directory ディレクトリを選択 @@ -2525,32 +2818,32 @@ Please check the application path and parameters are correct. 日付 - + style スタイル - + error エラー - + warning 警告 - + performance パフォーマンス - + portability 移植可能性 - + information 情報 @@ -2559,58 +2852,62 @@ Please check the application path and parameters are correct. ResultsView + Results 結果 + Critical errors 致命的なエラー + Analysis Log チェックログ + Warning Details 警告の詳細 - - + + Failed to save the report. レポートの保存に失敗しました。 - + Print Report レポートの印刷 - + No errors found, nothing to print. 指摘がないため、印刷するものがありません。 - + %p% (%1 of %2 files checked) %p% (%1 / %2 :ファイル数) - - + + Cppcheck Cppcheck - + No errors found. 警告/エラーは見つかりませんでした。 - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. 警告/エラーが見つかりましたが、非表示設定になっています。 @@ -2686,26 +2983,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad スクラッチパッド + Copy or write some C/C++ code here: ここに C/C++のコードをコピーペーストまたは記入してください: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": オプション: ファイル名を入力(言語は自動判定)して"チェック"をクリックしてください: + filename ファイル名 + Check チェック @@ -2714,195 +3016,240 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences 設定 + General 全般 - + + Add... 追加... + Number of threads: 解析用のスレッド数: - Ideal count: - 理想的な数: + 理想的な数: - + + Force checking all #ifdef configurations Check all #ifdef configurations すべての #ifdef をチェックする - + + Show full path of files ファイルのフルパスを表示 - + + Show "No errors found" message when no errors found エラーが無いときは"エラーなし"を表示 - + + Display error Id in column "Id" エラーIDを "Id" に表示する - + + Enable inline suppressions inline抑制を有効にする - + + Check for inconclusive errors also 結論のでない指摘もチェックする - + + Show statistics on check completion チェック完了時に統計情報を表示する - + + Check for updates 更新の確認 - + + Show internal warnings in log ログの内部警告も表示する - + + Addons アドオン - + + Python binary (leave this empty to use python in the PATH) Pythonインタプリタの場所(空白の場合システムのPATHから検索) - - - + + + + + + ... ... - + + MISRA addon MISRAアドオン - + + MISRA rule texts file 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; from the MISRA C 2012 pdfのテキストをテキストファイルにコピー</p></body></html> - + + Clang Clang - + + Clang path (leave empty to use system PATH) Clangの場所(空白の場合システムのPATHから検索) - + + Visual Studio headers Visual Studioのヘッダ - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> <html><head/><body><p>Visual Studioのヘッダーファイル(セミコロン区切り';')。</p><p>Visual Studio コマンドプロンプトを開き、 &quot;SET INCLUDE&quot;. と入力後、そのパスをコピーペーストしてください。</p></body></html> - + + Code Editor コードエディタ - + + Code Editor Style コードエディタスタイル - + + System Style システムのデフォルトのスタイル - + + Default Light Style ライトスタイルをデフォルトに - + + Default Dark Style ダークスタイルをデフォルトに - + + Custom カスタム - + + Remove 削除 - + + + Max count: + + + + + Applications アプリケーション - - + + + + Edit... 編集... - + + Set as default デフォルトとして設定 - + + Reports レポート - + + Save all errors when creating report レポート作成時にすべての警告/エラーを保存 - + + Save full path to files in reports レポートにファイルのフルパスを保存 - + + Language 言語 @@ -2910,47 +3257,46 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - N/A - N/A + N/A - + The executable file "%1" is not available 実行ファイル "%1" が利用できません - + Add a new application 新しいアプリケーションの追加 - + Modify an application アプリケーションの変更 - + [Default] [デフォルト] - + [Default] [デフォルト] - + Select python binary pythonの場所の選択 - + Select MISRA File MISRAファイルの選択 - + Select clang path clangのパスの選択 @@ -2960,261 +3306,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics 統計情報 - + + Project プロジェクト + Project: プロジェクト: + Paths: パス: + Include paths: インクルードパス: + Defines: 定義(define): + Undefines: 定義取り消し(undef): - + + Previous Scan 前回の解析 + Path Selected: ディレクトリ選択: + Number of Files Scanned: 解析済みファイル数: + Scan Duration: 解析にかかった時間: + Errors: エラー: + Warnings: 警告: + Stylistic warnings: スタイル警告: + Portability warnings: 移植可能性の警告: + Performance issues: パフォーマンス警告: + Information messages: 情報メッセージ: + Active checkers: 有効なチェッカー: + Checkers チェッカー + History ヒストリー + File: ファイル: + Copy to Clipboard クリップボードにコピー + Pdf Export PDF エクスポート - + 1 day 一日 - + %1 days %1日 - + 1 hour 一時間 - + %1 hours %1時間 - + 1 minute 一分 - + %1 minutes %1分 - + 1 second 一秒 - + %1 seconds %1秒 - + 0.%1 seconds 0.%1秒 - + and - + Export PDF PDF エクスポート - + Project Settings プロジェクトの設定 - + Paths パス - + Include paths インクルードパス - + Defines 定義(define) - + Undefines 定義取り消し(Undef) - + Path selected 選択されたパス - + Number of files scanned スキャンしたファイルの数 - + Scan duration スキャン期間 - - + + Errors エラー - + File: ファイル: - + No cppcheck build dir cppcheckビルドディレクトリがありません - - + + Warnings 警告 - - + + Style warnings スタイル警告 - - + + Portability warnings 移植可能性警告 - - + + Performance warnings パフォーマンス警告 - - + + Information messages 情報メッセージ @@ -3222,7 +3592,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked チェック: %1 / %2 (ファイル数) @@ -3230,7 +3600,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3241,7 +3611,7 @@ The user interface language has been reset to English. Open the Preferences-dial そのため言語を 英語にリセットします。設定ダイアログから利用可能な言語を選択してください。 - + Cppcheck Cppcheck diff --git a/gui/cppcheck_ka.ts b/gui/cppcheck_ka.ts index aca14874bfa..b997bf14116 100644 --- a/gui/cppcheck_ka.ts +++ b/gui/cppcheck_ka.ts @@ -5,27 +5,32 @@ About + About Cppcheck Cppcheck-ის შესახებ + Version %1 ვერსია %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - ხელსაწყო სტატიკური C/C++ კოდის ანალიზისთვის. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-%1 Cppcheck-ის გუნდი. ყველა უფლება დაცულია. + This program is licensed under the terms of the GNU General Public License version 3 ვრცელდება GNU-ის საჯარო ლიცენზიის, @@ -33,11 +38,13 @@ of the GNU General Public License version 3 + Visit Cppcheck homepage at %1 ეწვიეთ Cppcheck-ის ვებგვერდს მისამართზე %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> <html><head/><body><p>დიდი მადლობა ამ ბიბლიოთეკებს, რომლებსაც ვიყენებთ::</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> @@ -47,11 +54,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application აპლიკაციის დამატება + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -67,21 +76,25 @@ Parameters: -l(line) (file) + &Name: &სახელი: + &Executable: &გამშვები ფაილი: + &Parameters: &პარამეტრები: + Browse დათვალიერება @@ -110,41 +123,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report შესაბამისობის ანგარიში + Project name პროექტის სახელი + Project version პროექტის ვერსია + Coding Standard კოდირების სტანდარტი + Misra C Misra C + Cert C Cert C + Cert C++ Cert C++ + List of files with md5 checksums MD5 საკონტროლო ჯამების მქონე ფაილების სია @@ -195,16 +216,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help Cppcheck-ის გრაფიკული ინტერფეისის დახმარება + Contents შემცველობა + Index ინდექსი @@ -223,16 +247,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function ფუნქციის დამატება + Function name(s) ფუნქციის სახელ(ებ)-ი + Number of arguments არგუმენტების რაოდენობა @@ -241,86 +268,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor ბიბლიოთეკის რედაქტორი + Open გახსნა + Save შენახვა + Save as შენახვა, როგორც + Functions ფუნქციები + Sort დალაგება + Add დამატება + Filter: ფილტრი: + Comments კომენტარები + noreturn noreturn + False მცდარი + True სიმართლე + Unknown უცნობი + return value must be used უნდა გამოიყენოთ დაბრუნებული მნიშვნელობა + ignore function in leaks checking ფუნქციების გამოტოვება გაჟონვები შემოწმებისას + Arguments არგუმენტები + Edit ჩასწორება @@ -368,11 +412,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument არგუმენტის ჩასწორება + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -383,11 +429,13 @@ Parameters: -l(line) (file) + Not bool ლოგიკური მნ. არაა + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -398,78 +446,99 @@ Parameters: -l(line) (file) + Not null ნულოვანი არაა + Not uninit Uninit არაა + String სტრიქონი + Format string სტრიქონის ფორმატი + Min size of buffer ბუფერის მინ. ზომა + + Type ტიპი + + None არაფერი + + argvalue argvalue + + mul mul + + strlen strlen + + Arg არგ + + Arg2 Arg2 + and და + Valid values სწორი მნიშვნელობები @@ -478,607 +547,733 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze ა&ნალიზი - + + Standard სტანდარტული + &File &ფაილი + &View &ხედი + &Toolbars &ხელსაწყოთა ზოლები - + + C++ standard C++-ის სტანდარტი - + + &C standard C standard &C-ის სტანდარტი - + + &Edit &ჩასწორება - + + &License... &ლიცენზია... - + + A&uthors... &ავტორები... - + + &About... &შესახებ... - + + &Files... ფაილ&ები... - - + + + + Analyze files Check files ფაილების ანალიზი - + + Ctrl+F Ctrl+F - + + &Directory... &საქაღალდე.... - - + + + + Analyze directory Check directory საქაღალდის ანალიზი - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &გაჩერება - - + + + + Stop analysis Stop checking ანალიზის გაჩერება - + + Esc Esc - + + &Save results to file... შედეგები&ს შენახვა ფაილში.... - + + Ctrl+S Ctrl+S - + + &Quit გამოსვლა - + + &Clear results შედეგების &გასუფთავება - + + &Preferences &გამართვა - - - + + + + + Show errors შეცდომების ჩვენება - - - + + + + + Show warnings გაფრთხილების ჩვენება - - + + + + Show performance warnings წარმადობის გაფრთხილებების ჩვენება - + + Show &hidden დამალულის &ჩვენება - - + + Information ინფორმაცია - + + Show information messages ინფორმაციის შეტყობინებების ჩვენება - + + Show portability warnings გადატანადობის გაფრთხილებების ჩვენება - + + Show Cppcheck results Cppcheck-ის შედეგები ჩვენება - + + Clang Clang - + + Show Clang results Clang-ის შედეგები ჩვენება - + + &Filter &ფილტრი - + + Filter results შედეგების გაფილტვრა - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... &ბეჭდვა… - + + Print the Current Report მიმდინარე ანგარიშის დაბეჭდვა - + + Print Pre&view... საბეჭდის &გადახედვა... - + + Open a Print Preview Dialog for the Current Results მიმდინარე შედეგების დაბეჭდვის მინიატურის დიალოგის ჩვენება - + + Open library editor ბიბლიოთეკის რედაქტორის გახსნა - + + &Check all &ყველას ჩართვა + Checking for updates განახლებების შემოწმება + Hide დამალვა - + + + Report - + + Filter ფილტრი - + + &Reanalyze modified files &Recheck modified files ყველა შეცვლილი ფაილის თავიდან ანალი&ზი - + + Reanal&yze all files &ყველა ფაილის თავიდან ანალიზი - + + Ctrl+Q Ctrl+Q - + + Style war&nings ს&ტილის გაფრთხილებები - + + E&rrors &შეცდომები - + + &Uncheck all ყველას ჩამოყ&რა - + + Collapse &all ყველას ჩაკეცვ&ა - + + &Expand all &ყველას ამოკეცვა - + + &Standard &სტანდარტული - + + Standard items სტანდარტული ელემენტები - + + Toolbar ხელსაწყოთა ზოლი - + + &Categories &კატეგორიები - + + Error categories შეცდომის კატეგორიები - + + &Open XML... &XML-ის გახსნა... - + + Open P&roject File... პ&პროექტის ფაილის გახსნა... - + + Ctrl+Shift+O Ctrl+Shift+O - + + Sh&ow Scratchpad... ბლ&ოკნოტის ჩვენება... - + + &New Project File... &ახალი პროექტის ფაილი... - + + Ctrl+Shift+N Ctrl+Shift+N - + + &Log View ჟურნა&ლის ხედი - + + Log View ჟურნალის ხედი - + + C&lose Project File პროექტის ფაი&ლის დახურვა - + + &Edit Project File... პროექტის ფაილის ჩასწორ&ება... - + + &Statistics &სტატისტიკა - + + &Warnings &გაფრთხილებები - + + Per&formance warnings წარმატების გა&ფრთხილებები - + + &Information &ინფორმაცია - + + &Portability &გადატანადობა - + + P&latforms პ&ლატფორმები - + + C++&11 C++&11 - + + C&99 C&99 - + + &Posix &Posix - + + C&11 C&11 - + + &C89 &C89 - + + &C++03 &C++03 - + + &Library Editor... ბიბ&ლიოთეკის რედაქტორი... - + + &Auto-detect language ენის &ავტოდადგენა - + + &Enforce C++ ძ&ალით C++ - + + E&nforce C ძა&ლით C - + + C++14 C++14 - + + Reanalyze and check library ბიბლიოთეკის თავიდან ანალიზი და შემოწმება - + + Check configuration (defines, includes) კონფიგურაციის შემოწმება (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... შესაბამისობის ანგარიში... - + + Normal ნორმალური - + + Misra C Misra C - + + Misra C++ 2008 - + + Cert C Cert C - + + Cert C++ Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents &შემცველობა - + + Categories კატეგორიები - - + + + + Show style warnings სტილის გაფრთხილების ჩვენება - + + Open the help contents დახმარების შემცველობის გახსნა - + + F1 F1 + &Help &დახმარება - - + + Quick Filter: სწრაფი ფილტრი: - + Select configuration აირჩიეთ კონფიგურაცია - + Found project file: %1 Do you want to load this project file instead? @@ -1087,61 +1282,61 @@ Do you want to load this project file instead? გნებავთ, სამაგიეროდ, ეს პროექტის ფაილი ჩატვირთოთ? - + File not found ფაილი ნაპოვნი არაა - + Bad XML არასწორი XML - + Missing attribute აკლია ატრიბუტი - + Bad attribute value არასწორი ატრიბუტის მნიშვნელობა - + Unsupported format მხარდაუჭერელი ფორმატი - + Duplicate define გამეორებული აღწერა - + Failed to load the selected library '%1'. %2 ჩავარდა ჩატვირთვა მონიშნული ბიბლიოთეკისთვის '%1'. %2 - + File not found: '%1' ფაილი ვერ ვიპოვე: '%1' - + Failed to load/setup addon %1: %2 დამატების (%1) ჩატვირთვა/მორგება ჩავარდა: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. @@ -1150,8 +1345,8 @@ Analysis is aborted. ანალიზი შეწყდა. - - + + %1 Analysis is aborted. @@ -1160,148 +1355,148 @@ Analysis is aborted. ანალიზი შეწყვეტილია. - + License ლიცენზია - + Authors ავტორები - + Save the report file ანგარიშის ფაილში ჩაწერა - - + + XML files (*.xml) XML ფაილები (*.xml) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. - + You must close the project file before selecting new files or directories! ახალი ფაილების ან საქაღალდეების არჩევამდე პრორექტის ფაილი უნდა დახუროთ! - + The library '%1' contains unknown elements: %2 ბიბლიოთეკა '%1' უცნობ ელემენტებს შეიცავს: %2 - + Duplicate platform type გამეორებული პლატფორმის ტიპი - + Platform type redefined პლატფორმის ტიპი თავდან აღიწერა - + Unknown element უცნობი ელემენტი - + Unknown issue უცნობი პრობლემა - - - - + + + + Error შეცდომა - + Open the report file ანგარიშის ფაილის გახსნა - + Text files (*.txt) ტექსტური ფაილები (*.txt) - + CSV files (*.csv) CSV ფაილები (*.csv) - + Project files (*.cppcheck);;All files(*.*) პროექტის ფაილები (*.cppcheck);;ყველა ფაილი(*.*) - + Select Project File აირჩიეთ პროექტის ფაილი - - - - + + + + Project: პროექტი: - + No suitable files found to analyze! ანალიზისათვის შესაფერისი ფაილები აღმოჩენილი არაა! - + C/C++ Source C/C++ საწყისი კოდი - + Compile database მონაცემთა ბაზის კომპილაცია - + Visual Studio Visual Studio - + Borland C++ Builder 6 Borland C++ Builder 6 - + Select files to analyze აირჩეთ ფაილები ანალიზისთვის - + Select directory to analyze აირჩიეთ საქაღალდე ანალიზისთვის - + Select the configuration that will be analyzed აირჩიეთ კონფიგურაცია ანალიზისთვის - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? @@ -1310,7 +1505,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 +1516,7 @@ Do you want to proceed? გნებავთ, გააგრძელოთ? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1330,47 +1525,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 +1574,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,72 +1611,72 @@ 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 - + Cppcheck GUI. Syntax: @@ -1524,7 +1719,7 @@ Options: არ გამოიყენება. - + Cppcheck GUI - Command line parameters Cppcheck GUI - ბრძანების სტრიქონის პარამეტრები @@ -1533,26 +1728,31 @@ Options: NewSuppressionDialog + New suppression ახალი ჩახშობა + Error ID შეცდომის ID + File name ფაილის სახელი + Line number ხაზის ნომერი + Symbol name სიმბოლოს სახელი @@ -1599,93 +1799,111 @@ Options: ProjectFile + Project File პროექტის ფაილი + Paths and Defines ბილიკები და აღწერები + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) პროექტის შემოტანა (Visual studio / მონაცემთა ბაზი კომპილაცია / Borland C++ Builder 6) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' აღწერები წერტილმძიმით უნდა იყოს გამოყოფილი. მაგ: DEF1;DEF2=5;DEF3=int + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. შენიშვნა: ჩადეთ თქვენი .cfg ფაილები იგივე საქაღალდეში, სადაც პროექტის ფაილია. მათ ზემოთ დაინახავთ. + Clang (experimental) 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> + ... ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> @@ -1693,27 +1911,35 @@ Options: + + + Browse... ნუსხა... + Analyze all Visual Studio configurations ყველა Visual Studio-ის კონფიგურაციის ანალიზი + Selected VS Configurations არჩეული VS-ის კონფიგურაციები + Paths: ბილიკები: + + Add... დამატება... @@ -1721,6 +1947,9 @@ Options: + + + Edit ჩასწორება @@ -1729,255 +1958,311 @@ Options: + + + + Remove წაშლა + Undefines: წაშლილი მაკროაღწერები: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 წაშლილი მაკროაღწერები წერტილმძიმით უნდა იყოს გამოყოფილი. მაგ: UNDEF1;UNDEF2;UNDEF3 + Include Paths: ჩასმის ბილიკები: + Types and Functions ტიპები და ფუნქციები + + Analysis ანალიზი + This is a workfolder that Cppcheck will use for various purposes. ეს სამუშაო საქაღალდეა, რომელსაც Cppcheck სხვადასხვა მიზნებისთვის გამოიყენებს. + Parser ანალიზატორი + Cppcheck (built in) Cppcheck (ჩაშენებული) + Check level შემოწმების დონე + 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 შეცდომების ხაზშივე ჩახშობის ჩართვა + 2025 2025 + 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 გარე ხელსაწყოები + Up მაღლა + Down ქვემოთ + Platform პლატფორმა + Warning options გაფრთხილების მორგება + Root path: Root ბილიკი: + Warning tags (separated by semicolon) გაფრთხილების ჭდეები (წერტილმძიმით გამოყოფილი) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) Cppcheck-ის აგების საქაღალდე (მთელი პროგრამის ანალიზი, ინკრემენტული ანალიზი, სტატისტიკა და ა.შ.) + Libraries ბიბლიოთეკები + 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 + Defines: მაკროაღწრები: @@ -1990,77 +2275,77 @@ Options: პროექტის ფაილი: %1 - + Select Cppcheck build dir აირჩიეთ Cppcheck-ის აგების საქაღალდე - + Select include directory აირჩიეთ ჩასასმელი საქაღალდე - + Select a directory to check აირჩიეთ შესამოწმებელი საქაღალდე - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2068,34 +2353,34 @@ Options: QObject - + Unknown language specified! მითითებული ენა უცნობია! - + Language file %1 not found! Language file %1.qm not found! ენის ფაილი %1 ვერ ვიპოვე! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm ჩავარდა თარგმანის ჩატვირთვა ენისთვის %1 ფაილიდან %2 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' ხაზი %1: აუცილებელი ატრიბუტი '%2' '%3'-ში აღმოჩენილი არაა - + (Not found) (ვერ ვიპოვე) @@ -2226,77 +2511,77 @@ Options: სიმბოლოს ფონტის სიმძიმე - + Set to Default Light ნაგულისხმევად ღიას დაყენება - + Set to Default Dark ნაგულისხმევად მუქის დაყენება - + File ფაილი - + Line ხაზი - + Severity სიმძიმე - + Classification - + Level - + Inconclusive არადამაჯერებელი - + Summary შეჯამება - + Id Id - + Guideline - + Rule - + Since date თარიღიდან - + Tags - + CWE @@ -2304,22 +2589,22 @@ Options: QPlatformTheme - + OK დიახ - + Cancel შეწყვეტა - + Close დახურვა - + Save შენახვა @@ -2343,93 +2628,101 @@ Options: შეჯამება - + Undefined file გაურკვეველი ფაილი - + Copy კოპირება - + Could not find file: ვერ ვიპოვე ფაილი: - + Please select the folder '%1' აირჩიეთ საქაღალდე '%1' - + Select Directory '%1' აირჩიეთ საქაღალდე '%1' - + Please select the directory where file is located. აირჩიეთ საქაღალდე, სადაც ფაილია მოთავსებული. - + debug შეცდომების მოძებნა - + note ნოტა - Recheck - თავიდან შემოწმება + თავიდან შემოწმება - Hide - დამალვა + დამალვა - + Hide all with id დამალვა ყველასი id-ით - + Suppress selected id(s) მონიშნული id(ებ)-ის ჩახშობა - + Open containing folder შემცველი საქაღალდის გახსნა - + internal შიდა - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag იარლიყი - + No tag ჭდის გარეშე - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2439,7 +2732,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2448,12 +2741,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. @@ -2462,7 +2755,7 @@ Please check the application path and parameters are correct. შეამოწმეთ, სწორია, თუ არა აპლიკაციის ბილიკი და მისი პარამეტრები. - + Select Directory აირჩიეთ საქაღალდე @@ -2479,32 +2772,32 @@ Please check the application path and parameters are correct. თარიღიდან - + style სტილი - + error შეცდომა - + warning გაფრთხილება - + performance წარმადობა - + portability გადატანადობა - + information ინფორმაცია @@ -2512,33 +2805,33 @@ Please check the application path and parameters are correct. ResultsView - + Print Report ანგარიშის დაბეჭდვა - + No errors found, nothing to print. შეცდომები ვერ ვიპოვე. დასაბეჭდი არაფერია. - + %p% (%1 of %2 files checked) %p% (შემოწმებულია %1 ფაილი %2-დან) - - + + Cppcheck Cppcheck - + No errors found. შეცდომების გარეშე. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. აღმოჩენილია შეცდომები, მაგრამ მითითებულია, რომ ისინი დაიმალოს. @@ -2611,28 +2904,32 @@ To toggle what kind of errors are shown, open view menu. ანალიზი შეწყვეტილია. - - + + Failed to save the report. ანგარიშის შენახვა ჩავარდა. + Results შედეგები + Critical errors კრიტიკული შეცდომები + Analysis Log ანალიზის ჟურნალი + Warning Details გაფრთხილების დეტალები @@ -2641,26 +2938,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad მონახაზი + Copy or write some C/C++ code here: დააკოპირეთ ან დაწერეთ C/C++ კოდი აქ: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": შეიყვანეთ არასავალდებულო ფაილის სახელი (ძირითადად ავტომატური ენის დადგენისთვის) და დააწკაპუნეთ ღილაკზე "შემოწმება": + filename ფაილის სახელი + Check შემოწმება @@ -2669,195 +2971,240 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences მორგება + General ზოგადი - + + Add... დამატება... + Number of threads: ნაკადების რაოდენობა: - Ideal count: - რეკომენდებული მნიშვნელობა: + რეკომენდებული მნიშვნელობა: - + + Force checking all #ifdef configurations Check all #ifdef configurations ყველა #ifdef კონფიგურაციის ნაძალადევი შემოწმება - + + Show full path of files ფაილების სრული ბილიკის ჩვენება - + + Show "No errors found" message when no errors found "შეცდომები ნაპოვნი არაა" შეტყობინების ჩვენება, როცა შეცდომები აღმოჩენილი არა - + + Display error Id in column "Id" სვეტში "Id" შეცდომის Id-ის ჩვენება - + + Enable inline suppressions შეცდომების ხაზშივე ჩახშობის ჩართვა - + + Check for inconclusive errors also ასევე, ნაჩვენები იქნება საკამათო შეცდომებიც - + + Show statistics on check completion სტატისტიკის ჩვენება შემოწმების დასრულებისას - + + Check for updates განახლებების შემოწმება - + + Show internal warnings in log ჟურნალში შიდა გაფრთხილებების ჩვენება - + + Addons დამატებები - + + Python binary (leave this empty to use python in the PATH) ბილიკი python-ის ინტერპრეტატორამდე. (PATH-ში არსებული python-ის გამოსაყენებლად ცარიელი დატოვეთ) - - - + + + + + + ... ... - + + MISRA addon MISRA-ის დამატება - + + MISRA rule texts file 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> - + + Clang Clang - + + Clang path (leave empty to use system PATH) ბილიკი Clang-ის ინტერპრეტატორამდე. (PATH-ში არსებულის გამოსაყენებლად ცარიელი დატოვეთ) - + + Visual Studio headers Visual Studio-ის თავსართები - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor კოდის რედაქტორი - + + Code Editor Style კოდის რედაქტორის სტილი - + + System Style სისტემის მიყოლა - + + Default Light Style ნაგულისხმევი ღია სტილი - + + Default Dark Style ნაგულისხმევი მუქი სტილი - + + Custom მომხმარებლის - + + Remove წაშლა - + + + Max count: + + + + + Applications აპლიკაციები - - + + + + Edit... რედაქტირება... - + + Set as default ნაგულისხმებად დაყენება - + + Reports ანგარიში - + + Save all errors when creating report ყველა შეცდომის შენახვა ანგარიშის შექმნისას - + + Save full path to files in reports ფაილების სრული ბილიკის ჩვენება ანგარიშებში - + + Language ენა @@ -2865,47 +3212,46 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - N/A - N/A + N/A - + The executable file "%1" is not available გამშვები ფაილი "%1" ხელმისაწვდომი არაა - + Add a new application ახალი აპლიკაციის დამატება - + Modify an application აპლიკაციის შეცვლა - + [Default] [ნაგულისხმევი] - + [Default] [ნაგულისხმევი] - + Select python binary აირჩიეთ python-ის გამშვები ფაილი - + Select MISRA File აირჩიეთ MISA ფაილი - + Select clang path აირჩიეთ clang-ის ბილიკი @@ -2915,261 +3261,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics სტატისტიკა - + + Project პროექტი + Project: პროექტი: + Paths: ბილიკები: + Include paths: თავსართის ფაილის ბილიკები: + Defines: მაკროაღწრები: + Undefines: წაშლილი მაკროაღწერები: - + + Previous Scan წინა სკანირება + Path Selected: არჩეული ბილიკი: + Number of Files Scanned: დასკანერებულია ფაილების რაოდენობა: + Scan Duration: სკანირების ხანგრძლივობა: + Errors: შეცდომები: + Warnings: გაფრთხილებები: + Stylistic warnings: სტილისტური გაფრთხილებები: + Portability warnings: გადატანადობის გაფრთხილებები: + Performance issues: წარმადობის პრობლემები: + Information messages: ინფორმაციის შეტყობინებები: + Active checkers: აქტიური შემმოწმებლები: + Checkers შაში + History ისტორია + File: ფაილი: + Copy to Clipboard ბუფერში კოპირება + Pdf Export PDF-ად გატანა - + 1 day 1 დღე - + %1 days %1 დღე - + 1 hour %1 საათი - + %1 hours %1 საათი - + 1 minute %1 წუთი - + %1 minutes %1 წთ - + 1 second 1 წამი - + %1 seconds %1 წამი - + 0.%1 seconds 0.%1 წამი - + and და - + Export PDF PDF-ში გატანა - + Project Settings პროექტის პარამეტრები - + Paths ბილიკები - + Include paths ჩასმის ბილიკები - + Defines აღწერები - + Undefines წაშლილი მაკროაღწერები - + Path selected არჩეული ბილიკი - + Number of files scanned დასკანერებულია ფაილების რაოდენობა - + Scan duration სკანირების ხანგრძლივობა - - + + Errors შედომები - + File: ფაილი: - + No cppcheck build dir Cppcheck-ის აგების საქაღალდის გარეშე - - + + Warnings გაფრთხილებები - - + + Style warnings სტილის გაფრთხილებები - - + + Portability warnings გადატანადობის გაფრთხილებები - - + + Performance warnings წარმადობის გაფრთხილებები - - + + Information messages საინფორმაციო შეტყობინებები @@ -3177,7 +3547,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked შემოწმებულია %1 ფაილი %2-დან @@ -3185,7 +3555,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3198,7 +3568,7 @@ The user interface language has been reset to English. Open the Preferences-dial მომხმარებლის ინტერფეისი ინგლისურზე გადაირთო. გახსენით მორგების დიალოგი, რომ ხელმისაწვდომი ენებიდან სასურველი აირჩიოთ. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_ko.ts b/gui/cppcheck_ko.ts index 054f174febe..b14fcfe847f 100644 --- a/gui/cppcheck_ko.ts +++ b/gui/cppcheck_ko.ts @@ -5,21 +5,25 @@ About + About Cppcheck Cppcheck 정보 + Version %1 버전 %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - 정적 C/C++ 코드 분석 도구. + This program is licensed under the terms of the GNU General Public License version 3 이 프로그램은 GNU General Public License version 3을 @@ -27,17 +31,20 @@ of the GNU General Public License version 3 + Visit Cppcheck homepage at %1 Cppcheck 홈페이지(%1)를 방문해보세요 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. @@ -47,11 +54,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application 응용 프로그램 추가 + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -77,21 +86,25 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: + &Name: 이름(&N): + &Executable: 실행 파일(&E): + &Parameters: 명령행 인자(&P): + Browse 찾기 @@ -120,41 +133,49 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -203,16 +224,19 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: HelpDialog + Cppcheck GUI help + Contents + Index @@ -231,16 +255,19 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: LibraryAddFunctionDialog + Add function + Function name(s) + Number of arguments @@ -249,66 +276,79 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: LibraryDialog + Library Editor + Open + Save + Functions + Add + noreturn + False + True + Unknown + return value must be used + ignore function in leaks checking + Arguments + Edit 편집 @@ -325,21 +365,25 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: + Sort + Filter: + Comments + Save as @@ -375,11 +419,13 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: LibraryEditArgDialog + Edit argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -390,11 +436,13 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -405,78 +453,99 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -485,384 +554,465 @@ Kate로 파일을 열고, 해당 행으로 이동하는 예제: MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck + Checking for updates + Hide 숨기기 + &File 파일(&F) + &View 보기(&V) + &Toolbars 도구바(&T) - + + + Report + &Help 도움말(&H) - + + &Edit 편집(&E) - + + Standard 표준 도구 - + + Categories 분류 도구 - + + Filter 필터 도구 - + + &License... 저작권(&L)... - + + A&uthors... 제작자(&u)... - + + &About... 정보(&A)... - + + &Files... 파일(&F)... - + + Ctrl+F Ctrl+F - + + &Directory... 디렉토리(&D)... - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop 중지(&S) - + + Esc Esc - + + &Save results to file... 결과를 파일에 저장(&S)... - + + Ctrl+S Ctrl+S - + + &Quit 종료(&Q) - + + &Clear results 결과 지우기(&C) - + + &Preferences 설정(&P) - - + + + + Show style warnings 스타일 경고 표시 - - - + + + + + Show errors 애러 표시 - + + &Check all 전체 선택(&C) - + + &Uncheck all 전체 해제(&U) - + + Collapse &all 전체 접기(&A) - + + &Expand all 전체 펼치기(&E) - + + &Standard 표준 도구(&S) - + + Standard items 표준 아이템 - + + &Contents 내용(&C) - + + Open the help contents 도움말을 엽니다 - + + F1 F1 - + + Toolbar 도구바 - + + &Categories 분류 도구(&C) - + + Error categories 에러 종류 - + + &Open XML... XML 열기(&O)... - + + Open P&roject File... 프로젝트 파일 열기(&R)... - + + &New Project File... 새 프로젝트 파일(&N)... - + + &Log View 로그 보기(&L) - + + Log View 로그 보기 - + + C&lose Project File 프로젝트 파일 닫기(&L) - + + &Edit Project File... 프로젝트 파일 편집(&E)... - + + &Statistics 통계 보기(&S) - - - + + + + + Show warnings 경고 표시 - - + + + + Show performance warnings 성능 경고 표시 - + + Show &hidden 숨기기 보기(&H) - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - - + + + EULA... + + + + + Information 정보 - + + Show information messages 정보 표시 - + + Show portability warnings 이식성 경고 표시 - + + &Filter 필터 도구(&F) - + + Filter results 필터링 결과 - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - - + + Quick Filter: 빠른 필터: - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -871,12 +1021,12 @@ This is probably because the settings were changed between the Cppcheck versions Cppcheck 버전간 설정 방법 차이때문인 것으로 보입니다. 편집기 설정을 검사(및 수정)해주세요, 그렇지 않으면 편집기가 제대로 시작하지 않습니다. - + You must close the project file before selecting new files or directories! 새로운 파일이나 디렉토리를 선택하기 전에 프로젝트 파일을 닫으세요! - + Found project file: %1 Do you want to load this project file instead? @@ -885,215 +1035,215 @@ 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: 프로젝트: - + Duplicate define - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 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 @@ -1110,112 +1260,118 @@ Do you want to remove the file from the recently used projects -list? 최근 프로젝트 목록에서 파일을 제거하시겠습니까? - + Cppcheck GUI - Command line parameters - + + C++ standard - - - - + + + + Error - + File not found - + Bad XML - + Missing attribute - + Bad attribute value - + Failed to load the selected library '%1'. %2 - + Unsupported format - + The library '%1' contains unknown elements: %2 - + Duplicate platform type - + Platform type redefined - + + &Print... - + + Print the Current Report - + + Print Pre&view... - + + Open a Print Preview Dialog for the Current Results - + + Open library editor - + Unknown element - + Unknown issue - + Select configuration - + Cppcheck GUI. Syntax: @@ -1233,259 +1389,298 @@ Options: - + Build dir '%1' does not exist, create it? - - + + + + Analyze files - - + + + + Analyze directory - + + &Reanalyze modified files - - + + + + Stop analysis - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + No suitable files found to analyze! - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. 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? - + + A&nalyze - + + &C standard - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + Ctrl+Shift+N - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 C++14 - + Project files (*.cppcheck) - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1497,26 +1692,31 @@ Do you want to proceed? NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1563,22 +1763,27 @@ Do you want to proceed? ProjectFile + Project File 프로젝트 파일 + Defines: Defines: + Paths: 경로: + + Add... 추가... @@ -1586,6 +1791,9 @@ Do you want to proceed? + + + Edit 편집 @@ -1594,162 +1802,198 @@ Do you want to proceed? + + + + Remove 제거 + Up 위로 + Down 아래로 + Suppressions + Add + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + ... + Include Paths: + Paths and Defines + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> + Analyze all Visual Studio configurations + Root path: + Warning tags (separated by semicolon) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Selected VS Configurations + Types and Functions + Libraries + Parser + Cppcheck (built in) + 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 @@ -1757,189 +2001,230 @@ Do you want to proceed? + + + Browse... + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int + Platform + This is a workfolder that Cppcheck will use for various purposes. + Clang (experimental) + Check level + 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 + 2025 + 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 + Import Project (Visual studio / compile database/ Borland C++ Builder 6) + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + + 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 @@ -1952,77 +2237,77 @@ 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) - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + Source files - + All files - + Exclude file - + Select MISRA rule texts file - + MISRA rule texts file (%1) - + Visual Studio - + Compile database - + Borland C++ Builder 6 @@ -2030,32 +2315,32 @@ Do you want to proceed? QObject - + Unknown language specified! 알 수 없는 언어입니다! - + Language file %1 not found! 언어 파일(%1)이 없습니다! - + Failed to load translation for language %1 from file %2 파일(%2)로부터 언어(%1) 불러오기 실패 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2180,12 +2465,12 @@ Do you want to proceed? - + Set to Default Light - + Set to Default Dark @@ -2195,67 +2480,67 @@ Do you want to proceed? - + File 파일 - + Line - + Severity 분류 - + Classification - + Level - + Inconclusive - + Summary 요약 - + Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2263,22 +2548,22 @@ Do you want to proceed? QPlatformTheme - + OK - + Cancel - + Close 닫기 - + Save @@ -2302,63 +2587,62 @@ Do you want to proceed? 요약 - + Undefined file 미정의된 파일 - + style 스타일 - + error 에러 - + warning 경고 - + performance 성능 - + portability 이식성 - + information 정보 - + debug 디버그 - + internal - Hide - 숨기기 + 숨기기 - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2367,7 +2651,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2376,12 +2660,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. @@ -2390,67 +2674,72 @@ Please check the application path and parameters are correct. 경로와 인자가 정확한지 확인하세요. - + Select Directory 디렉토리 선택 - + Hide all with id - + Open containing folder - - Recheck + + note - - note + + Recheck %1 file(s) - + + Hide %1 result(s) + + + + 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 @@ -2459,33 +2748,34 @@ Please check the application path and parameters are correct. ResultsView + Results 결과 - - + + Failed to save the report. 결과 저장 실패. - + %p% (%1 of %2 files checked) %p% (%2 중 %1 파일 검사됨) - - + + Cppcheck Cppcheck - + No errors found. 에러가 발견되지 않았습니다. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. 에러가 발견되었지만, 감추도록 설정되어 있습니다. @@ -2533,12 +2823,12 @@ To toggle what kind of errors are shown, open view menu. - + Print Report - + No errors found, nothing to print. @@ -2554,16 +2844,19 @@ To toggle what kind of errors are shown, open view menu. + Critical errors + Analysis Log + Warning Details @@ -2587,26 +2880,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad + filename + Check 검사 + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": @@ -2615,194 +2913,239 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences 설정 + General 일반 + Number of threads: 쓰레드 수: - Ideal count: - 최적 값: + 최적 값: - + + Force checking all #ifdef configurations 모든 #ifdef 설정을 강제로 검사 - + + Show full path of files 파일의 전체 경로 표시 - + + Show "No errors found" message when no errors found 에러가 발견되지 않는 경우 "에러가 없습니다." 메시지 표시 - + + Enable inline suppressions Inline suppression 사용 - + + Check for updates - + + Add... 추가... - + + Remove 제거 - + + Applications 응용 프로그램 - - + + + + Edit... 편집... - + + Set as default 기본으로 지정 - + + Reports 보고서 - + + Save all errors when creating report 보고서 생성 시 모든 에러 저장 - + + Save full path to files in reports 보고서에 파일의 전체 경로 저장 - + + Language 언어 - + + Display error Id in column "Id" - + + Check for inconclusive errors also - + + Show internal warnings in log - + + Show statistics on check completion - + + + Max count: + + + + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Code Editor - + + Code Editor Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + System Style @@ -2810,47 +3153,46 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - N/A - N/A + N/A - + The executable file "%1" is not available - + Add a new application 새 응용 프로그램 추가 - + Modify an application 응용 프로그램 편집 - + [Default] [기본] - + [Default] - + Select python binary - + Select clang path - + Select MISRA File @@ -2860,261 +3202,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics 통계 - + + Project 프로젝트 + Project: 프로젝트: + Paths: 경로: + Include paths: Include 경로: + Defines: Defines: - + + Previous Scan 직전 검사 + Path Selected: 선택된 경로: + Number of Files Scanned: 검사된 파일 수: + Scan Duration: 검사 시간: + Errors: 에러: + Warnings: 경고: + Stylistic warnings: 스타일 경고: + Portability warnings: 이식성 경고: + Performance issues: 성능 경고: + Information messages: 정보 메시지: + Active checkers: + Checkers + Copy to Clipboard 클립보드에 복사 - + 1 day 1일 - + %1 days %1일 - + 1 hour 1시간 - + %1 hours %1시간 - + 1 minute 1분 - + %1 minutes %1분 - + 1 second 1초 - + %1 seconds %1초 - + 0.%1 seconds 0.%1초 - + and - + Project Settings 프로젝트 설정 - + Paths 경로 - + Include paths Include 경로 - + Defines Defines - + Path selected 선택된 경로 - + Number of files scanned 검사된 파일 수 - + Scan duration 검사 시간 - - + + Errors 에러 - - + + Warnings 경고 - - + + Style warnings 스타일 경고 - - + + Portability warnings 이식성 경고 - - + + Performance warnings 성능 경고 - - + + Information messages 정보 메시지 + Pdf Export - + Export PDF + History + File: - + File: - + No cppcheck build dir + Undefines: - + Undefines @@ -3122,7 +3488,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked %2 중 %1 파일 검사됨 @@ -3130,7 +3496,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3143,7 +3509,7 @@ The user interface language has been reset to English. Open the Preferences-dial 언어가 영어로 초기화 됐습니다. 설정창을 열어서 설정 가능한 언어를 선택하세요. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_nl.ts b/gui/cppcheck_nl.ts index 8cfa473d709..b4a4ffb553b 100644 --- a/gui/cppcheck_nl.ts +++ b/gui/cppcheck_nl.ts @@ -5,27 +5,32 @@ About + About Cppcheck Over Cppcheck + Version %1 Versie %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Een tool voor statische C/C++ code analyse. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-2021 het cppcheck team. + This program is licensed under the terms of the GNU General Public License version 3 Dit programma is beschikbaar onder te termen @@ -33,11 +38,13 @@ van de GNU General Public License versie 3 + Visit Cppcheck homepage at %1 Bezoek de Cppcheck homepage op %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ van de GNU General Public License versie 3 ApplicationDialog + Add an application Voeg een nieuwe applicatie toe + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -77,21 +86,25 @@ Parameters: -l(lijn) (bestand) + &Name: &Naam: + &Executable: &Uitvoerbaar: + &Parameters: + Browse Bladeren @@ -120,41 +133,49 @@ Parameters: -l(lijn) (bestand) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -205,16 +226,19 @@ Parameters: -l(lijn) (bestand) HelpDialog + Cppcheck GUI help + Contents + Index @@ -233,16 +257,19 @@ Parameters: -l(lijn) (bestand) LibraryAddFunctionDialog + Add function + Function name(s) + Number of arguments @@ -251,86 +278,103 @@ Parameters: -l(lijn) (bestand) LibraryDialog + Library Editor + Open + Save Opslaan + Save as + Functions + Sort + Add + Filter: + Comments + noreturn + False + True + Unknown + return value must be used + ignore function in leaks checking + Arguments + Edit Bewerk @@ -379,11 +423,13 @@ Parameters: -l(lijn) (bestand) LibraryEditArgDialog + Edit argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -394,11 +440,13 @@ Parameters: -l(lijn) (bestand) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -409,78 +457,99 @@ Parameters: -l(lijn) (bestand) + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -489,607 +558,733 @@ Parameters: -l(lijn) (bestand) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze - + + Standard Standaard + &File &Bestand + &View &Weergave + &Toolbars &Werkbalken - + + C++ standard C++standaard - + + &C standard C standard C standaard - + + &Edit Be&werken - + + &License... &Licentie... - + + A&uthors... A&uteurs... - + + &About... &Over... - + + &Files... &Bestanden... - - + + + + Analyze files Check files Controleer bestanden - + + Ctrl+F Ctrl+F - + + &Directory... &Mappen... - - + + + + Analyze directory Check directory Controleer Map - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &Stop - - + + + + Stop analysis Stop checking Stop controle - + + Esc Esc - + + &Save results to file... &Resultaten opslaan... - + + Ctrl+S Ctrl+S - + + &Quit &Afsluiten - + + &Clear results &Resultaten wissen - + + &Preferences &Voorkeuren - - - + + + + + Show errors Toon fouten - - - + + + + + Show warnings Toon waarschuwingen - - + + + + Show performance warnings Toon presentatie waarschuwingen - + + Show &hidden Toon &verborgen - - + + Information Informatie - + + Show information messages Toon informatie bericht - + + Show portability warnings Toon portabiliteit waarschuwingen - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + &Filter &Filter - + + Filter results Filter resultaten - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode - + + Unix 32-bit - + + Unix 64-bit - + + Windows 64-bit - + + &Print... - + + Print the Current Report - + + Print Pre&view... - + + Open a Print Preview Dialog for the Current Results - + + Open library editor - + + &Check all &Controleer alles + Checking for updates + Hide Verberg - + + + Report - + + Filter - + + &Reanalyze modified files &Recheck modified files - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + &Uncheck all Selecteer &niets - + + Collapse &all Alles Inkl&appen - + + &Expand all Alles &Uitklappen - + + &Standard &Standaard - + + Standard items Standaard items - + + Toolbar Werkbalk - + + &Categories &Categorieën - + + Error categories Foute Categorieën - + + &Open XML... - + + Open P&roject File... Open P&oject bestand... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + &New Project File... &Nieuw Project Bestand... - + + Ctrl+Shift+N - + + &Log View &Log weergave - + + Log View Log weergave - + + C&lose Project File &Sluit Project Bestand - + + &Edit Project File... &Bewerk Project Bestand... - + + &Statistics &Statistieken - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 - + + C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents &Inhoud - + + Categories Categorieën - - + + + + Show style warnings Toon stijl waarschuwingen - + + Open the help contents Open de help inhoud - + + F1 + &Help &Help - - + + Quick Filter: Snel Filter: - + Select configuration - + Found project file: %1 Do you want to load this project file instead? @@ -1097,91 +1292,91 @@ Do you want to load this project file instead? Wilt u dit project laden in plaats van? - + File not found - + Bad XML - + Missing attribute - + Bad attribute value - + Duplicate define - + Failed to load the selected library '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + License Licentie - + Authors Auteurs - + Save the report file Rapport opslaan - - + + XML files (*.xml) XML bestanden (*.xml) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1190,131 +1385,131 @@ This is probably because the settings were changed between the Cppcheck versions Dit is waarschijnlijk omdat de instellingen zijn gewijzigd tussen de versies van cppcheck. Controleer (en maak) de bewerker instellingen, anders zal de bewerker niet correct starten. - + You must close the project file before selecting new files or directories! Je moet project bestanden sluiten voordat je nieuwe bestanden of mappen selekteerd! - + The library '%1' contains unknown elements: %2 - + Unsupported format - + Duplicate platform type - + Platform type redefined - + Unknown element - + Unknown issue - - - - + + + + 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: - + No suitable files found to analyze! - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. 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 +1517,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,72 +1607,72 @@ 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 - + Cppcheck GUI. Syntax: @@ -1507,7 +1702,7 @@ Options: - + Cppcheck GUI - Command line parameters Cppcheck GUI - Command lijn parameters @@ -1516,26 +1711,31 @@ Options: NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1582,84 +1782,101 @@ Options: ProjectFile + Project File Project Bestand + Paths and Defines + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + 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> + ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> @@ -1667,27 +1884,35 @@ Options: + + + Browse... + Analyze all Visual Studio configurations + Selected VS Configurations + Paths: Paden: + + Add... Toevoegen... @@ -1695,6 +1920,9 @@ Options: + + + Edit Bewerk @@ -1703,264 +1931,321 @@ Options: + + + + Remove Verwijder + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: + Types and Functions + + Analysis + This is a workfolder that Cppcheck will use for various purposes. + Parser + Cppcheck (built in) + Check level + 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 + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools + Up Omhoog + Down Omlaag + Platform + Clang (experimental) + 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) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Libraries + 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 + Defines: Omschrijft: @@ -1973,77 +2258,77 @@ 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 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2051,34 +2336,34 @@ Options: QObject - + Unknown language specified! Onbekende taal gekozen! - + Language file %1 not found! Language file %1.qm not found! Kon het taalbestand niet vinden: %1! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Kon de vertaling voor taal %1 in bestand %2 niet laden - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2209,77 +2494,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File Bestand - + Line Regel - + Severity Ernst - + Classification - + Level - + Inconclusive - + Summary Overzicht - + Id Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2287,22 +2572,22 @@ Options: QPlatformTheme - + OK - + Cancel Annuleer - + Close Sluit - + Save Opslaan @@ -2326,93 +2611,97 @@ Options: Overzicht - + Undefined file Niet gedefinieerd bestand - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + debug - + note - - Recheck - - - - Hide - Verberg + Verberg - + Hide all with id Verberg alles met id - + Suppress selected id(s) - + Open containing folder - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag - + No tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2422,7 +2711,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2430,12 +2719,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. @@ -2444,7 +2733,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 @@ -2453,32 +2742,32 @@ Gelieve te controleren of de het pad en de parameters correct zijn.Id - + style Stijlfouten - + error Fouten - + warning Waarschuwing - + performance Presentatie - + portability Portabiliteit - + information Informatie @@ -2486,33 +2775,33 @@ Gelieve te controleren of de het pad en de parameters correct zijn. ResultsView - + Print Report - + No errors found, nothing to print. - + %p% (%1 of %2 files checked) %p% (%1 van %2 bestanden gecontroleerd) - - + + Cppcheck Cppcheck - + No errors found. Geen fouten gevonden. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Fouten werden gevonden, maar volgens de configuratie zijn deze verborgen. @@ -2585,28 +2874,32 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden. - - + + Failed to save the report. Kon het rapport niet opslaan. + Results Resultaten + Critical errors + Analysis Log + Warning Details @@ -2615,26 +2908,31 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden.ScratchPad + Scratchpad Scratchpad + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename bestandsnaam + Check Controleer @@ -2643,195 +2941,240 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden.Settings + Preferences Instellingen + General Algemeen - + + Add... Toevoegen... + Number of threads: Aantal threads: - Ideal count: - Ideale telling: + Ideale telling: - + + Force checking all #ifdef configurations Check all #ifdef configurations Controleer alle #ifdef combinaties - + + Show full path of files Toon het volledige pad van bestanden - + + Show "No errors found" message when no errors found Toon "Geen fouten gevonden" indien geen fouten gevonden werden - + + Display error Id in column "Id" Toon fout ld in kolom "Id" - + + Enable inline suppressions Schakel inline suppressies in - + + Check for inconclusive errors also - + + Show statistics on check completion - + + Check for updates - + + Show internal warnings in log - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor - + + Code Editor Style - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Remove Verwijder - + + + Max count: + + + + + Applications Applicaties - - + + + + Edit... Bewerk... - + + Set as default Instellen als standaard - + + Reports Rapporten - + + Save all errors when creating report Alle fouten opslaan - + + Save full path to files in reports Volledig pad opslaan - + + Language Taal @@ -2839,47 +3182,42 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden. SettingsDialog - - N/A - - - - + The executable file "%1" is not available - + Add a new application Nieuwe applicatie toevoegen - + Modify an application Applicatie wijzigen - + [Default] - + [Default] [Standaard] - + Select python binary - + Select MISRA File - + Select clang path @@ -2889,261 +3227,285 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden. - - + + + + Statistics Statistieken - + + Project Project + Project: Project: + Paths: Paden: + Include paths: Bevat paden: + Defines: Omschrijft: + Undefines: - + + Previous Scan Vorige scan + Path Selected: Pad Geselekteerd: + Number of Files Scanned: Aantal bestanden gescanned: + Scan Duration: Scan tijd: + Errors: Fouten: + Warnings: Waarschuwingen: + Stylistic warnings: Stilistisch waarschuwingen: + Portability warnings: Portabiliteit waarschuwingen: + Performance issues: Presentatie problemen: + Information messages: Informatie bericht: + Active checkers: + Checkers + History + File: + Copy to Clipboard Kopieer naar Clipbord + Pdf Export - + 1 day 1 dag - + %1 days %1 dagen - + 1 hour 1 uur - + %1 hours %1 uren - + 1 minute 1 minuut - + %1 minutes %1 minuten - + 1 second 1 seconde - + %1 seconds %1 secondes - + 0.%1 seconds 0.%1 secondes - + and en - + Export PDF - + Project Settings Project instellingen - + Paths Paden - + Include paths Bevat paden - + Defines Omschrijft - + Undefines - + Path selected Pad Geselekteerd - + Number of files scanned Aantal bestanden gescanned - + Scan duration Scan tijd - - + + Errors Fouten - + File: - + No cppcheck build dir - - + + Warnings Waarschuwingen - - + + Style warnings Stijl waarschuwingen - - + + Portability warnings Portabiliteit waarschuwingen - - + + Performance warnings Presentatie waarschuwingen - - + + Information messages Informatie bericht @@ -3151,7 +3513,7 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden. ThreadResult - + %1 of %2 files checked %1 van %2 bestanden gecontroleerd @@ -3159,7 +3521,7 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden. TranslationHandler - + Failed to change the user interface language: %1 @@ -3172,7 +3534,7 @@ The user interface language has been reset to English. Open the Preferences-dial De gebruikerstaal is gereset naar Engels. Open het dialoogvenster om een van de beschikbare talen te selecteren. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index e8e3a2a9615..80410343a3a 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -5,27 +5,32 @@ About + About Cppcheck О Cppcheck + Version %1 Версия %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - программа для статического анализа кода на языках С/С++. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-2021 Cppcheck team. + This program is licensed under the terms of the GNU General Public License version 3 Эта программа распространяется на @@ -33,11 +38,13 @@ of the GNU General Public License version 3 + Visit Cppcheck homepage at %1 Посетите домашнюю страницу: %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application Добавление приложения + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -77,21 +86,25 @@ Parameters: -l(line) (file) + &Name: &Название: + &Executable: &Программа: + &Parameters: &Параметры: + Browse Просмотреть @@ -120,41 +133,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -205,16 +226,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -233,16 +257,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function Добавить функцию + Function name(s) Имя(имена) функции + Number of arguments Количество аргументов @@ -251,86 +278,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor Редактор библиотек + Open Открыть + Save Сохранить + Save as Сохранить как + Functions Функции + Sort Сортировать + Add Добавить + Filter: Фильтр: + Comments Комментарии + noreturn + False + True + Unknown + return value must be used должно быть использовано возвращаемое значение + ignore function in leaks checking пропускать функцию при проверке на утечки + Arguments Аргументы + Edit Изменить @@ -379,11 +423,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument Редактировать аргумент + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -394,11 +440,13 @@ Parameters: -l(line) (file) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -409,78 +457,99 @@ Parameters: -l(line) (file) + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -489,607 +558,733 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze Анализ - + + Standard Стандартные + &File &Файл + &View &Вид + &Toolbars &Панель инструментов - + + C++ standard Стандарт C++ - + + &C standard C standard &Стандарт C - + + &Edit &Правка - + + &License... &Лицензия... - + + A&uthors... &Авторы... - + + &About... &О программе... - + + &Files... &Файлы... - - + + + + Analyze files Check files Проверить файлы - + + Ctrl+F Ctrl+F - + + &Directory... &Каталог... - - + + + + Analyze directory Check directory Проверка каталога - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop Остановить - - + + + + Stop analysis Stop checking Остановить проверку - + + Esc Esc - + + &Save results to file... Сохранить отчёт в файл... - + + Ctrl+S Ctrl+S - + + &Quit Выход - + + &Clear results Очистить отчёт - + + &Preferences Параметры - - - + + + + + Show errors Показать ошибки - - - + + + + + Show warnings Показать предупреждения - - + + + + Show performance warnings Показать предупреждения производительности - + + Show &hidden Показать скрытые - - + + Information Информационные сообщения - + + Show information messages Показать информационные сообщения - + + Show portability warnings Показать предупреждения переносимости - + + Show Cppcheck results Просмотр результатов Cppcheck - + + Clang Clang - + + Show Clang results Просмотр результатов Clang - + + &Filter Фильтр - + + Filter results Результаты фильтрации - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... Печать... - + + Print the Current Report Напечатать текущий отчет - + + Print Pre&view... Предварительный просмотр... - + + Open a Print Preview Dialog for the Current Results Открыть диалог печати для текущих результатов - + + Open library editor Открыть редактор библиотек - + + &Check all Отметить все + Checking for updates + Hide Скрыть - + + + Report - + + Filter Фильтр - + + &Reanalyze modified files &Recheck modified files Заново проверить измененные файлы - + + Reanal&yze all files Заново проверить все файлы - + + Ctrl+Q - + + Style war&nings Стилистические предупреждения - + + E&rrors Ошибки - + + &Uncheck all Сбросить все - + + Collapse &all Свернуть все - + + &Expand all Развернуть все - + + &Standard Стандартные - + + Standard items Стандартные элементы - + + Toolbar Панель инструментов - + + &Categories Категории - + + Error categories Категории ошибок - + + &Open XML... &Открыть XML... - + + Open P&roject File... Открыть файл &проекта... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... Показать Блокнот - + + &New Project File... &Новый файл проекта... - + + Ctrl+Shift+N - + + &Log View Посмотреть &лог - + + Log View Посмотреть лог - + + C&lose Project File &Закрыть файл проекта - + + &Edit Project File... &Изменить файл проекта... - + + &Statistics &Статистика - + + &Warnings Предупреждения - + + Per&formance warnings Предупреждения производительности - + + &Information Информационные предупреждения - + + &Portability Предупреждения переносимости - + + P&latforms Платформы - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... Редактор библиотеки - + + &Auto-detect language Автоматическое определение языка - + + &Enforce C++ Принудительно C++ - + + E&nforce C Принудительно C - + + C++14 C++14 - + + Reanalyze and check library Повторный анализ библиотеки - + + Check configuration (defines, includes) Проверить конфигурацию (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents Помощь - + + Categories Категории - - + + + + Show style warnings Показать стилистические предупреждения - + + Open the help contents Открыть помощь - + + F1 F1 + &Help Помощь - - + + Quick Filter: Быстрый фильтр: - + Select configuration Выбор конфигурации - + Found project file: %1 Do you want to load this project file instead? @@ -1098,97 +1293,97 @@ Do you want to load this project file instead? Вы хотите загрузить этот проект? - + File not found Файл не найден - + Bad XML Некорректный XML - + Missing attribute Пропущен атрибут - + Bad attribute value Некорректное значение атрибута - + Unsupported format Неподдерживаемый формат - + Duplicate define - + Failed to load the selected library '%1'. %2 Не удалось загрузить выбранную библиотеку '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + License Лицензия - + Authors Авторы - + Save the report file Сохранить файл с отчетом - - + + XML files (*.xml) XML-файлы (*.xml) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1197,42 +1392,42 @@ This is probably because the settings were changed between the Cppcheck versions Возможно, это связано с изменениями в версии программы. Пожалуйста, проверьте (и исправьте) настройки приложения. - + You must close the project file before selecting new files or directories! Вы должны закрыть проект перед выбором новых файлов или каталогов! - + The library '%1' contains unknown elements: %2 Библиотека '%1' содержит неизвестные элементы: %2 - + Duplicate platform type Дубликат типа платформы - + Platform type redefined Переобъявление типа платформы - + Unknown element Неизвестный элемент - + Unknown issue Неизвестная проблема - - - - + + + + Error Ошибка @@ -1241,80 +1436,80 @@ 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: Проект: - + No suitable files found to analyze! Не найдено подходящих файлов для анализа - + C/C++ Source Исходный код C/C++ - + Compile database - + Visual Studio Visual Studio - + Borland C++ Builder 6 Borland C++ Builder 6 - + Select files to analyze Выбор файлов для анализа - + Select directory to analyze Выбор каталога для анализа - + Select the configuration that will be analyzed Выбор используемой конфигурации - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? @@ -1323,7 +1518,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 +1529,7 @@ Do you want to proceed? Вы хотите продолжить? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1343,109 +1538,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 +1649,22 @@ Analysis is stopped. Невозможно импортировать '%1', анализ остановлен - + Project files (*.cppcheck) Файлы проекта (*.cppcheck) - + Select Project Filename Выберите имя файла для проекта - + No project file loaded Файл с проектом не загружен - + The project file %1 @@ -1485,17 +1680,17 @@ Do you want to remove the file from the recently used projects -list? Хотите удалить его из списка проектов? - + Install - + New version available: %1. %2 - + Cppcheck GUI. Syntax: @@ -1538,7 +1733,7 @@ Options: Графический интерфейс пользователя не будет запущен, если указана эта опция. - + Cppcheck GUI - Command line parameters Cppcheck GUI - параметры Командной строки @@ -1547,26 +1742,31 @@ Options: NewSuppressionDialog + New suppression Новое подавление + Error ID ID + File name Имя файла + Line number Номер строки + Symbol name Имя символа @@ -1613,73 +1813,87 @@ Options: ProjectFile + Project File Файл проекта + Paths and Defines Каталоги и определения + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) Импорт проекта (Visual studio / compile database/ Borland C++ Builder 6) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' Defines должны быть разделены точкой с запятой ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. Положите свои .cfg-файлы в один каталог с файлом проекта. Вы увидите их сверху. + Clang (experimental) + 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... @@ -1689,21 +1903,25 @@ Options: + 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> + ... ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> <html><head/><body><p>Выберите:</p><p> * Анализ всех конфигураций Debug и Release</p><p> * Анализ только первой подходящей конфигурации Debug</p><p><br/></p></body></html> @@ -1711,27 +1929,35 @@ Options: + + + Browse... Обзор... + Analyze all Visual Studio configurations Анализировать все конфигурации Visual Studio + Selected VS Configurations + Paths: Пути: + + Add... Добавить... @@ -1739,6 +1965,9 @@ Options: + + + Edit Изменить @@ -1747,255 +1976,311 @@ Options: + + + + Remove Удалить + Undefines: Удаленные макроопределения: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 Удаленные макроопределения должны быть разделены точкой с запятой, например: UNDEF1;UNDEF2;UNDEF3 + Include Paths: Пути заголовочных файлов: + Types and Functions + + Analysis Анализ + This is a workfolder that Cppcheck will use for various purposes. + Parser + Cppcheck (built in) + Check level + 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-подавление ошибок + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools Внешние инструменты + Up Вверх + Down Вниз + Platform Платформа + Warning options Опции предупреждений + Root path: Корневой каталог: + Warning tags (separated by semicolon) Теги предупреждений (через ';') + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) Каталог сборки Cppcheck + Libraries Библиотеки + 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 + Defines: Объявленные макроопределения: @@ -2008,77 +2293,77 @@ Options: Файл проекта: %1 - + Select Cppcheck build dir Выбрать директорию сборки Cppcheck - + Select include directory Выберите директорию для поиска заголовочных файлов - + Select a directory to check Выберите директорию для проверки - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2086,34 +2371,34 @@ Options: QObject - + Unknown language specified! Неизвестный язык! - + Language file %1 not found! Language file %1.qm not found! Языковой файл %1 не найден! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Ошибка загрузки переводов для языка %1 из файла %2 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) (Недоступно) @@ -2244,77 +2529,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File Файл - + Line Строка - + Severity Важность - + Classification - + Level - + Inconclusive Спорное - + Summary Кратко - + Id Id - + Guideline - + Rule - + Since date Начиная с даты - + Tags - + CWE @@ -2322,22 +2607,22 @@ Options: QPlatformTheme - + OK OK - + Cancel Отмена - + Close Закрыть - + Save Сохранить @@ -2361,93 +2646,101 @@ Options: Кратко - + Undefined file Неопределенный файл - + Copy Копировать - + Could not find file: Невозможно найти файл: - + Please select the folder '%1' Выберите каталог '%1' - + Select Directory '%1' Выбрать каталог '%1' - + Please select the directory where file is located. Укажите каталог с расположением файла. - + debug отлаживать - + note заметка - Recheck - Проверить заново + Проверить заново - Hide - Скрыть + Скрыть - + Hide all with id Скрыть все с id - + Suppress selected id(s) Подавить выбранные id - + Open containing folder Открыть содержащую папку - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag Тег - + No tag Тег отсутствует - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2456,7 +2749,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2464,12 +2757,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. @@ -2477,7 +2770,7 @@ Please check the application path and parameters are correct. Пожалуйста, проверьте путь приложения, и верны ли параметры. - + Select Directory Выберите директорию @@ -2494,32 +2787,32 @@ Please check the application path and parameters are correct. Начиная с даты - + style стиль - + error ошибка - + warning предупреждение - + performance производительность - + portability переносимость - + information информация @@ -2527,33 +2820,33 @@ Please check the application path and parameters are correct. ResultsView - + Print Report Распечатать отчет - + No errors found, nothing to print. Ошибок не найдено, нечего распечатывать. - + %p% (%1 of %2 files checked) %p% (%1 из %2 файлов проверено) - - + + Cppcheck Cppcheck - + No errors found. Ошибок не найдено. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Были обнаружены ошибки, но они настроены быть скрыты. @@ -2626,28 +2919,32 @@ To toggle what kind of errors are shown, open view menu. - - + + Failed to save the report. Не удалось сохранить отчет. + Results Результаты + Critical errors + Analysis Log Лог анализа + Warning Details Детали предупреждения @@ -2656,26 +2953,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad Блокнот + Copy or write some C/C++ code here: Исходный код C/C++: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": При необходимости введите имя файла и нажмите "Проверить": + filename имя файла + Check Проверить @@ -2684,195 +2986,240 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences Параметры + General Общие - + + Add... Добавить... + Number of threads: Количество потоков исполнения: - Ideal count: - Рекомендуемое значение: + Рекомендуемое значение: - + + Force checking all #ifdef configurations Check all #ifdef configurations Проверять все варианты #ifdef конфигураций - + + Show full path of files Показывать полные пути к файлам - + + Show "No errors found" message when no errors found Показывать сообщение, если ошибок не найдено - + + Display error Id in column "Id" Отображать номер ошибки в колонке "id" - + + Enable inline suppressions Включить inline-подавление ошибок - + + Check for inconclusive errors also Показывать также спорные ошибки - + + Show statistics on check completion Показывать статистику после завершения проверки - + + Check for updates - + + Show internal warnings in log Показывать внутренние предупреждения в логе - + + Addons Дополнения - + + Python binary (leave this empty to use python in the PATH) Python (оставьте пустым для использования python из PATH) - - - + + + + + + ... ... - + + MISRA addon Дополнение MISRA - + + MISRA rule texts file Файл с текстами правил 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> - + + Clang Clang - + + Clang path (leave empty to use system PATH) Clang (оставьте пустым для использования clang из PATH) - + + Visual Studio headers Заголовочные файлы Visual Studio - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> <html><head/><body><p>Путь до заголовочных файлов Visual Studio headers, разделенных символом ';'.</p><p>Вы можете открыть командную строку Visual Studio, ввести &quot;SET INCLUDE&quot; и скопировать пути.</p></body></html> - + + Code Editor Редактор - + + Code Editor Style Оформление - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Remove Удалить - + + + Max count: + + + + + Applications Приложения - - + + + + Edit... Изменить... - + + Set as default Установить по умолчанию - + + Reports Отчёты - + + Save all errors when creating report Сохранять все ошибки при создании отчёта - + + Save full path to files in reports Сохранять полные пути к файлам в отчётах - + + Language Язык @@ -2880,47 +3227,46 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - N/A - Нет данных + Нет данных - + The executable file "%1" is not available - + Add a new application Добавить новое приложение - + Modify an application Изменить приложение - + [Default] [По умолчанию] - + [Default] [По умолчанию] - + Select python binary Выберите исполняемый файл python - + Select MISRA File Выберите файл текстов правил MISRA - + Select clang path Выберите исполняемый файл clang @@ -2930,261 +3276,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics Статистика - + + Project Проект + Project: Проект: + Paths: Пути: + Include paths: Включенные пути: + Defines: Объявленные макроопределения: + Undefines: Удаленные макроопределения: - + + Previous Scan Последнее сканирование + Path Selected: Выбранный путь: + Number of Files Scanned: Количество просканированных файлов: + Scan Duration: Продолжительность сканирования: + Errors: Ошибки: + Warnings: Предупреждения: + Stylistic warnings: Стилистические предупреждения: + Portability warnings: Предупреждения переносимости: + Performance issues: Проблемы с производительностью: + Information messages: Информационные сообщения: + Active checkers: + Checkers + History История + File: Файл: + Copy to Clipboard Скопировать в буфер обмена + Pdf Export Экспорт PDF - + 1 day 1 день - + %1 days %1 дней - + 1 hour 1 час - + %1 hours %1 часов - + 1 minute 1 минута - + %1 minutes %1 минут - + 1 second 1 секунда - + %1 seconds %1 секунд - + 0.%1 seconds 0.1%1 секунд - + and и - + Export PDF Экспорт PDF - + Project Settings Настройки проекта - + Paths Пути - + Include paths Включенные пути - + Defines Объявленные макроопределения: - + Undefines Удаленные макроопределения: - + Path selected Выбранные пути - + Number of files scanned Количество просканированных файлов - + Scan duration Продолжительность сканирования - - + + Errors Ошибки - + File: Файл: - + No cppcheck build dir Не задана директория сборки - - + + Warnings Предупреждения - - + + Style warnings Стилистические предупреждения - - + + Portability warnings Предупреждения переносимости - - + + Performance warnings Предупреждения производительности - - + + Information messages Информационные сообщения @@ -3192,7 +3562,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked %1 из %2 файлов проверены @@ -3200,7 +3570,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3213,7 +3583,7 @@ The user interface language has been reset to English. Open the Preferences-dial Язык пользовательского интерфейса был сброшен на английский. Откройте Настройки-диалог для выбора любого из доступных языков. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_sr.ts b/gui/cppcheck_sr.ts index 956d9fa9840..de9d46061a4 100644 --- a/gui/cppcheck_sr.ts +++ b/gui/cppcheck_sr.ts @@ -5,27 +5,32 @@ About + About Cppcheck About Cppcheck + Version %1 Version %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - A tool for static C/C++ code analysis. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. + This program is licensed under the terms of the GNU General Public License version 3 This program is licensed under the terms @@ -33,11 +38,13 @@ of the GNU General Public License version 3 + Visit Cppcheck homepage at %1 Visit Cppcheck homepage at %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application Add a new application + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -67,21 +76,25 @@ Parameters: -l(line) (file) + &Name: + &Executable: + &Parameters: + Browse Browse @@ -110,41 +123,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -193,16 +214,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -221,16 +245,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function + Function name(s) + Number of arguments @@ -239,86 +266,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor + Open + Save + Save as + Functions + Sort + Add + Filter: + Comments + noreturn + False + True + Unknown + return value must be used + ignore function in leaks checking + Arguments + Edit @@ -367,11 +411,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -382,11 +428,13 @@ Parameters: -l(line) (file) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -397,78 +445,99 @@ Parameters: -l(line) (file) + Not null + Not uninit + String + Format string + Min size of buffer + + Type + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values @@ -477,829 +546,955 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze - + + Standard Standard + &File &File + &View &View + &Toolbars - + + C++ standard - + + &C standard C standard - + + &Edit &Edit - + + &License... &License... - + + A&uthors... A&uthors... - + + &About... &About... - + + &Files... &Files... - - + + + + Analyze files Check files - + + Ctrl+F Ctrl+F - + + &Directory... &Directory... - - + + + + Analyze directory Check directory - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &Stop - - + + + + Stop analysis Stop checking - + + Esc Esc - + + &Save results to file... &Save results to file... - + + Ctrl+S Ctrl+S - + + &Quit &Quit - + + &Clear results &Clear results - + + &Preferences &Preferences - - - + + + + + Show errors - - - + + + + + Show warnings - - + + + + Show performance warnings - + + Show &hidden - - + + Information - + + Show information messages - + + Show portability warnings - + + Show Cppcheck results - + + Clang - + + Show Clang results - + + &Filter - + + Filter results - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... - + + Print the Current Report - + + Print Pre&view... - + + Open a Print Preview Dialog for the Current Results - + + Open library editor - + + &Check all &Check all + Checking for updates + Hide - + + + Report - + + Filter - + + &Reanalyze modified files &Recheck modified files - + + Reanal&yze all files - + + Ctrl+Q - + + Style war&nings - + + E&rrors - + + &Uncheck all &Uncheck all - + + Collapse &all Collapse &all - + + &Expand all &Expand all - + + &Standard - + + Standard items - + + Toolbar - + + &Categories - + + Error categories - + + &Open XML... - + + Open P&roject File... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + &New Project File... - + + Ctrl+Shift+N - + + &Log View - + + Log View - + + C&lose Project File - + + &Edit Project File... - + + &Statistics - + + &Warnings - + + Per&formance warnings - + + &Information - + + &Portability - + + P&latforms - + + C++&11 - + + C&99 - + + &Posix - + + C&11 - + + &C89 - + + &C++03 - + + &Library Editor... - + + &Auto-detect language - + + &Enforce C++ - + + E&nforce C - + + C++14 C++14 - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents - + + Categories - - + + + + Show style warnings - + + Open the help contents - + + F1 F1 + &Help &Help - - + + Quick Filter: - + Select configuration - + Found project file: %1 Do you want to load this project file instead? - + File not found - + Bad XML - + Missing attribute - + Bad attribute value - + Duplicate define - + Failed to load the selected library '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 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) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. - + You must close the project file before selecting new files or directories! - + The library '%1' contains unknown elements: %2 - + Unsupported format - + Duplicate platform type - + Platform type redefined - + Unknown element - + Unknown issue - - - - + + + + Error - + Open the report file - + Text files (*.txt) Text files (*.txt) - + CSV files (*.csv) - + Project files (*.cppcheck);;All files(*.*) - + Select Project File - - - - + + + + Project: - + No suitable files found to analyze! - + C/C++ Source - + Compile database - + Visual Studio - + Borland C++ Builder 6 - + Select files to analyze - + Select directory to analyze - + Select the configuration that will be analyzed - + Found project files from the directory. 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 +1502,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,72 +1587,72 @@ 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 - + Cppcheck GUI. Syntax: @@ -1487,7 +1682,7 @@ Options: - + Cppcheck GUI - Command line parameters @@ -1496,26 +1691,31 @@ Options: NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1562,48 +1762,57 @@ Options: ProjectFile + Project File + Paths and Defines + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + 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> + ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> @@ -1611,27 +1820,35 @@ Options: + + + Browse... + Analyze all Visual Studio configurations + Selected VS Configurations + Paths: + + Add... @@ -1639,6 +1856,9 @@ Options: + + + Edit @@ -1647,300 +1867,365 @@ Options: + + + + Remove + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: + Up + Down + Platform + + Analysis + This is a workfolder that Cppcheck will use for various purposes. + Clang (experimental) + Check level + 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 + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + Types and Functions + Libraries + Parser + Cppcheck (built in) + 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 + Defines: @@ -1953,77 +2238,77 @@ Options: - + Select Cppcheck build dir - + Select include directory - + Select a directory to check - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2031,32 +2316,32 @@ Options: QObject - + Unknown language specified! - + Language file %1 not found! Could not find the file: %1! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2187,77 +2472,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File File - + Line Line - + Severity Severity - + Classification - + Level - + Inconclusive - + Summary - + Id - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2265,22 +2550,22 @@ Options: QPlatformTheme - + OK - + Cancel - + Close - + Save @@ -2300,112 +2585,112 @@ Options: Line - + Undefined file Undefined file - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + debug - + note - - Recheck + + Hide all with id - - Hide + + Suppress selected id(s) - - Hide all with id + + Open containing folder - - Suppress selected id(s) + + internal - - Open containing folder + + Recheck %1 file(s) - - internal + + Hide %1 result(s) - + 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. @@ -2414,37 +2699,37 @@ Please check the application path and parameters are correct. Please check the application path and parameters are correct. - + Select Directory - + style Style - + error Error - + warning - + performance - + portability - + information @@ -2452,33 +2737,33 @@ Please check the application path and parameters are correct. ResultsView - + Print Report - + No errors found, nothing to print. - + %p% (%1 of %2 files checked) - - + + Cppcheck Cppcheck - + No errors found. No errors found. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Errors were found, but they are configured to be hidden. @@ -2551,28 +2836,32 @@ To toggle what kind of errors are shown, open view menu. - - + + Failed to save the report. Failed to save the report. + Results Results + Critical errors + Analysis Log + Warning Details @@ -2581,26 +2870,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename + Check @@ -2609,194 +2903,235 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences Preferences + General General - + + Add... + Number of threads: Number of threads: - - Ideal count: - - - - + + Force checking all #ifdef configurations Check all #ifdef configurations - + + Show full path of files Show full path of files - + + Show "No errors found" message when no errors found Show "No errors found" message when no errors found - + + Display error Id in column "Id" - + + Enable inline suppressions - + + Check for inconclusive errors also - + + Show statistics on check completion - + + Check for updates - + + Show internal warnings in log - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor - + + Code Editor Style - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Remove - + + + Max count: + + + + + Applications Applications - - + + + + Edit... - + + Set as default - + + Reports Reports - + + Save all errors when creating report Save all errors when creating report - + + Save full path to files in reports Save full path to files in reports - + + Language @@ -2804,47 +3139,42 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - - N/A - - - - + The executable file "%1" is not available - + Add a new application Add a new application - + Modify an application Modify an application - + [Default] - + [Default] - + Select python binary - + Select MISRA File - + Select clang path @@ -2854,261 +3184,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics - + + Project + Project: + Paths: + Include paths: + Defines: + Undefines: - + + Previous Scan + Path Selected: + Number of Files Scanned: + Scan Duration: + Errors: + Warnings: + Stylistic warnings: + Portability warnings: + Performance issues: + Information messages: + Active checkers: + Checkers + History + File: + Copy to Clipboard + Pdf Export - + 1 day - + %1 days - + 1 hour - + %1 hours - + 1 minute - + %1 minutes - + 1 second - + %1 seconds - + 0.%1 seconds - + and - + Export PDF - + Project Settings - + Paths - + Include paths - + Defines - + Undefines - + Path selected - + Number of files scanned - + Scan duration - - + + Errors - + File: - + No cppcheck build dir - - + + Warnings - - + + Style warnings - - + + Portability warnings - - + + Performance warnings - - + + Information messages @@ -3116,7 +3470,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked @@ -3124,7 +3478,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3133,7 +3487,7 @@ The user interface language has been reset to English. Open the Preferences-dial - + Cppcheck Cppcheck diff --git a/gui/cppcheck_sv.ts b/gui/cppcheck_sv.ts index cd8b55d016c..1b7c49fa0d0 100644 --- a/gui/cppcheck_sv.ts +++ b/gui/cppcheck_sv.ts @@ -5,27 +5,32 @@ About + About Cppcheck Om Cppcheck + Version %1 Version %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Ett verktyg för statisk analys av C/C++ kod. + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. Copyright © 2007-2021 Cppcheck team. + This program is licensed under the terms of the GNU General Public License version 3 This program is licensed under the terms @@ -33,11 +38,13 @@ of the GNU General Public License version 3 + Visit Cppcheck homepage at %1 Hemsida: %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -47,11 +54,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application Lägg till program + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -77,21 +86,25 @@ Parametrar: -l(line) (file) + &Name: Namn: + &Executable: Körbar fil: + &Parameters: Parametrar: + Browse Bläddra @@ -120,41 +133,49 @@ Parametrar: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -205,16 +226,19 @@ Parametrar: -l(line) (file) HelpDialog + Cppcheck GUI help + Contents + Index @@ -233,16 +257,19 @@ Parametrar: -l(line) (file) LibraryAddFunctionDialog + Add function Lägg till funktion + Function name(s) Funktion namn + Number of arguments Antal argument @@ -251,86 +278,103 @@ Parametrar: -l(line) (file) LibraryDialog + Library Editor Library Editor + Open Öppna + Save Spara + Save as Spara som + Functions Funktioner + Sort Sortera + Add Lägg till + Filter: Filter: + Comments Kommentar + noreturn noreturn + False False + True True + Unknown Vet ej + return value must be used retur värde måste användas + ignore function in leaks checking Ignorera funktionen när cppcheck letar efter läckor + Arguments Argument + Edit Redigera @@ -379,11 +423,13 @@ Parametrar: -l(line) (file) LibraryEditArgDialog + Edit argument Konfigurera argument + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -397,11 +443,13 @@ Exempel: + Not bool Ej bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -415,78 +463,99 @@ Exempel: + Not null Ej null + Not uninit Ej uninit + String Sträng + Format string Format sträng + Min size of buffer Minsta storlek för buffer + + Type Typ + + None Ingen + + argvalue argvalue + + mul mul + + strlen strlen + + Arg Arg + + Arg2 Arg2 + and och + Valid values Tillåtna värden @@ -495,608 +564,734 @@ Exempel: MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck - + + A&nalyze Analysera - + + Standard Standard + &File &Arkiv + &View &Visa + &Toolbars Verktygsfält - + + C++ standard C++ standard - + + &C standard C standard C standard - + + &Edit &Redigera - + + &License... &Licens... - + + A&uthors... &Utvecklat av... - + + &About... &Om... - + + &Files... &Filer... - - + + + + Analyze files Check files Analysera filer - + + Ctrl+F Ctrl+F - + + &Directory... &Katalog... - - + + + + Analyze directory Check directory Analysera mapp - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop &Stoppa - - + + + + Stop analysis Stop checking Stoppa analys - + + Esc Esc - + + &Save results to file... &Spara resultat till fil... - + + Ctrl+S Ctrl+S - + + &Quit &Avsluta - + + &Clear results &Töm resultat - + + &Preferences &Inställningar - - - + + + + + Show errors Visa fel - - - + + + + + Show warnings Visa varningar - - + + + + Show performance warnings Visa prestanda varningar - + + Show &hidden Visa dolda - - + + Information Information - + + Show information messages Visa informations meddelanden - + + Show portability warnings Visa portabilitets varningar - + + Show Cppcheck results Visa Cppcheck resultat - + + Clang Clang - + + Show Clang results Visa Clang resultat - + + &Filter &Filter - + + Filter results Filtrera resultat - + + Windows 32-bit ANSI Windows 32-bit ANSI - + + Windows 32-bit Unicode Windows 32-bit Unicode - + + Unix 32-bit Unix 32-bit - + + Unix 64-bit Unix 64-bit - + + Windows 64-bit Windows 64-bit - + + &Print... Skriv ut... - + + Print the Current Report Skriv ut aktuell rapport - + + Print Pre&view... Förhandsgranska utskrift... - + + Open a Print Preview Dialog for the Current Results Öppnar förhandsgranskning för nuvarande resultat - + + Open library editor Öppna library editor - + + &Check all &Kryssa alla + Checking for updates + Hide Dölj - + + + Report - + + Filter Filter - + + &Reanalyze modified files &Recheck modified files Analysera om ändrade filer - + + Reanal&yze all files Analysera om alla filer - + + Ctrl+Q - + + Style war&nings Style varningar - + + E&rrors Fel - + + &Uncheck all Kryssa &ur alla - + + Collapse &all Ingen bra översättning! &Fäll ihop alla - + + &Expand all &Expandera alla - + + &Standard &Standard - + + Standard items Standard poster - + + Toolbar Verktygsfält - + + &Categories &Kategorier - + + Error categories Fel kategorier - + + &Open XML... &Öppna XML... - + + Open P&roject File... Öppna Projektfil... - + + Ctrl+Shift+O - + + Sh&ow Scratchpad... Visa Scratchpad... - + + &New Project File... Ny projektfil... - + + Ctrl+Shift+N - + + &Log View - + + Log View Logg vy - + + C&lose Project File Stäng projektfil - + + &Edit Project File... Redigera projektfil... - + + &Statistics Statistik - + + &Warnings Varningar - + + Per&formance warnings Optimerings varningar - + + &Information Information - + + &Portability Portabilitet - + + P&latforms Plattformar - + + C++&11 C++11 - + + C&99 C99 - + + &Posix Posix - + + C&11 C11 - + + &C89 C89 - + + &C++03 C++03 - + + &Library Editor... Library Editor... - + + &Auto-detect language Detektera språk automatiskt - + + &Enforce C++ Tvinga C++ - + + E&nforce C Tvinga C - + + C++14 C++14 - + + Reanalyze and check library - + + Check configuration (defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + + &Contents &Innehåll - + + Categories Kategorier - - + + + + Show style warnings Visa stil varningar - + + Open the help contents Öppna hjälp - + + F1 F1 + &Help &Hjälp - - + + Quick Filter: Snabbfilter: - + Select configuration Välj konfiguration - + Found project file: %1 Do you want to load this project file instead? @@ -1105,97 +1300,97 @@ Do you want to load this project file instead? Vill du ladda denna projektfil istället? - + File not found Filen hittades ej - + Bad XML Ogiltig XML - + Missing attribute Attribut finns ej - + Bad attribute value Ogiltigt attribut värde - + Unsupported format Format stöds ej - + Duplicate define - + Failed to load the selected library '%1'. %2 Misslyckades att ladda valda library '%1'. %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + License Licens - + Authors Utvecklare - + Save the report file Spara rapport - - + + XML files (*.xml) XML filer (*.xml) - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1204,42 +1399,42 @@ This is probably because the settings were changed between the Cppcheck versions En trolig orsak är att inställningarna ändrats för olika Cppcheck versioner. Kontrollera programinställningarna. - + You must close the project file before selecting new files or directories! Du måste stänga projektfilen innan nya filer eller sökvägar kan väljas! - + The library '%1' contains unknown elements: %2 Library filen '%1' har element som ej hanteras: %2 - + Duplicate platform type Dubbel plattformstyp - + Platform type redefined Plattformstyp definieras igen - + Unknown element Element hanteras ej - + Unknown issue Något problem - - - - + + + + Error Fel @@ -1248,80 +1443,80 @@ 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: - + No suitable files found to analyze! Inga filer hittades att analysera! - + C/C++ Source - + Compile database - + Visual Studio Visual Studio - + Borland C++ Builder 6 - + Select files to analyze Välj filer att analysera - + Select directory to analyze Välj mapp att analysera - + Select the configuration that will be analyzed Välj konfiguration som kommer analyseras - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? @@ -1330,7 +1525,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 +1533,7 @@ Do you want to proceed? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1347,109 +1542,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 +1653,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,17 +1685,17 @@ 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 - + Cppcheck GUI. Syntax: @@ -1543,7 +1738,7 @@ Options: is used. - + Cppcheck GUI - Command line parameters Cppcheck GUI - Command line parameters @@ -1552,26 +1747,31 @@ Options: NewSuppressionDialog + New suppression + Error ID + File name + Line number + Symbol name @@ -1618,38 +1818,45 @@ Options: ProjectFile + Project File Projektfil + Paths and Defines Sökvägar och defines + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) Importera Projekt (Visual Studio / compile database) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' Defines separeras med semicolon ';' + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. Obs: Lägg dina egna .cfg filer i samma folder som projekt filen. De skall isåfall visas ovan. + ... ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> <html><head/><body><p>Du har ett val:</p><p> * Analysera alla Debug och Release konfigurationer</p><p> * Analysera bara den första matchande Debug konfigurationen</p><p><br/></p></body></html> @@ -1657,27 +1864,35 @@ Options: + + + Browse... + Analyze all Visual Studio configurations Analysera alla Visual Studio konfigurationer + Selected VS Configurations + Paths: Sökvägar: + + Add... Lägg till... @@ -1685,6 +1900,9 @@ Options: + + + Edit Redigera @@ -1693,310 +1911,377 @@ Options: + + + + Remove Ta bort + Undefines: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: Include sökvägar: + This is a workfolder that Cppcheck will use for various purposes. + Clang (experimental) + Check level + 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 + 2025 + 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 + Up Upp + Down Ned + Platform + + Analysis + Parser + Cppcheck (built in) + 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) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) Cppcheck build dir (whole program analys, incremental analys, statistik, etc) + Types and Functions + Libraries 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 + Defines: Defines: @@ -2009,77 +2294,77 @@ Options: Projektfil: %1 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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 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 @@ -2087,34 +2372,34 @@ Options: QObject - + Unknown language specified! Okänt språk valt! - + Language file %1 not found! Language file %1.qm not found! Språk filen %1 hittades ej! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Misslyckades med att ladda översättningen för %1 från filen %2 - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) @@ -2245,77 +2530,77 @@ Options: - + Set to Default Light - + Set to Default Dark - + File Fil - + Line Rad - + Severity Typ - + Classification - + Level - + Inconclusive Inconclusive - + Summary Sammanfattning - + Id Id - + Guideline - + Rule - + Since date Sedan datum - + Tags - + CWE @@ -2323,22 +2608,22 @@ Options: QPlatformTheme - + OK OK - + Cancel Avbryt - + Close Stäng - + Save Spara @@ -2362,93 +2647,101 @@ Options: Sammanfattning - + Undefined file Odefinierad fil - + Copy - + Could not find file: - + Please select the folder '%1' - + Select Directory '%1' - + Please select the directory where file is located. - + debug debug - + note note - Recheck - Analysera om + Analysera om - Hide - Dölj + 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 - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag Tag - + No tag Ingen tag - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2458,7 +2751,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2467,12 +2760,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. @@ -2481,7 +2774,7 @@ Please check the application path and parameters are correct. Kontrollera att sökvägen och parametrarna är korrekta. - + Select Directory Välj mapp @@ -2498,32 +2791,32 @@ Kontrollera att sökvägen och parametrarna är korrekta. Sedan datum - + style stil - + error fel - + warning varning - + performance prestanda - + portability portabilitet - + information information @@ -2531,33 +2824,33 @@ Kontrollera att sökvägen och parametrarna är korrekta. ResultsView - + Print Report Skriv ut rapport - + No errors found, nothing to print. Inga fel hittades, inget att skriva ut. - + %p% (%1 of %2 files checked) %p% (%1 av %2 filer analyserade) - - + + Cppcheck Cppcheck - + No errors found. Inga fel hittades. - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. Fel hittades, men de visas ej. @@ -2630,28 +2923,32 @@ För att ställa in vilka fel som skall visas använd visa menyn. - - + + Failed to save the report. Misslyckades med att spara rapporten. + Results Resultat + Critical errors + Analysis Log Analys Log + Warning Details Varningsdetaljer @@ -2660,26 +2957,31 @@ För att ställa in vilka fel som skall visas använd visa menyn. ScratchPad + Scratchpad Scratchpad + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename Filnamn + Check Analysera @@ -2688,195 +2990,240 @@ För att ställa in vilka fel som skall visas använd visa menyn. Settings + Preferences Inställningar + General Allmänt - + + Add... Lägg till... + Number of threads: Antal trådar: - Ideal count: - Optimalt värde: + Optimalt värde: - + + Force checking all #ifdef configurations Check all #ifdef configurations Kontrollera alla #ifdef konfigurationer - + + Show full path of files Visa den fulla sökvägen för filer - + + Show "No errors found" message when no errors found Visa "Inga fel hittades" meddelande när inga fel hittas - + + Display error Id in column "Id" Visa meddelande id i kolumn "Id" - + + Enable inline suppressions Använd inline suppressions - + + Check for inconclusive errors also Kör inconclusive analys - + + Show statistics on check completion Visa statistik när analys är klar - + + Check for updates - + + Show internal warnings in log Visa interna fel i loggen - + + Addons Addons - + + Python binary (leave this empty to use python in the PATH) Python binär fil (lämna tom för att använda python i PATH) - - - + + + + + + ... ... - + + MISRA addon - + + MISRA rule texts file - + + <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> - + + Clang Clang - + + Clang path (leave empty to use system PATH) Clang sökväg (lämna tom för att använda PATH) - + + Visual Studio headers Visual Studio headers - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> <html><head/><body><p>Sökvägar till Visual Studio headers, separerade med semikolon ';'.</p><p>Du kan öppna en Visual Studio command prompt, och skriva &quot;SET INCLUDE&quot;. Sedan kopiera och klistra in sökvägarna.</p></body></html> - + + Code Editor - + + Code Editor Style - + + System Style - + + Default Light Style - + + Default Dark Style - + + Custom - + + Remove Ta bort - + + + Max count: + + + + + Applications Program - - + + + + Edit... Redigera... - + + Set as default Sätt förvald - + + Reports Rapporter - + + Save all errors when creating report Spara alla fel - + + Save full path to files in reports Spara fulla sökvägar - + + Language Språk @@ -2884,47 +3231,46 @@ För att ställa in vilka fel som skall visas använd visa menyn. SettingsDialog - N/A - Ej tillgängligt + Ej tillgängligt - + The executable file "%1" is not available - + Add a new application Lägg till program - + Modify an application Ändra program - + [Default] [Vald] - + [Default] [Förvald] - + Select python binary Välj python binär - + Select MISRA File - + Select clang path Välj Clang sökväg @@ -2934,261 +3280,285 @@ För att ställa in vilka fel som skall visas använd visa menyn. - - + + + + Statistics Statistik - + + Project Projekt + Project: Projekt: + Paths: Sökvägar: + Include paths: Include sökvägar: + Defines: Defines: + Undefines: - + + Previous Scan Föregående analys + Path Selected: Vald sökväg: + Number of Files Scanned: Antal analyserade filer: + Scan Duration: Analys tid: + Errors: Fel: + Warnings: Varningar: + Stylistic warnings: Stil varningar: + Portability warnings: Portabilitets varningar: + Performance issues: Prestanda varningar: + Information messages: Informations meddelanden: + Active checkers: + Checkers + History Historik + File: Fil: + Copy to Clipboard Kopiera + Pdf Export Pdf Export - + 1 day 1 dag - + %1 days %1 dagar - + 1 hour 1 timme - + %1 hours %1 timmar - + 1 minute 1 minut - + %1 minutes %1 minuter - + 1 second 1 sekund - + %1 seconds %1 sekunder - + 0.%1 seconds 0.%1 sekunder - + and och - + Export PDF Exportera PDF - + Project Settings Projekt inställningar - + Paths Sökvägar - + Include paths Include sökvägar - + Defines Definitioner - + Undefines - + Path selected Vald sökväg - + Number of files scanned Antal analyserade filer - + Scan duration Tid - - + + Errors Fel - + File: Fil: - + No cppcheck build dir Ingen Cppcheck build dir - - + + Warnings Varningar - - + + Style warnings Stil varningar - - + + Portability warnings Portabilitetsvarningar - - + + Performance warnings Prestanda varningar - - + + Information messages Informationsmeddelanden @@ -3196,7 +3566,7 @@ För att ställa in vilka fel som skall visas använd visa menyn. ThreadResult - + %1 of %2 files checked %1 av %2 filer analyserade @@ -3204,7 +3574,7 @@ För att ställa in vilka fel som skall visas använd visa menyn. TranslationHandler - + Failed to change the user interface language: %1 @@ -3217,7 +3587,7 @@ The user interface language has been reset to English. Open the Preferences-dial Språket har nollställts till Engelska. Öppna Preferences och välj något av de tillgängliga språken. - + Cppcheck Cppcheck diff --git a/gui/cppcheck_zh_CN.ts b/gui/cppcheck_zh_CN.ts index 3bf5ce910dc..de5f3fd3c53 100644 --- a/gui/cppcheck_zh_CN.ts +++ b/gui/cppcheck_zh_CN.ts @@ -5,38 +5,45 @@ About + About Cppcheck 关于 Cppcheck + Version %1 版本 %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - C/C++ 静态代码分析工具。 + Copyright © 2007-%1 Cppcheck team. Copyright © 2007-2021 Cppcheck team. 版权所有 © 2007-%1 Cppcheck 团队。 + This program is licensed under the terms of the GNU General Public License version 3 该程序在 GNU 通用公共授权版本 3 的条款下发布 + Visit Cppcheck homepage at %1 访问 Cppcheck 主页: %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -46,11 +53,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application 添加应用程序 + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -76,21 +85,25 @@ Parameters: -l(line) (file) + &Name: 名称(&N): + &Executable: 可执行文件(&E): + &Parameters: 参数(&P): + Browse 浏览 @@ -119,41 +132,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name + Project version + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -202,16 +223,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help Cppcheck GUI 帮助 + Contents 内容 + Index 索引 @@ -230,16 +254,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function 添加函数 + Function name(s) 函数名 + Number of arguments 参数个数 @@ -248,86 +275,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor 库编辑器 + Open 打开 + Save 保存 + Save as 另存为 + Functions 函数 + Sort 排序 + Add 添加 + Filter: 过滤: + Comments 注释 + noreturn 无返回 + False + True + Unknown 未知 + return value must be used 返回值必须被使用 + ignore function in leaks checking 在泄漏检查中忽略函数 + Arguments 参数 + Edit 编辑 @@ -376,11 +420,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument 编辑参数 + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -396,11 +442,13 @@ Parameters: -l(line) (file) + Not bool 非布尔值 + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -416,78 +464,99 @@ Parameters: -l(line) (file) + Not null 非空 + Not uninit 非未初始化 + String 字符串 + Format string 格式化字符串 + Min size of buffer 最小缓冲区大小 + + Type 类型 + + None + + argvalue argvalue + + mul mul + + strlen strlen + + Arg 参数1 + + Arg2 参数2 + and 并且 + Valid values 有效值 @@ -496,596 +565,722 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck + &File 文件(&F) + &View 查看(&V) + &Toolbars 工具栏(&T) + &Help 帮助(&H) - + + C++ standard C++ 标准 - + + &C standard C standard &C 标准 - + + &Edit 编辑(&E) - + + Standard 标准 - + + Categories 分类 - + + &License... 许可证(&L)... - + + A&uthors... 作者(&U)... - + + &About... 关于(&A)... - + + &Files... 文件(&F)... - - + + + + Analyze files Check files 分析文件 - + + Ctrl+F Ctrl+F - + + &Directory... 目录(&D)... - - + + + + Analyze directory Check directory 分析目录 - + + Ctrl+D Ctrl+D - + + Ctrl+R Ctrl+R - + + &Stop 停止(&S) - - + + + + Stop analysis Stop checking 停止分析 - + + Esc Esc - + + &Save results to file... 保存结果到文件(&S)... - + + Ctrl+S Ctrl+S - + + &Quit 退出(&Q) - + + &Clear results 清空结果(&C) - + + &Preferences 首选项(&P) - - + + + + Show style warnings 显示风格警告 - - - + + + + + Show errors 显示错误 - - + + Information 信息 - + + Show information messages 显示信息消息 - + + Show portability warnings 显示可移植性警告 - + + Show Cppcheck results 显示 Cppcheck 结果 - + + Clang Clang - + + Show Clang results 显示 Clang 结果 - + + &Filter 滤器(&F) - + + Filter results 过滤结果 - + + Windows 32-bit ANSI - + + Windows 32-bit Unicode - + + Unix 32-bit - + + Unix 64-bit - + + Windows 64-bit - + + &Print... 打印(&P)... - + + Print the Current Report 打印当前报告 - + + Print Pre&view... 打印预览(&v)... - + + Open a Print Preview Dialog for the Current Results 打开当前结果的打印预览窗口 - + + Open library editor 打开库编辑器 - + + C&lose Project File 关闭项目文件(&L) - + + &Edit Project File... 编辑项目文件(&E)... - + + &Statistics 统计(&S) - - - + + + + + Show warnings 显示警告 - - + + + + Show performance warnings 显示性能警告 - + + Show &hidden 显示隐藏项(&H) - + + &Check all 全部选中(&C) + Checking for updates + Hide 隐藏 - + + + Report - + + A&nalyze 分析(&A) - + + Filter 滤器 - + + &Reanalyze modified files &Recheck modified files 重新分析已修改的文件(&R) - + + Reanal&yze all files 重新分析全部文件(&y) - + + Ctrl+Q Ctrl+Q - + + Style war&nings 风格警告(&n) - + + E&rrors 编辑(&r) - + + &Uncheck all 全部取消选中(&U) - + + Collapse &all 全部折叠(&A) - + + &Expand all 全部展开(&E) - + + &Standard 标准(&S) - + + Standard items 标准项 - + + &Contents 内容(&C) - + + Open the help contents 打开帮助内容 - + + F1 F1 - + + Toolbar 工具栏 - + + &Categories 分类(&C) - + + Error categories 错误分类 - + + &Open XML... 打开 XML (&O)... - + + Open P&roject File... 打开项目文件(&R)... - + + Ctrl+Shift+O Ctrl+Shift+O - + + Sh&ow Scratchpad... 显示便条(&o)... - + + &New Project File... 新建项目文件(&N)... - + + Ctrl+Shift+N Ctrl+Shift+N - + + &Log View 日志视图(&L) - + + Log View 日志视图 - + + &Warnings 警告(&W) - + + Per&formance warnings 性能警告(&f) - + + &Information 信息(&I) - + + &Portability 可移植性(&P) - + + P&latforms 平台(&l) - + + C++&11 C++&11 - + + C&99 C&99 - + + &Posix &Posix - + + C&11 C&11 - + + &C89 &C89 - + + &C++03 &C++03 - + + &Library Editor... 库编辑器(&L)... - + + &Auto-detect language 自动检测语言(&A) - + + &Enforce C++ &Enforce C++ - + + E&nforce C E&nforce C - + + C++14 C++14 - + + Reanalyze and check library 重新分析并检查库 - + + Check configuration (defines, includes) 检查配置(defines, includes) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal 常规 - + + Misra C - + + Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 - + + Autosar - + + + EULA... + + + + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. @@ -1094,23 +1289,23 @@ This is probably because the settings were changed between the Cppcheck versions 这可能是因为 Cppcheck 不同版本间的设置有所不同。请检查(并修复)编辑器应用程序设置,否则编辑器程序可能不会正确启动。 - + You must close the project file before selecting new files or directories! 在选择新的文件或目录之前,你必须先关闭此项目文件! - - + + Quick Filter: 快速滤器: - + Select configuration 选择配置 - + Found project file: %1 Do you want to load this project file instead? @@ -1119,69 +1314,69 @@ Do you want to load this project file instead? 你是否想加载该项目文件? - + The library '%1' contains unknown elements: %2 库 '%1' 包含未知元素: %2 - + File not found 文件未找到 - + Bad XML 无效的 XML - + Missing attribute 缺失属性 - + Bad attribute value 无效的属性值 - + Unsupported format 不支持的格式 - + Duplicate platform type 重复的平台类型 - + Platform type redefined 平台类型重定义 - + Unknown element 位置元素 - + Unknown issue 未知问题 - + Failed to load the selected library '%1'. %2 选择的库 '%1' 加载失败。 %2 - - - - + + + + Error 错误 @@ -1190,143 +1385,143 @@ 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: 项目: - + No suitable files found to analyze! 没有找到合适的文件来分析! - + C/C++ Source C/C++ 源码 - + Compile database Compile database - + Visual Studio Visual Studio - + Borland C++ Builder 6 Borland C++ Builder 6 - + Select files to analyze 选择要分析的文件 - + Select directory to analyze 选择要分析的目录 - + Select the configuration that will be analyzed 选择要分析的配置 - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? @@ -1335,44 +1530,44 @@ Do you want to proceed analysis without using any of these project files? - + Duplicate define - + File not found: '%1' - + Failed to load/setup addon %1: %2 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1383,7 +1578,7 @@ Do you want to proceed? 你想继续吗? - + Analyzer is running. Do you want to stop the analysis and exit Cppcheck? @@ -1392,77 +1587,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 +1666,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 @@ -1503,7 +1698,7 @@ Do you want to remove the file from the recently used projects -list? 你要从最近使用的项目列表中删除此文件吗? - + Cppcheck GUI. Syntax: @@ -1545,7 +1740,7 @@ Options: 当使用这个选项时,GUI不会启动。 - + Cppcheck GUI - Command line parameters Cppcheck GUI - 命令行参数 @@ -1554,26 +1749,31 @@ Options: NewSuppressionDialog + New suppression 新建抑制 + Error ID 错误 ID + File name 文件名 + Line number 行号 + Symbol name 符号名 @@ -1620,48 +1820,57 @@ Options: ProjectFile + Project File 项目文件 + Paths and Defines 路径和定义 + Import Project (Visual studio / compile database/ Borland C++ Builder 6) Import Project (Visual studio / compile database) 导入项目 (Visual studio / compile database/ Borland C++ Builder 6) + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int Defines must be separated by a semicolon ';' 定义必须用分号分隔。例如:DEF1;DEF2=5;DEF3=int + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. 注意:把你自己的 .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... 排除文件... @@ -1671,21 +1880,25 @@ Options: + 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> + ... ... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> <html><head/><body><p>您有一个选择:</p><p> * 分析所有的 Debug 和 Release 配置</p><p> * 只分析第一个匹配的 Debug 配置</p><p><br/></p></body></html> @@ -1693,27 +1906,35 @@ Options: + + + Browse... 浏览... + Analyze all Visual Studio configurations 分析全部 Visual Studio 配置 + Selected VS Configurations 已选择的 VS 配置 + Paths: 路径: + + Add... 添加... @@ -1721,6 +1942,9 @@ Options: + + + Edit 编辑 @@ -1729,280 +1953,341 @@ Options: + + + + Remove 移除 + Undefines: 未定义: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 未定义必须用分号分隔。例如:UNDEF1;UNDEF2;UNDEF3 + Include Paths: 包含目录: + Types and Functions 类型和函数 + + Analysis 分析 + This is a workfolder that Cppcheck will use for various purposes. 这是一个 Cppcheck 将用于各种目的的工作文件夹。 + Parser 解析器 + Cppcheck (built in) Cppcheck (内建) + Check level + 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 启用内联方案 + 2025 + Misra C++ + 2008 + Cert C + CERT-INT35-C: int precision (if size equals precision, you can leave empty) + Autosar + Bug hunting + External tools 外部工具 + Up 向上 + Down 向下 + Platform 平台 + Clang (experimental) 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) 警告标志(用分号隔开) + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) Cppcheck 构建目录 (整个程序分析、增量分析、统计数据等) + Libraries + 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 + Defines: 定义: @@ -2015,77 +2300,77 @@ Options: 项目文件: %1 - + Select Cppcheck build dir 选择 Cppcheck 构建目录 - + Select include directory 选择 Include 目录 - + Select a directory to check 选择一个检查目录 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2093,32 +2378,32 @@ Options: QObject - + Unknown language specified! 指定了未知语言! - + Language file %1 not found! 语言文件 %1 不存在! - + Failed to load translation for language %1 from file %2 无法从文件 %2 中为语言 %1 加载翻译文件 - + line %1: Unhandled element %2 第%1行:未处理元素 %2 - + line %1: Mandatory attribute '%2' missing in '%3' 第%1行:在 "%3" 中缺失的必选属性 "%2" - + (Not found) (未找到) @@ -2249,77 +2534,77 @@ Options: 符号字体大小 - + Set to Default Light 设置为默认亮色 - + Set to Default Dark 设置为默认暗色 - + File 文件 - + Line - + Severity 严重性 - + Classification - + Level - + Inconclusive 不确定的 - + Summary 概要 - + Id Id - + Guideline - + Rule - + Since date 日期 - + Tags - + CWE @@ -2327,22 +2612,22 @@ Options: QPlatformTheme - + OK 确定 - + Cancel 取消 - + Close 关闭 - + Save 保存 @@ -2366,93 +2651,101 @@ Options: 概要 - + Undefined file 未定义文件 - + Copy 复制 - + Could not find file: 找不到文件: - + Please select the folder '%1' 请选择文件夹 '%1' - + Select Directory '%1' 选择目录 '%1' - + Please select the directory where file is located. 请选择文件所在的目录。 - + debug 调试 - + note 注意 - Recheck - 重新检查 + 重新检查 - Hide - 隐藏 + 隐藏 - + Hide all with id 隐藏全部 ID - + Suppress selected id(s) 抑制选择的 ID - + Open containing folder 打开包含的文件夹 - + internal - + + Recheck %1 file(s) + + + + + Hide %1 result(s) + + + + Tag 标记 - + No tag 取消标记 - - + + Cppcheck Cppcheck - + No editor application configured. Configure the editor application for Cppcheck in preferences/Applications. @@ -2462,7 +2755,7 @@ Configure the editor application for Cppcheck in preferences/Applications. - + No default editor application selected. Please select the default editor application in preferences/Applications. @@ -2471,12 +2764,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. @@ -2485,7 +2778,7 @@ Please check the application path and parameters are correct. 请检查此应用程序的路径与参数是否正确。 - + Select Directory 选择目录 @@ -2502,32 +2795,32 @@ Please check the application path and parameters are correct. 日期 - + style 风格 - + error 错误 - + warning 警告 - + performance 性能 - + portability 移植可能性 - + information 信息 @@ -2536,58 +2829,62 @@ Please check the application path and parameters are correct. ResultsView + Results 结果 + Critical errors + Analysis Log 分析日志 + Warning Details 警告详情 - - + + Failed to save the report. 保存报告失败。 - + Print Report 打印报告 - + No errors found, nothing to print. 没有错误发现,没有可打印内容。 - + %p% (%1 of %2 files checked) %p% (%2 个文件已检查 %1 个) - - + + Cppcheck Cppcheck - + No errors found. 未发现错误。 - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. 发现错误,但它们被设为隐藏。 @@ -2664,26 +2961,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad 便条 + Copy or write some C/C++ code here: 在这里复制或输入一些 C/C++ 代码: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": 可选择输入文件名 (主要用来自动语言检测) 然后点击 "检查": + filename 文件名 + Check 检查 @@ -2692,195 +2994,240 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences 首选项 + General 常规 - + + Add... 添加... + Number of threads: 线程个数: - Ideal count: - 理想个数: + 理想个数: - + + Force checking all #ifdef configurations Check all #ifdef configurations 强制检查所有 #ifdef 配置 - + + Show full path of files 显示文件的完整路径 - + + Show "No errors found" message when no errors found 当未找到错误,显示“未发现错误”消息 - + + Display error Id in column "Id" 在列“Id”中显示错误 Id - + + Enable inline suppressions 启用内联方案 - + + Check for inconclusive errors also 检查不确定的错误 - + + Show statistics on check completion 检查完成后显示统计数据 - + + Check for updates - + + Show internal warnings in log 在日志中显示内建警告 - + + Addons 插件 - + + Python binary (leave this empty to use python in the PATH) Python 二进制 (留空将使用 PATH 路径中的 python) - - - + + + + + + ... ... - + + MISRA addon MISRA 插件 - + + MISRA rule texts file 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> - + + Clang Clang - + + Clang path (leave empty to use system PATH) Clang 路径 (留空将使用系统 PATH 路径) - + + Visual Studio headers Visual Studio 头文件 - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> <html><head/><body><p>Visual Studio 头文件路径,用分号 ';' 分割。</p><p>你可以打开一个 Visual Studio 命令提示符,输入 &quot;SET INCLUDE&quot;。然后复制/粘贴路径。</p></body></html> - + + Code Editor 代码编辑器 - + + Code Editor Style 代码编辑器风格 - + + System Style 系统风格 - + + Default Light Style 默认浅色风格 - + + Default Dark Style 默认深色风格 - + + Custom 自定义 - + + Remove 移除 - + + + Max count: + + + + + Applications 应用程序 - - + + + + Edit... 编辑... - + + Set as default 设为默认 - + + Reports 报告 - + + Save all errors when creating report 创建报告时,保存所有错误 - + + Save full path to files in reports 在报告中保存文件的完整路径 - + + Language 语言 @@ -2888,47 +3235,46 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - N/A - N/A + N/A - + The executable file "%1" is not available 可执行文件 "%1" 不可用 - + Add a new application 添加一个新的应用程序 - + Modify an application 修改一个应用程序 - + [Default] [默认] - + [Default] [默认] - + Select python binary 选择 python 二进制 - + Select MISRA File 选择 MISRA 文件 - + Select clang path 选择 clang 路径 @@ -2938,261 +3284,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics 统计 - + + Project 项目 + Project: 项目: + Paths: 路径: + Include paths: 包含路径: + Defines: 定义: + Undefines: 未定义: - + + Previous Scan 上一次扫描 + Path Selected: 选中的路径: + Number of Files Scanned: 扫描的文件数: + Scan Duration: 扫描时间: + Errors: 错误: + Warnings: 警告: + Stylistic warnings: Stylistic 警告: + Portability warnings: 可移植性警告: + Performance issues: 性能警告: + Information messages: 信息: + Active checkers: + Checkers + History 历史 + File: 文件: + Copy to Clipboard 复制到剪贴板 + Pdf Export 导出 PDF - + 1 day 1 天 - + %1 days %1 天 - + 1 hour 1 小时 - + %1 hours %1 小时 - + 1 minute 1 分钟 - + %1 minutes %1 分钟 - + 1 second 1 秒 - + %1 seconds %1 秒 - + 0.%1 seconds 0.%1 秒 - + and - + Export PDF 导出 PDF - + Project Settings 项目设置 - + Paths 路径 - + Include paths 包含路径 - + Defines 定义 - + Undefines 未定义 - + Path selected 选中的路径 - + Number of files scanned 扫描的文件数 - + Scan duration 扫描时间 - - + + Errors 错误 - + File: 文件: - + No cppcheck build dir 没有 cppcheck 构建目录 - - + + Warnings 警告 - - + + Style warnings 风格警告 - - + + Portability warnings 移植可能性警告 - - + + Performance warnings 性能警告 - - + + Information messages 信息 @@ -3200,7 +3570,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked %2 个文件已检查 %1 个 @@ -3208,7 +3578,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3221,7 +3591,7 @@ The user interface language has been reset to English. Open the Preferences-dial 用户界面语言已被重置为英语。打开“首选项”对话框,选择任何可用的语言。 - + Cppcheck Cppcheck diff --git a/gui/cppcheck_zh_TW.ts b/gui/cppcheck_zh_TW.ts index d6f67e871ee..2bae1d5002e 100644 --- a/gui/cppcheck_zh_TW.ts +++ b/gui/cppcheck_zh_TW.ts @@ -5,26 +5,31 @@ About + About Cppcheck 關於 Cppcheck + Version %1 版本 %1 + Cppcheck - A tool for static C/C++ code analysis. Cppcheck - 一款靜態 C/C++ 程式碼分析工具。 + Copyright © 2007-%1 Cppcheck team. 著作權 © 2007-%1 Cppcheck 團隊。 + This program is licensed under the terms of the GNU General Public License version 3 該程式是根據 GNU 通用公眾授權條款第 3 版 @@ -32,11 +37,13 @@ of the GNU General Public License version 3 + Visit Cppcheck homepage at %1 訪問 Cppcheck 主頁: %1 + <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PCRE</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">PicoJSON</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">TinyXML2</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Boost</li></ul></body></html> <html><head/><body><p>Many thanks to these libraries that we use:</p><ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">pcre</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">picojson</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qt</li><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">tinyxml2</li></ul></body></html> @@ -46,11 +53,13 @@ of the GNU General Public License version 3 ApplicationDialog + Add an application 新增應用程式 + Here you can add an application that can open error files. Specify a name for the application, the application executable and command line parameters for the application. The following texts in parameters are replaced with appropriate values when application is executed: @@ -66,21 +75,25 @@ Parameters: -l(line) (file) + &Name: 名稱(&N): + &Executable: 執行檔(&E): + &Parameters: 參數(&P): + Browse 瀏覽 @@ -109,41 +122,49 @@ Parameters: -l(line) (file) ComplianceReportDialog + Compliance Report + Project name 專案名稱 + Project version 專案版本 + Coding Standard + Misra C + Cert C + Cert C++ + List of files with md5 checksums @@ -192,16 +213,19 @@ Parameters: -l(line) (file) HelpDialog + Cppcheck GUI help Cppcheck GUI 幫助 + Contents 內容 + Index 索引 @@ -220,16 +244,19 @@ Parameters: -l(line) (file) LibraryAddFunctionDialog + Add function 新增函式 + Function name(s) 函式名稱 + Number of arguments 引數數量 @@ -238,86 +265,103 @@ Parameters: -l(line) (file) LibraryDialog + Library Editor 程式庫編輯器 + Open 開啟 + Save 儲存 + Save as 另存為 + Functions 函式 + Sort 排序 + Add 新增 + Filter: + Comments 註釋 + noreturn + False + True + Unknown 未知 + return value must be used + ignore function in leaks checking + Arguments 引數 + Edit 編輯 @@ -364,11 +408,13 @@ Parameters: -l(line) (file) LibraryEditArgDialog + Edit argument 編輯引數 + <html><head/><body> <p>Is bool value allowed? For instance result from comparison or from '!' operator.</p> <p>Typically, set this if the argument is a pointer, size, etc.</p> @@ -379,11 +425,13 @@ Parameters: -l(line) (file) + Not bool + <html><head/><body> <p>Is a null parameter value allowed?</p> <p>Typically this should be used on any pointer parameter that does not allow null.</p> @@ -394,78 +442,99 @@ Parameters: -l(line) (file) + Not null + Not uninit + String 字串 + Format string + Min size of buffer + + Type 型別 + + None + + argvalue + + mul + + strlen + + Arg + + Arg2 + and + Valid values 有效值 @@ -474,586 +543,712 @@ Parameters: -l(line) (file) MainWindow - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + Cppcheck Cppcheck + Checking for updates 檢查更新 + Hide 隱藏 + &File 檔案(&F) + &View 檢視(&V) + &Toolbars 工具條(&T) - + + + Report + &Help 幫助(&H) - + + A&nalyze 分析(&N) - + + C++ standard C++ 標準 - + + &C standard C 標準(&C) - + + &Edit 編輯(&E) - + + Standard 標準 - + + Categories 分類 - + + Filter 篩選 - + + &License... 授權(&L)... - + + A&uthors... 作者(&U)... - + + &About... 關於(&A)... - + + &Files... 檔案(&F)... - - + + + + Analyze files 分析檔案 - + + Ctrl+F Ctrl+F - + + &Directory... 目錄(&D)... - - + + + + Analyze directory 分析目錄 - + + Ctrl+D Ctrl+D - + + &Reanalyze modified files 重新分析已修改的檔案(&R) - + + Ctrl+R Ctrl+R - + + Reanal&yze all files 重新分析所有檔案(&Y) - + + &Stop 停止(&S) - - + + + + Stop analysis 停止分析 - + + Esc Esc - + + &Save results to file... 儲存結果為檔案(&S)... - + + Ctrl+S Ctrl+S - + + &Quit 退出(&Q) - + + Ctrl+Q Ctrl+Q - + + &Clear results 清除結果(&C) - + + &Preferences 偏好設定(&P) - + + Style war&nings 樣式警告(&N) - - + + + + Show style warnings 顯示樣式警告 - + + E&rrors 錯誤(&R) - - - + + + + + Show errors 顯示錯誤 - + + &Check all 全部檢查(&C) - + + &Uncheck all - + + Collapse &all 全部摺疊(&A) - + + &Expand all 全部展開(&E) - + + &Standard 標準(&S) - + + Standard items 標準項目 - + + &Contents 內容(&C) - + + Open the help contents 開啟幫助內容 - + + F1 F1 - + + Toolbar 工具條 - + + &Categories 分類(&C) - + + Error categories 錯誤分類 - + + &Open XML... 開啟 XML(&O)... - + + Open P&roject File... 開啟專案檔(&R)... - + + Ctrl+Shift+O Ctrl+Shift+O - + + Sh&ow Scratchpad... - + + &New Project File... 新增專案檔(&N)... - + + Ctrl+Shift+N Ctrl+Shift+N - + + &Log View 日誌檢視(&L) - + + Log View 日誌檢視 - + + C&lose Project File 關閉專案檔(&L) - + + &Edit Project File... 編輯專案檔(&E)... - + + &Statistics 統計資料(&S) - + + &Warnings 警告(&W) - - - + + + + + Show warnings 顯示警告 - + + Per&formance warnings 效能警告(&F) - - + + + + Show performance warnings 顯示下效能警告 - + + Show &hidden 顯示隱藏項目(&H) - + + &Information 資訊(&I) - + + Show information messages 顯示資訊訊息 - + + &Portability 可移植性(&P) - + + Show portability warnings 顯示可移植性警告 - + + Show Cppcheck results 顯示 Cppcheck 結果 - + + Clang Clang - + + Show Clang results 顯示 Clang 結果 - + + &Filter 篩選(&F) - + + Filter results 篩選結果 - + + Windows 32-bit ANSI Windows 32 位元 ANSI - + + Windows 32-bit Unicode Windows 32 位元 Unicode - + + Unix 32-bit Unix 32 位元 - + + Unix 64-bit Unix 64 位元 - + + Windows 64-bit Windows 64 位元 - + + P&latforms 平臺(&L) - + + C++&11 C++&11 - + + C&99 C&99 - + + &Posix - + + C&11 C&11 - + + &C89 &C89 - + + &C++03 &C++03 - + + &Print... 列印(&P)... - + + Print the Current Report 列印當前報告 - + + Print Pre&view... 列印預覽(&V)... - + + Open a Print Preview Dialog for the Current Results 開啟當前結果的列印預覽視窗 - + + &Library Editor... 程式庫編輯器(&L)... - + + Open library editor 開啟程式庫編輯器 - + + &Auto-detect language 自動偵測語言(&A) - + + &Enforce C++ - + + E&nforce C - + + C++14 C++14 - + + Reanalyze and check library 重新分析並檢查程式庫 - + + Check configuration (defines, includes) 檢查組態 (定義、包含) - + + C++17 C++17 - + + C++20 C++20 - + + Compliance report... - + + Normal - + + Misra C - + + Misra C++ 2008 Misra C++ 2008 - + + Cert C - + + Cert C++ - + + Misra C++ 2023 Misra C++ 2023 - + + Autosar - + + + EULA... + + + + Cppcheck GUI. Syntax: @@ -1071,206 +1266,206 @@ Options: - + Cppcheck GUI - Command line parameters Cppcheck GUI - 命令行參數 - - + + Quick Filter: 快速篩選: - - - - + + + + Project: 專案: - + There was a problem with loading the editor application settings. This is probably because the settings were changed between the Cppcheck versions. Please check (and fix) the editor application settings, otherwise the editor program might not start correctly. - + No suitable files found to analyze! 找不到適合的檔案來分析! - + You must close the project file before selecting new files or directories! 您必須在選取新檔案或目錄之前關閉該專案檔! - + C/C++ Source C/C++ 來源檔 - + Compile database 編譯資料庫 - + Visual Studio Visual Studio - + Borland C++ Builder 6 Borland C++ Builder 6 - + Select files to analyze 選取要分析的檔案 - + Select directory to analyze 選取要分析的目錄 - + Select configuration 選取組態 - + Select the configuration that will be analyzed 選取要分析的組態 - + Found project file: %1 Do you want to load this project file instead? - + Found project files from the directory. Do you want to proceed analysis without using any of these project files? - - + + Information 資訊 - + The library '%1' contains unknown elements: %2 - + File not found 找不到檔案 - + Bad XML - + Missing attribute - + Bad attribute value - + Unsupported format 未支援的格式 - + Duplicate platform type 重複的平臺型別 - + Platform type redefined 平臺型別重定義 - + Duplicate define - + Unknown element 未知的元素 - + Unknown issue 未知的議題 - + Failed to load the selected library '%1'. %2 無法載入選取的程式庫 '%1'。 %2 - + File not found: '%1' - + Failed to load/setup addon %1: %2 - - - - + + + + Error 錯誤 - + Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located. Please note that --data-dir is supposed to be used by installation scripts and therefore the GUI does not start when it is used, all that happens is that the setting is configured. Analysis is aborted. - + Failed to load %1 - %2 Analysis is aborted. - - + + %1 Analysis is aborted. - + Current results will be cleared. Opening a new XML file will clear current results. @@ -1278,18 +1473,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 +1493,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 +1577,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 +1641,22 @@ Analysis is stopped. 無法匯入 '%1',停止分析 - + Project files (*.cppcheck) 專案檔 (*.cppcheck) - + Select Project Filename 選取專案檔案名稱 - + No project file loaded - + The project file %1 @@ -1478,12 +1673,12 @@ Do you want to remove the file from the recently used projects -list? 您要從最近使用的專案列表中移除該檔案嗎? - + Install 安章 - + New version available: %1. %2 可用的新版本: %1. %2 @@ -1492,26 +1687,31 @@ Do you want to remove the file from the recently used projects -list? NewSuppressionDialog + New suppression 新建抑制 + Error ID 錯誤 ID + File name 檔案名稱 + Line number 行號 + Symbol name 符號名稱 @@ -1558,16 +1758,19 @@ Do you want to remove the file from the recently used projects -list? ProjectFile + Project File 專案檔 + Paths and Defines 路徑與定義 + Import Project (Visual studio / compile database/ Borland C++ Builder 6) 匯入專案 (Visual Studio / 編譯資料庫 / Borland C++ Builder 6) @@ -1575,32 +1778,41 @@ Do you want to remove the file from the recently used projects -list? + + + Browse... 瀏覽... + <html><head/><body><p>You have a choice:</p><p> * Analyze all Debug and Release configurations</p><p> * Only analyze the first matching Debug configuration</p><p><br/></p></body></html> + Analyze all Visual Studio configurations 分析所有 Visual Studio 組態 + Selected VS Configurations 選取 VS 組態 + Paths: 路徑: + + Add... 新增... @@ -1608,6 +1820,9 @@ Do you want to remove the file from the recently used projects -list? + + + Edit 編輯 @@ -1616,264 +1831,322 @@ Do you want to remove the file from the recently used projects -list? + + + + Remove 移除 + Defines: 定義: + Defines must be separated by a semicolon. Example: DEF1;DEF2=5;DEF3=int + Undefines: 未定義: + Undefines must be separated by a semicolon. Example: UNDEF1;UNDEF2;UNDEF3 + Include Paths: 包含路徑: + Up + Down + Types and Functions 型別與函式 + Platform 平臺 + Libraries 程式庫 + Note: Put your own custom .cfg files in the same folder as the project file. You should see them above. + + Analysis 分析 + Cppcheck build dir (whole program analysis, incremental analysis, statistics, etc) + This is a workfolder that Cppcheck will use for various purposes. + Parser 剖析器 + Cppcheck (built in) Cppcheck (內建) + Clang (experimental) + Check level + 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 + 2025 + Misra C++ + 2008 @@ -1883,16 +2156,19 @@ Do you want to remove the file from the recently used projects -list? + 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> + ... ... @@ -1902,46 +2178,55 @@ Do you want to remove the file from the recently used projects -list? + 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 分析器 @@ -1954,77 +2239,77 @@ Do you want to remove the file from the recently used projects -list? 專案檔: %1 - + Note: Open source Cppcheck does not fully implement Misra C 2012 - + 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) @@ -2157,107 +2442,107 @@ Do you want to remove the file from the recently used projects -list? 符號字型粗細 - + Set to Default Light - + Set to Default Dark - + line %1: Unhandled element %2 - + line %1: Mandatory attribute '%2' missing in '%3' - + (Not found) (找不到) - + Unknown language specified! 指定了未知語言! - + Language file %1 not found! 找不到語言檔 %1! - + Failed to load translation for language %1 from file %2 - + File 檔案 - + Line 行號 - + Severity 安全性 - + Classification - + Level - + Inconclusive - + Summary - + Id 識別號 - + Guideline - + Rule - + Since date - + Tags - + CWE @@ -2265,22 +2550,22 @@ Do you want to remove the file from the recently used projects -list? QPlatformTheme - + OK 確認 - + Cancel 取消 - + Close 關閉 - + Save 儲存 @@ -2288,149 +2573,153 @@ Do you want to remove the file from the recently used projects -list? ResultsTree - + Undefined file 未定義的檔案 - + note - + style 樣式 - + error 錯誤 - + warning 警告 - + performance 效能 - + portability - + information 資訊 - + debug - + internal - - Recheck - - - - + Copy 複製 - Hide - 隱藏 + 隱藏 + + + + Recheck %1 file(s) + - + + Hide %1 result(s) + + + + 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 選取目錄 @@ -2455,58 +2744,62 @@ Please check the application path and parameters are correct. ResultsView + Results 結果 + Critical errors + Analysis Log 分析日誌 + Warning Details 警告詳細資訊 - - + + Failed to save the report. 無法載入報告。 - + Print Report 列印報告 - + No errors found, nothing to print. - + %p% (%1 of %2 files checked) - - + + Cppcheck Cppcheck - + No errors found. 找不到錯誤。 - + Errors were found, but they are configured to be hidden. To toggle what kind of errors are shown, open view menu. @@ -2582,26 +2875,31 @@ To toggle what kind of errors are shown, open view menu. ScratchPad + Scratchpad + Copy or write some C/C++ code here: + Optionally enter a filename (mainly for automatic language detection) and click on "Check": + filename 檔案名稱 + Check @@ -2610,194 +2908,235 @@ To toggle what kind of errors are shown, open view menu. Settings + Preferences 偏好設定 + General 一般 + Number of threads: 執行緒數量: - - Ideal count: + + + Max count: - + + Force checking all #ifdef configurations - + + Show full path of files 顯示檔案的完整路徑 - + + Show "No errors found" message when no errors found - + + Display error Id in column "Id" - + + Enable inline suppressions - + + Check for inconclusive errors also - + + Show statistics on check completion - + + Check for updates 檢查更新 - + + Show internal warnings in log 顯示日誌中的內部警告 - + + Applications 應用程式 - + + Add... 新增... - - + + + + Edit... 編輯... - + + Remove 移除 - + + Set as default 設定為預設值 - + + Reports 報告 - + + Save all errors when creating report - + + Save full path to files in reports 在報告中儲存檔案的完整路徑 - + + Language 語言 - + + Addons - + + Python binary (leave this empty to use python in the PATH) - - - + + + + + + ... ... - + + MISRA addon - + + MISRA rule texts file 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> - + + Clang Clang - + + Clang path (leave empty to use system PATH) - + + Visual Studio headers Visual Studio 標頭檔 - + + <html><head/><body><p>Paths to Visual Studio headers, separated by semicolon ';'.</p><p>You can open a Visual Studio command prompt, write &quot;SET INCLUDE&quot;. Then copy/paste the paths.</p></body></html> - + + Code Editor 程式碼編輯器 - + + Code Editor Style 程式碼編輯器樣式 - + + System Style 系統樣式 - + + Default Light Style - + + Default Dark Style - + + Custom 自訂 @@ -2805,47 +3144,42 @@ To toggle what kind of errors are shown, open view menu. SettingsDialog - - N/A - - - - + The executable file "%1" is not available - + Add a new application 新增一個新應用程式 - + Modify an application 修改一個應用程式 - + [Default] - + [Default] - + Select python binary 選取 python 二進位檔 - + Select MISRA File 選取 MISRA 檔案 - + Select clang path 選取 clang 路徑 @@ -2855,261 +3189,285 @@ To toggle what kind of errors are shown, open view menu. - - + + + + Statistics 統計資料 - + + Project 專案 + Project: 專案: + Paths: 路徑: + Include paths: 包含路徑: + Defines: 定義: + Undefines: 未定義: - + + Previous Scan 上一次掃描 + Path Selected: 選取的路徑: + Number of Files Scanned: 已掃描的檔案數量: + Scan Duration: 掃描時間: + Errors: 錯誤: + Warnings: 警告: + Stylistic warnings: + Portability warnings: 可移植性警告: + Performance issues: 效能議題: + Information messages: 資訊訊息: + Active checkers: + Checkers + History 歷史紀錄 + File: 檔案: + Copy to Clipboard 複製到剪貼簿 + Pdf Export Pdf 匯出 - + File: 檔案: - + No cppcheck build dir 沒有 cppcheck 建置目錄 - + 1 day 1 天 - + %1 days %1 天 - + 1 hour 1 小時 - + %1 hours %1 小時 - + 1 minute 1 分鐘 - + %1 minutes %1 分鐘 - + 1 second 1 秒鐘 - + %1 seconds %1 秒鐘 - + 0.%1 seconds 0.%1 秒鐘 - + and - - + + Errors 錯誤 - - + + Warnings 警告 - - + + Style warnings 樣式警告 - - + + Portability warnings 可移植性警告 - - + + Performance warnings 效能警告 - - + + Information messages 資訊訊息 - + Export PDF 匯出 PDF - + Project Settings 專案設定 - + Paths 路徑 - + Include paths 包含路徑 - + Defines 定義 - + Undefines 未定義 - + Path selected 選取的路徑 - + Number of files scanned 已掃描的檔案數量 - + Scan duration 掃描時間 @@ -3117,7 +3475,7 @@ To toggle what kind of errors are shown, open view menu. ThreadResult - + %1 of %2 files checked @@ -3125,7 +3483,7 @@ To toggle what kind of errors are shown, open view menu. TranslationHandler - + Failed to change the user interface language: %1 @@ -3134,7 +3492,7 @@ The user interface language has been reset to English. Open the Preferences-dial - + Cppcheck diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 5bdad49e289..1a2d86845fc 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -2324,7 +2324,7 @@ void MainWindow::hideInformation() { } bool MainWindow::isCppcheckPremium() const { - return mCppcheckCfgProductName.startsWith("Cppcheck Premium "); + return Settings::isCppcheckPremium(mCppcheckCfgProductName.toStdString()); } void MainWindow::changeReportType() { diff --git a/lib/settings.h b/lib/settings.h index 7b773379490..bcb91988353 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -327,6 +327,8 @@ class CPPCHECKLIB WARN_UNUSED Settings { /** Is checker id enabled by premiumArgs */ bool isPremiumEnabled(const char id[]) const; + static bool isCppcheckPremium(const std::string& productName); + /** @brief Using -E for debugging purposes */ bool preprocessOnly{}; From 7755b02f5ae2246ea441359d41f48def9b4dcb50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 11:46:52 +0100 Subject: [PATCH 4/9] dsf --- lib/settings.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/settings.cpp b/lib/settings.cpp index 0be3706de14..aa3f2960074 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -166,12 +166,16 @@ std::string Settings::loadCppcheckCfg(Settings& settings, Suppressions& suppress } } - settings.premium = startsWith(settings.cppcheckCfgProductName, "Cppcheck Premium"); + settings.premium = isCppcheckPremium(settings.cppcheckCfgProductName); settings.settingsFiles.emplace_back(std::move(fileName)); return ""; } +bool Settings::isCppcheckPremium(const std::string& productName) { + return startsWith(productName, "Cppcheck Premium "); +} + std::pair Settings::getNameAndVersion(const std::string& productName) { if (productName.empty()) return {}; From 950aa0133004ab33898f9f7ffe26878bd2f6f0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 12:10:52 +0100 Subject: [PATCH 5/9] fix test --- lib/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/settings.cpp b/lib/settings.cpp index aa3f2960074..90ad61a544b 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -173,7 +173,7 @@ std::string Settings::loadCppcheckCfg(Settings& settings, Suppressions& suppress } bool Settings::isCppcheckPremium(const std::string& productName) { - return startsWith(productName, "Cppcheck Premium "); + return startsWith(productName, "Cppcheck Premium"); } std::pair Settings::getNameAndVersion(const std::string& productName) { From 72e573de62872f39a8aa4a0b0db14f0802cfacde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 12:13:27 +0100 Subject: [PATCH 6/9] runformat --- lib/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/settings.cpp b/lib/settings.cpp index 90ad61a544b..c7790dc8e83 100644 --- a/lib/settings.cpp +++ b/lib/settings.cpp @@ -166,7 +166,7 @@ std::string Settings::loadCppcheckCfg(Settings& settings, Suppressions& suppress } } - settings.premium = isCppcheckPremium(settings.cppcheckCfgProductName); + settings.premium = isCppcheckPremium(settings.cppcheckCfgProductName); settings.settingsFiles.emplace_back(std::move(fileName)); return ""; From d74568637df36f4792fb5626714f249ed5d76cf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 15:13:55 +0100 Subject: [PATCH 7/9] review, refactor --- test/testcmdlineparser.cpp | 47 ++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 17 deletions(-) diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index 3b5dfc5c2e7..575084817a0 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -116,10 +116,23 @@ class TestCmdlineParser : public TestFixture { logger->destroy(); } - void asPremium() { - // set this so we think it is the premium - settings->premium = true; - } + class AsPremium { + public: + AsPremium(Settings* settings): settings(settings), productName(settings->cppcheckCfgProductName), premium(settings->premium) + { + // set this so we think it is the premium + settings->cppcheckCfgProductName = "Cppcheck Premium 0.0.0"; + settings->premium = true; + } + ~AsPremium() { + settings->cppcheckCfgProductName = productName; + settings->premium = premium; + } + private: + Settings* const settings; + const std::string productName; + const bool premium; + }; template CmdLineParser::Result parseFromArgs(const char* const (&argv)[size]) { @@ -1533,7 +1546,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions1() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=autosar", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1542,7 +1555,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions2() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=misra-c-2012", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1551,7 +1564,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions3() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=misra-c++-2023", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1560,7 +1573,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions4() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=cert-c++-2016", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1569,7 +1582,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions5() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=safety", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1578,7 +1591,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsAll() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = { "cppcheck", "--premium=autosar:all", @@ -1595,7 +1608,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsMetrics() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=metrics", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--metrics", settings->premiumArgs); @@ -1606,7 +1619,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsCertCIntPrecision() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium-cert-c-int-precision=12", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--cert-c-int-precision=12", settings->premiumArgs); @@ -1614,7 +1627,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsLicenseFile() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium-license-file=file.lic", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--license-file=file.lic", settings->premiumArgs); @@ -1622,7 +1635,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsInvalid1() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=misra", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Fail, parseFromArgs(argv)); ASSERT_EQUALS("cppcheck: error: invalid --premium option 'misra'.\n", logger->str()); @@ -1630,7 +1643,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsInvalid2() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=cert", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Fail, parseFromArgs(argv)); ASSERT_EQUALS("cppcheck: error: invalid --premium option 'cert'.\n", logger->str()); @@ -1638,7 +1651,7 @@ class TestCmdlineParser : public TestFixture { void premiumSafety() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=safety", "file.cpp"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS(true, settings->safety); @@ -1646,7 +1659,7 @@ class TestCmdlineParser : public TestFixture { void premiumDebugProgress() { REDIRECT; - asPremium(); + AsPremium asPremium(settings.get()); const char * const argv[] = {"cppcheck", "--premium=debug-progress", "file.cpp"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--debug-progress", settings->premiumArgs); From 8276f309fde9b1a9335f81a0ef82850082750323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 15:18:44 +0100 Subject: [PATCH 8/9] runformat --- test/testcmdlineparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index 575084817a0..bc2bfab5e39 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -118,7 +118,7 @@ class TestCmdlineParser : public TestFixture { class AsPremium { public: - AsPremium(Settings* settings): settings(settings), productName(settings->cppcheckCfgProductName), premium(settings->premium) + AsPremium(Settings* settings) : settings(settings), productName(settings->cppcheckCfgProductName), premium(settings->premium) { // set this so we think it is the premium settings->cppcheckCfgProductName = "Cppcheck Premium 0.0.0"; From eecba3230aa88936732c0772feb034a9b96c4ecd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Oct 2025 15:33:56 +0100 Subject: [PATCH 9/9] review --- test/testcmdlineparser.cpp | 48 ++++++++++++++------------------------ 1 file changed, 18 insertions(+), 30 deletions(-) diff --git a/test/testcmdlineparser.cpp b/test/testcmdlineparser.cpp index bc2bfab5e39..28b7fbce897 100644 --- a/test/testcmdlineparser.cpp +++ b/test/testcmdlineparser.cpp @@ -116,23 +116,11 @@ class TestCmdlineParser : public TestFixture { logger->destroy(); } - class AsPremium { - public: - AsPremium(Settings* settings) : settings(settings), productName(settings->cppcheckCfgProductName), premium(settings->premium) - { - // set this so we think it is the premium - settings->cppcheckCfgProductName = "Cppcheck Premium 0.0.0"; - settings->premium = true; - } - ~AsPremium() { - settings->cppcheckCfgProductName = productName; - settings->premium = premium; - } - private: - Settings* const settings; - const std::string productName; - const bool premium; - }; + void asPremium() { + // set this so we think it is the premium + settings->cppcheckCfgProductName = "Cppcheck Premium 0.0.0"; + settings->premium = true; + } template CmdLineParser::Result parseFromArgs(const char* const (&argv)[size]) { @@ -1546,7 +1534,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions1() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=autosar", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1555,7 +1543,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions2() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=misra-c-2012", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1564,7 +1552,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions3() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=misra-c++-2023", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1573,7 +1561,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions4() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=cert-c++-2016", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1582,7 +1570,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptions5() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=safety", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT(settings->severity.isEnabled(Severity::error)); @@ -1591,7 +1579,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsAll() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = { "cppcheck", "--premium=autosar:all", @@ -1608,7 +1596,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsMetrics() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=metrics", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--metrics", settings->premiumArgs); @@ -1619,7 +1607,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsCertCIntPrecision() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium-cert-c-int-precision=12", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--cert-c-int-precision=12", settings->premiumArgs); @@ -1627,7 +1615,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsLicenseFile() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium-license-file=file.lic", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--license-file=file.lic", settings->premiumArgs); @@ -1635,7 +1623,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsInvalid1() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=misra", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Fail, parseFromArgs(argv)); ASSERT_EQUALS("cppcheck: error: invalid --premium option 'misra'.\n", logger->str()); @@ -1643,7 +1631,7 @@ class TestCmdlineParser : public TestFixture { void premiumOptionsInvalid2() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=cert", "file.c"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Fail, parseFromArgs(argv)); ASSERT_EQUALS("cppcheck: error: invalid --premium option 'cert'.\n", logger->str()); @@ -1651,7 +1639,7 @@ class TestCmdlineParser : public TestFixture { void premiumSafety() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=safety", "file.cpp"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS(true, settings->safety); @@ -1659,7 +1647,7 @@ class TestCmdlineParser : public TestFixture { void premiumDebugProgress() { REDIRECT; - AsPremium asPremium(settings.get()); + asPremium(); const char * const argv[] = {"cppcheck", "--premium=debug-progress", "file.cpp"}; ASSERT_EQUALS_ENUM(CmdLineParser::Result::Success, parseFromArgs(argv)); ASSERT_EQUALS("--debug-progress", settings->premiumArgs);