ported GUI code from QRegExp to QRegularExpression (#3785)

This commit is contained in:
Oliver Stöneberg 2022-03-23 18:16:22 +01:00 committed by GitHub
parent 0d2af9a5b7
commit a0bab85bf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 264 additions and 253 deletions

View File

@ -27,7 +27,7 @@
#include <QDir>
#include <QFile>
#include <QProcess>
#include <QRegExp>
#include <QRegularExpression>
#include <QSettings>
static bool executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string *output)
@ -307,8 +307,8 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
{
QList<ErrorItem> errorItems;
ErrorItem errorItem;
QRegExp r1("(.+):([0-9]+):([0-9]+): (note|warning|error|fatal error): (.*)");
QRegExp r2("(.*)\\[([a-zA-Z0-9\\-_\\.]+)\\]");
const QRegularExpression r1("^(.+):([0-9]+):([0-9]+): (note|warning|error|fatal error): (.*)$");
const QRegularExpression r2("^(.*)\\[([a-zA-Z0-9\\-_\\.]+)\\]$");
QTextStream in(&err, QIODevice::ReadOnly);
while (!in.atEnd()) {
QString line = in.readLine();
@ -327,31 +327,33 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
continue;
}
if (!r1.exactMatch(line))
const QRegularExpressionMatch r1MatchRes = r1.match(line);
if (!r1MatchRes.hasMatch())
continue;
if (r1.cap(4) != "note") {
if (r1MatchRes.captured(4) != "note") {
errorItems.append(errorItem);
errorItem = ErrorItem();
errorItem.file0 = r1.cap(1);
errorItem.file0 = r1MatchRes.captured(1);
}
errorItem.errorPath.append(QErrorPathItem());
errorItem.errorPath.last().file = r1.cap(1);
errorItem.errorPath.last().line = r1.cap(2).toInt();
errorItem.errorPath.last().column = r1.cap(3).toInt();
if (r1.cap(4) == "warning")
errorItem.errorPath.last().file = r1MatchRes.captured(1);
errorItem.errorPath.last().line = r1MatchRes.captured(2).toInt();
errorItem.errorPath.last().column = r1MatchRes.captured(3).toInt();
if (r1MatchRes.captured(4) == "warning")
errorItem.severity = Severity::SeverityType::warning;
else if (r1.cap(4) == "error" || r1.cap(4) == "fatal error")
else if (r1MatchRes.captured(4) == "error" || r1MatchRes.captured(4) == "fatal error")
errorItem.severity = Severity::SeverityType::error;
QString message,id;
if (r2.exactMatch(r1.cap(5))) {
message = r2.cap(1);
const QString id1(r2.cap(2));
const QRegularExpressionMatch r2MatchRes = r2.match(r1MatchRes.captured(5));
if (r2MatchRes.hasMatch()) {
message = r2MatchRes.captured(1);
const QString id1(r2MatchRes.captured(2));
if (id1.startsWith("clang"))
id = id1;
else
id = tool + '-' + r2.cap(2);
id = tool + '-' + r2MatchRes.captured(2);
if (tool == CLANG_TIDY) {
if (id1.startsWith("performance"))
errorItem.severity = Severity::SeverityType::performance;
@ -363,7 +365,7 @@ void CheckThread::parseClangErrors(const QString &tool, const QString &file0, QS
errorItem.severity = Severity::SeverityType::style;
}
} else {
message = r1.cap(5);
message = r1MatchRes.captured(5);
id = CLANG_ANALYZER;
}

View File

@ -1723,82 +1723,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>Projektdatei: %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation>Wähle Cppcheck-Erstellungsverzeichnis</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Wähle Include-Verzeichnisse</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Wähle zu prüfendes Verzeichnis</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation>(keine Regeltexte)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation>Clang-tidy (nicht gefunden)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation>Visual Studio</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation>Compilerdatenbank</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation>Borland C++-Builder 6</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation>Projekt importieren</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Wähle zu ignorierendes Verzeichnis</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation>Wähle MISRA-Regeltext-Datei</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation>MISRA-Regeltext-Datei</translation>
</message>
@ -1850,7 +1850,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation> (nicht gefunden)</translation>
</message>

View File

@ -1849,72 +1849,72 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>Archivo de proyecto: %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Selecciona una carpeta para incluir</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Selecciona la carpeta a comprobar</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Selecciona la carpeta a ignorar</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
@ -1923,12 +1923,12 @@ Options:
<translation type="obsolete">Añadir supresión</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
@ -1980,7 +1980,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1695,82 +1695,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
@ -1805,7 +1805,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1760,82 +1760,82 @@ Do you want to proceed?</source>
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>Fichier projet : %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Selectionner un répertoire à inclure</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Selectionner un répertoire à ignorer</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Selectionner un répertoire à vérifier</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
@ -1887,7 +1887,7 @@ Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1862,82 +1862,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>File di progetto: %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Seleziona la cartella da includere</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Seleziona una cartella da scansionare</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Seleziona la cartella da ignorare</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
@ -1977,7 +1977,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1963,12 +1963,12 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>:%1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation>Cppcheckビルドディレクトリ</translation>
</message>
@ -1977,62 +1977,62 @@ Options:
<translation type="obsolete">Visual Studio (*.sln *.vcxproj);; (compile_commands.json)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>includeディレクトリを選択</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation>()</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation>Clang-tidy ()</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation>Visual Studio</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation>Borland C++ Builder 6</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation></translation>
</message>
@ -2045,12 +2045,12 @@ Options:
<translation type="obsolete">ID(error id)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation>MISRAルールテキストファイルを選択</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation>MISRAルールテキストファイル (%1)</translation>
</message>
@ -2102,7 +2102,7 @@ Options:
<translation> %1: 必須の属性 &apos;%2&apos; &apos;%3&apos;</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation> ()</translation>
</message>

View File

@ -1843,82 +1843,82 @@ Do you want to proceed?</source>
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation> : %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Include </translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation> </translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation> </translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
@ -1958,7 +1958,7 @@ Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1844,82 +1844,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>Project Bestand %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Selecteer include map</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Selecteer een map om te controleren</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Selecteer een map om te negeren</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
@ -1969,7 +1969,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1962,82 +1962,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>Файл проекта: %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation>Выбрать директорию сборки Cppcheck</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Выберите директорию для поиска заголовочных файлов</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Выберите директорию для проверки</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation>(файл с текстами правил недоступен)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation>Clang-tidy (не найден)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation>Visual Studio</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation>Borland C++ Builder 6</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation>Импорт проекта</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Выберите директорию, которую надо проигнорировать</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation>Выбрать файл текстов правил MISRA</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation>Файл текстов правил MISRA (%1)</translation>
</message>
@ -2091,7 +2091,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation> (Недоступно)</translation>
</message>

View File

@ -1720,82 +1720,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
@ -1828,7 +1828,7 @@ Options:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -2006,22 +2006,22 @@ Sökvägar och defines importeras.</translation>
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>Projektfil: %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation>Välj Cppcheck build dir</translation>
</message>
@ -2030,57 +2030,57 @@ Sökvägar och defines importeras.</translation>
<translation type="obsolete">Visual Studio (*.sln *.vcxproj);;Compile database (compile_commands.json)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation>Välj include sökväg</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation>Välj mapp att analysera</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation type="unfinished">Visual Studio</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation>Importera Projekt</translation>
</message>
@ -2089,7 +2089,7 @@ Sökvägar och defines importeras.</translation>
<translation type="obsolete">Visual Studio (*.sln *.vcxproj);;Compile database (compile_database.json)</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation>Välj sökväg att ignorera</translation>
</message>
@ -2151,7 +2151,7 @@ Sökvägar och defines importeras.</translation>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation type="unfinished"></translation>
</message>

View File

@ -1898,82 +1898,82 @@ Options:
<context>
<name>ProjectFileDialog</name>
<message>
<location filename="projectfiledialog.cpp" line="85"/>
<location filename="projectfiledialog.cpp" line="86"/>
<source>Project file: %1</source>
<translation>: %1</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="460"/>
<location filename="projectfiledialog.cpp" line="461"/>
<source>Select Cppcheck build dir</source>
<translation> Cppcheck </translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="756"/>
<location filename="projectfiledialog.cpp" line="757"/>
<source>Select include directory</source>
<translation> Include </translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="736"/>
<location filename="projectfiledialog.cpp" line="737"/>
<source>Select a directory to check</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="347"/>
<location filename="projectfiledialog.cpp" line="348"/>
<source>(no rule texts file)</source>
<translation>()</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="353"/>
<location filename="projectfiledialog.cpp" line="354"/>
<source>Clang-tidy (not found)</source>
<translation>Clang-tidy ()</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="500"/>
<location filename="projectfiledialog.cpp" line="501"/>
<source>Visual Studio</source>
<translation>Visual Studio</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="501"/>
<location filename="projectfiledialog.cpp" line="502"/>
<source>Compile database</source>
<translation>Compile database</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="502"/>
<location filename="projectfiledialog.cpp" line="503"/>
<source>Borland C++ Builder 6</source>
<translation>Borland C++ Builder 6</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="503"/>
<location filename="projectfiledialog.cpp" line="504"/>
<source>Import Project</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="776"/>
<location filename="projectfiledialog.cpp" line="777"/>
<source>Select directory to ignore</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="784"/>
<location filename="projectfiledialog.cpp" line="785"/>
<source>Source files</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="785"/>
<location filename="projectfiledialog.cpp" line="786"/>
<source>All files</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="786"/>
<location filename="projectfiledialog.cpp" line="787"/>
<source>Exclude file</source>
<translation></translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="870"/>
<location filename="projectfiledialog.cpp" line="871"/>
<source>Select MISRA rule texts file</source>
<translation> MISRA </translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="872"/>
<location filename="projectfiledialog.cpp" line="873"/>
<source>MISRA rule texts file (%1)</source>
<translation>MISRA (%1)</translation>
</message>
@ -2013,7 +2013,7 @@ Options:
<translation>%1 &quot;%3&quot; &quot;%2&quot;</translation>
</message>
<message>
<location filename="projectfiledialog.cpp" line="242"/>
<location filename="projectfiledialog.cpp" line="243"/>
<source> (Not found)</source>
<translation> ()</translation>
</message>

View File

@ -20,15 +20,16 @@
#include "ui_libraryaddfunctiondialog.h"
#include <QRegExp>
#include <QRegularExpression>
#include <QRegularExpressionValidator>
LibraryAddFunctionDialog::LibraryAddFunctionDialog(QWidget *parent) :
QDialog(parent),
mUi(new Ui::LibraryAddFunctionDialog)
{
mUi->setupUi(this);
QRegExp rx(NAMES);
QValidator *validator = new QRegExpValidator(rx, this);
const QRegularExpression rx(NAMES);
QValidator *validator = new QRegularExpressionValidator(rx, this);
mUi->functionName->setValidator(validator);
}

View File

@ -28,7 +28,7 @@
#include <QFile>
#include <QFileDialog>
#include <QMessageBox>
#include <QRegExp>
#include <QRegularExpression>
#include <QTextStream>
// TODO: get/compare functions from header
@ -198,7 +198,8 @@ void LibraryDialog::editFunctionName(QListWidgetItem* item)
QString functionName = item->text();
CppcheckLibraryData::Function * const function = dynamic_cast<FunctionListItem*>(item)->function;
if (functionName != function->name) {
if (QRegExp(NAMES).exactMatch(functionName)) {
const QRegularExpressionMatch matchRes = QRegularExpression("^" NAMES "$").match(functionName);
if (matchRes.hasMatch()) {
function->name = functionName;
mUi->buttonSave->setEnabled(true);
} else {

View File

@ -51,7 +51,7 @@
#include <QFileInfo>
#include <QInputDialog>
#include <QMessageBox>
#include <QRegExp>
#include <QRegularExpression>
#include <QSettings>
#include <QTimer>
@ -262,9 +262,9 @@ void MainWindow::handleCLIParams(const QStringList &params)
} else {
loadResults(logFile);
}
} else if ((index = params.indexOf(QRegExp(".*\\.cppcheck$", Qt::CaseInsensitive), 0)) >= 0 && index < params.length() && QFile(params[index]).exists()) {
} else if ((index = params.indexOf(QRegularExpression(".*\\.cppcheck$", QRegularExpression::CaseInsensitiveOption), 0)) >= 0 && index < params.length() && QFile(params[index]).exists()) {
loadProjectFile(params[index]);
} else if ((index = params.indexOf(QRegExp(".*\\.xml$", Qt::CaseInsensitive), 0)) >= 0 && index < params.length() && QFile(params[index]).exists()) {
} else if ((index = params.indexOf(QRegularExpression(".*\\.xml$", QRegularExpression::CaseInsensitiveOption), 0)) >= 0 && index < params.length() && QFile(params[index]).exists()) {
loadResults(params[index],QDir::currentPath());
} else
doAnalyzeFiles(params);
@ -1179,7 +1179,7 @@ void MainWindow::clearResults()
if (mProjectFile && !mProjectFile->getBuildDir().isEmpty()) {
QDir dir(QFileInfo(mProjectFile->getFilename()).absolutePath() + '/' + mProjectFile->getBuildDir());
for (const QString& f: dir.entryList(QDir::Files)) {
if (!f.endsWith("files.txt") && !QRegExp(".*.s[0-9]+$").exactMatch(f))
if (!f.endsWith("files.txt") && !QRegularExpression("^.*.s[0-9]+$").match(f).hasMatch())
dir.remove(f);
}
}

View File

@ -31,7 +31,8 @@
#include <QDir>
#include <QFileDialog>
#include <QFileInfo>
#include <QRegExp>
#include <QRegularExpression>
#include <QRegularExpressionValidator>
#include <QSettings>
/** Return paths from QListWidget */
@ -183,10 +184,10 @@ ProjectFileDialog::ProjectFileDialog(ProjectFile *projectFile, QWidget *parent)
platformFiles.sort();
mUI->mComboBoxPlatform->addItems(platformFiles);
mUI->mEditTags->setValidator(new QRegExpValidator(QRegExp("[a-zA-Z0-9 ;]*"),this));
mUI->mEditTags->setValidator(new QRegularExpressionValidator(QRegularExpression("[a-zA-Z0-9 ;]*"),this));
const QRegExp undefRegExp("\\s*([a-zA-Z_][a-zA-Z0-9_]*[; ]*)*");
mUI->mEditUndefines->setValidator(new QRegExpValidator(undefRegExp, this));
const QRegularExpression undefRegExp("\\s*([a-zA-Z_][a-zA-Z0-9_]*[; ]*)*");
mUI->mEditUndefines->setValidator(new QRegularExpressionValidator(undefRegExp, this));
connect(mUI->mButtons, &QDialogButtonBox::accepted, this, &ProjectFileDialog::ok);
connect(mUI->mBtnBrowseBuildDir, &QPushButton::clicked, this, &ProjectFileDialog::browseBuildDir);
@ -595,9 +596,9 @@ QStringList ProjectFileDialog::getIncludePaths() const
QStringList ProjectFileDialog::getDefines() const
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
return mUI->mEditDefines->text().trimmed().split(QRegExp("\\s*;\\s*"), Qt::SkipEmptyParts);
return mUI->mEditDefines->text().trimmed().split(QRegularExpression("\\s*;\\s*"), Qt::SkipEmptyParts);
#else
return mUI->mEditDefines->text().trimmed().split(QRegExp("\\s*;\\s*"), QString::SkipEmptyParts);
return mUI->mEditDefines->text().trimmed().split(QRegularExpression("\\s*;\\s*"), QString::SkipEmptyParts);
#endif
}
@ -605,9 +606,9 @@ QStringList ProjectFileDialog::getUndefines() const
{
const QString undefine = mUI->mEditUndefines->text().trimmed();
#if (QT_VERSION >= QT_VERSION_CHECK(5, 14, 0))
QStringList undefines = undefine.split(QRegExp("\\s*;\\s*"), Qt::SkipEmptyParts);
QStringList undefines = undefine.split(QRegularExpression("\\s*;\\s*"), Qt::SkipEmptyParts);
#else
QStringList undefines = undefine.split(QRegExp("\\s*;\\s*"), QString::SkipEmptyParts);
QStringList undefines = undefine.split(QRegularExpression("\\s*;\\s*"), QString::SkipEmptyParts);
#endif
undefines.removeDuplicates();
return undefines;

View File

@ -30,7 +30,7 @@
#include <QFileInfo>
#include <QMimeData>
#include <QPrinter>
#include <QRegExp>
#include <QRegularExpression>
#include <QTextDocument>
#include <QWidget>
@ -406,11 +406,12 @@ QLineSeries *StatsDialog::numberOfReports(const QString &fileName, const QString
QTextStream in(&f);
while (!in.atEnd()) {
QString line = in.readLine();
QRegExp rxdate("\\[(\\d\\d)\\.(\\d\\d)\\.(\\d\\d\\d\\d)\\]");
if (rxdate.exactMatch(line)) {
int y = rxdate.cap(3).toInt();
int m = rxdate.cap(2).toInt();
int d = rxdate.cap(1).toInt();
const QRegularExpression rxdate("^\\[(\\d\\d)\\.(\\d\\d)\\.(\\d\\d\\d\\d)\\]$");
const QRegularExpressionMatch matchRes = rxdate.match(line);
if (matchRes.hasMatch()) {
int y = matchRes.captured(3).toInt();
int m = matchRes.captured(2).toInt();
int d = matchRes.captured(1).toInt();
QDateTime dt;
dt.setDate(QDate(y,m,d));
if (t == dt.toMSecsSinceEpoch())

View File

@ -20,7 +20,8 @@
#include "ui_variablecontractsdialog.h"
#include <QRegExpValidator>
#include <QRegularExpression>
#include <QRegularExpressionValidator>
VariableContractsDialog::VariableContractsDialog(QWidget *parent, QString var) :
QDialog(parent),
@ -45,8 +46,8 @@ VariableContractsDialog::VariableContractsDialog(QWidget *parent, QString var) :
mUI->mMinValue->setText(getMinMax(var, "min"));
mUI->mMaxValue->setText(getMinMax(var, "max"));
mUI->mMinValue->setValidator(new QRegExpValidator(QRegExp("-?[0-9]*")));
mUI->mMaxValue->setValidator(new QRegExpValidator(QRegExp("-?[0-9]*")));
mUI->mMinValue->setValidator(new QRegularExpressionValidator(QRegularExpression("-?[0-9]*")));
mUI->mMaxValue->setValidator(new QRegularExpressionValidator(QRegularExpression("-?[0-9]*")));
}
VariableContractsDialog::~VariableContractsDialog()

View File

@ -32,6 +32,7 @@
#include <QMimeDatabase>
#include <QProcess>
#include <QProgressDialog>
#include <QRegularExpression>
#include <QTextStream>
const QString WORK_FOLDER(QDir::homePath() + "/triage");
@ -42,7 +43,7 @@ const int MAX_ERRORS = 100;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
mVersionRe("^(master|main|your|head|[12].[0-9][0-9]?) (.*)"),
mVersionRe("^(master|main|your|head|[12].[0-9][0-9]?) (.*)$"),
hFiles{"*.hpp", "*.h", "*.hxx", "*.hh", "*.tpp", "*.txx", "*.ipp", "*.ixx"},
srcFiles{"*.cpp", "*.cxx", "*.cc", "*.c++", "*.C", "*.c", "*.cl"}
{
@ -110,9 +111,10 @@ void MainWindow::load(QTextStream &textStream)
if (!errorMessage.isEmpty())
mAllErrors << errorMessage;
errorMessage.clear();
} else if (!url.isEmpty() && QRegExp(".*: (error|warning|style|note):.*").exactMatch(line)) {
if (mVersionRe.exactMatch(line)) {
const QString version = mVersionRe.cap(1);
} else if (!url.isEmpty() && QRegularExpression("^.*: (error|warning|style|note):.*$").match(line).hasMatch()) {
const QRegularExpressionMatch matchRes = mVersionRe.match(line);
if (matchRes.hasMatch()) {
const QString version = matchRes.captured(1);
if (versions.indexOf(version) < 0)
versions << version;
}
@ -260,8 +262,9 @@ void MainWindow::showResult(QListWidgetItem *item)
return;
const QString url = lines[0];
QString msg = lines[1];
if (mVersionRe.exactMatch(msg))
msg = mVersionRe.cap(2);
const QRegularExpressionMatch matchRes = mVersionRe.match(msg);
if (matchRes.hasMatch())
msg = matchRes.captured(2);
const QString archiveName = url.mid(url.lastIndexOf("/") + 1);
const int pos1 = msg.indexOf(":");
const int pos2 = msg.indexOf(":", pos1+1);

View File

@ -21,6 +21,7 @@
#include <QFileSystemModel>
#include <QMainWindow>
#include <QRegularExpression>
#include <QString>
class QListWidgetItem;
@ -61,7 +62,7 @@ private:
QStringList mAllErrors;
QFileSystemModel mFSmodel;
const QRegExp mVersionRe;
const QRegularExpression mVersionRe;
const QStringList hFiles;
const QStringList srcFiles;