reordered includes in GUI code (#3790)
This commit is contained in:
parent
94a1f76ec4
commit
9d36dd56a8
|
@ -19,9 +19,10 @@
|
||||||
#ifndef ABOUT_DIALOG_H
|
#ifndef ABOUT_DIALOG_H
|
||||||
#define ABOUT_DIALOG_H
|
#define ABOUT_DIALOG_H
|
||||||
|
|
||||||
|
#include "ui_about.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "ui_about.h"
|
|
||||||
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
|
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
|
|
||||||
#include "applicationdialog.h"
|
#include "applicationdialog.h"
|
||||||
|
|
||||||
|
#include "application.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
|
|
||||||
#include "application.h"
|
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
|
|
||||||
ApplicationDialog::ApplicationDialog(const QString &title,
|
ApplicationDialog::ApplicationDialog(const QString &title,
|
||||||
Application &app,
|
Application &app,
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef APPLICATIONDIALOG_H
|
#ifndef APPLICATIONDIALOG_H
|
||||||
#define APPLICATIONDIALOG_H
|
#define APPLICATIONDIALOG_H
|
||||||
|
|
||||||
|
#include "ui_application.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "ui_application.h"
|
|
||||||
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
class Application;
|
class Application;
|
||||||
|
|
|
@ -18,15 +18,15 @@
|
||||||
|
|
||||||
#include "applicationlist.h"
|
#include "applicationlist.h"
|
||||||
|
|
||||||
|
#include "application.h"
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include "common.h"
|
|
||||||
#include "application.h"
|
|
||||||
|
|
||||||
#include <cstdlib>
|
|
||||||
|
|
||||||
ApplicationList::ApplicationList(QObject *parent) :
|
ApplicationList::ApplicationList(QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
mDefaultApplicationIndex(-1)
|
mDefaultApplicationIndex(-1)
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef APPLICATIONLIST_H
|
#ifndef APPLICATIONLIST_H
|
||||||
#define APPLICATIONLIST_H
|
#define APPLICATIONLIST_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -19,12 +19,12 @@
|
||||||
#ifndef CHECKSTATISTICS_H
|
#ifndef CHECKSTATISTICS_H
|
||||||
#define CHECKSTATISTICS_H
|
#define CHECKSTATISTICS_H
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QMap>
|
|
||||||
#include <QString>
|
|
||||||
|
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
|
|
||||||
|
#include <QMap>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -18,15 +18,16 @@
|
||||||
|
|
||||||
#include "checkthread.h"
|
#include "checkthread.h"
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
#include "cppcheck.h"
|
||||||
|
#include "erroritem.h"
|
||||||
|
#include "threadresult.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include "erroritem.h"
|
|
||||||
#include "threadresult.h"
|
|
||||||
#include "cppcheck.h"
|
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
static bool executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string *output)
|
static bool executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string *output)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,10 +20,11 @@
|
||||||
#ifndef CHECKTHREAD_H
|
#ifndef CHECKTHREAD_H
|
||||||
#define CHECKTHREAD_H
|
#define CHECKTHREAD_H
|
||||||
|
|
||||||
#include <QThread>
|
|
||||||
#include "cppcheck.h"
|
#include "cppcheck.h"
|
||||||
#include "suppressions.h"
|
#include "suppressions.h"
|
||||||
|
|
||||||
|
#include <QThread>
|
||||||
|
|
||||||
class Settings;
|
class Settings;
|
||||||
class ThreadResult;
|
class ThreadResult;
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,11 @@
|
||||||
|
|
||||||
#include "codeeditor.h"
|
#include "codeeditor.h"
|
||||||
|
|
||||||
#include <QShortcut>
|
|
||||||
#include <QPainter>
|
|
||||||
#include "codeeditorstyle.h"
|
#include "codeeditorstyle.h"
|
||||||
|
|
||||||
|
#include <QPainter>
|
||||||
|
#include <QShortcut>
|
||||||
|
|
||||||
|
|
||||||
Highlighter::Highlighter(QTextDocument *parent,
|
Highlighter::Highlighter(QTextDocument *parent,
|
||||||
CodeEditorStyle *widgetStyle) :
|
CodeEditorStyle *widgetStyle) :
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
#ifndef CODEEDITOR_H
|
#ifndef CODEEDITOR_H
|
||||||
#define CODEEDITOR_H
|
#define CODEEDITOR_H
|
||||||
|
|
||||||
#include <QSyntaxHighlighter>
|
|
||||||
#include <QPlainTextEdit>
|
#include <QPlainTextEdit>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
|
#include <QSyntaxHighlighter>
|
||||||
|
|
||||||
class CodeEditorStyle;
|
class CodeEditorStyle;
|
||||||
class QPaintEvent;
|
class QPaintEvent;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "codeeditorstyle.h"
|
#include "codeeditorstyle.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
||||||
CodeEditorStyle::CodeEditorStyle(
|
CodeEditorStyle::CodeEditorStyle(
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
#ifndef CODEEDITORSTYLE_H
|
#ifndef CODEEDITORSTYLE_H
|
||||||
#define CODEEDITORSTYLE_H
|
#define CODEEDITORSTYLE_H
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
const QString SETTINGS_STYLE_GROUP("EditorStyle");
|
const QString SETTINGS_STYLE_GROUP("EditorStyle");
|
||||||
const QString SETTINGS_STYLE_TYPE("StyleType");
|
const QString SETTINGS_STYLE_TYPE("StyleType");
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "codeeditstylecontrols.h"
|
#include "codeeditstylecontrols.h"
|
||||||
|
|
||||||
#include <QColorDialog>
|
#include <QColorDialog>
|
||||||
|
|
||||||
SelectColorButton::SelectColorButton(QWidget* parent) :
|
SelectColorButton::SelectColorButton(QWidget* parent) :
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
#ifndef CODEEDITORSTYLECONTROLS_H
|
#ifndef CODEEDITORSTYLECONTROLS_H
|
||||||
#define CODEEDITORSTYLECONTROLS_H
|
#define CODEEDITORSTYLECONTROLS_H
|
||||||
|
|
||||||
#include <QPushButton>
|
|
||||||
#include <QComboBox>
|
|
||||||
#include <QColor>
|
#include <QColor>
|
||||||
|
#include <QComboBox>
|
||||||
#include <QFont>
|
#include <QFont>
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
class SelectColorButton : public QPushButton {
|
class SelectColorButton : public QPushButton {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -20,8 +20,9 @@
|
||||||
|
|
||||||
#include "codeeditor.h"
|
#include "codeeditor.h"
|
||||||
#include "codeeditstylecontrols.h"
|
#include "codeeditstylecontrols.h"
|
||||||
#include <QFormLayout>
|
|
||||||
#include <QDialogButtonBox>
|
#include <QDialogButtonBox>
|
||||||
|
#include <QFormLayout>
|
||||||
|
|
||||||
const QString StyleEditDialog::mSampleDocument(
|
const QString StyleEditDialog::mSampleDocument(
|
||||||
"/*****\n"
|
"/*****\n"
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef CODEEDITSTYLEDIALOG_H
|
#ifndef CODEEDITSTYLEDIALOG_H
|
||||||
#define CODEEDITSTYLEDIALOG_H
|
#define CODEEDITSTYLEDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include "codeeditorstyle.h"
|
#include "codeeditorstyle.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class CodeEditor;
|
class CodeEditor;
|
||||||
class SelectColorButton;
|
class SelectColorButton;
|
||||||
class SelectFontWeightCombo;
|
class SelectFontWeightCombo;
|
||||||
|
|
|
@ -18,10 +18,11 @@
|
||||||
|
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QSettings>
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QSettings>
|
||||||
|
|
||||||
|
|
||||||
QString getPath(const QString &type)
|
QString getPath(const QString &type)
|
||||||
|
|
|
@ -18,10 +18,11 @@
|
||||||
|
|
||||||
#include "csvreport.h"
|
#include "csvreport.h"
|
||||||
|
|
||||||
#include <QDir>
|
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
|
||||||
CsvReport::CsvReport(const QString &filename) :
|
CsvReport::CsvReport(const QString &filename) :
|
||||||
Report(filename)
|
Report(filename)
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef CSV_REPORT_H
|
#ifndef CSV_REPORT_H
|
||||||
#define CSV_REPORT_H
|
#define CSV_REPORT_H
|
||||||
|
|
||||||
|
#include "report.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "report.h"
|
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
QErrorPathItem::QErrorPathItem(const ErrorMessage::FileLocation &loc)
|
QErrorPathItem::QErrorPathItem(const ErrorMessage::FileLocation &loc)
|
||||||
|
|
|
@ -19,11 +19,12 @@
|
||||||
#ifndef ERRORITEM_H
|
#ifndef ERRORITEM_H
|
||||||
#define ERRORITEM_H
|
#define ERRORITEM_H
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QMetaType>
|
|
||||||
#include <QList>
|
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
|
#include <QMetaType>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,10 @@
|
||||||
|
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
|
|
||||||
#include <QDir>
|
|
||||||
#include "pathmatch.h"
|
#include "pathmatch.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
|
||||||
QStringList FileList::getDefaultFilters()
|
QStringList FileList::getDefaultFilters()
|
||||||
{
|
{
|
||||||
QStringList extensions;
|
QStringList extensions;
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
#include "fileviewdialog.h"
|
#include "fileviewdialog.h"
|
||||||
|
|
||||||
#include <QFile>
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
#include <QFile>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QTextEdit>
|
#include <QTextEdit>
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef FILEVIEW_DIALOG_H
|
#ifndef FILEVIEW_DIALOG_H
|
||||||
#define FILEVIEW_DIALOG_H
|
#define FILEVIEW_DIALOG_H
|
||||||
|
|
||||||
|
#include "ui_file.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include "ui_file.h"
|
|
||||||
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
class QTextEdit;
|
class QTextEdit;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "functioncontractdialog.h"
|
#include "functioncontractdialog.h"
|
||||||
|
|
||||||
#include "ui_functioncontractdialog.h"
|
#include "ui_functioncontractdialog.h"
|
||||||
|
|
||||||
static QString formatFunctionName(QString f)
|
static QString formatFunctionName(QString f)
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "helpdialog.h"
|
#include "helpdialog.h"
|
||||||
|
|
||||||
#include "ui_helpdialog.h"
|
#include "ui_helpdialog.h"
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libraryaddfunctiondialog.h"
|
#include "libraryaddfunctiondialog.h"
|
||||||
|
|
||||||
#include "ui_libraryaddfunctiondialog.h"
|
#include "ui_libraryaddfunctiondialog.h"
|
||||||
|
|
||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
|
|
|
@ -17,16 +17,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "librarydialog.h"
|
#include "librarydialog.h"
|
||||||
|
|
||||||
#include "ui_librarydialog.h"
|
#include "ui_librarydialog.h"
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include "libraryaddfunctiondialog.h"
|
#include "libraryaddfunctiondialog.h"
|
||||||
#include "libraryeditargdialog.h"
|
#include "libraryeditargdialog.h"
|
||||||
#include "common.h"
|
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QTextStream>
|
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QTextStream>
|
||||||
|
|
||||||
// TODO: get/compare functions from header
|
// TODO: get/compare functions from header
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
#ifndef LIBRARYDIALOG_H
|
#ifndef LIBRARYDIALOG_H
|
||||||
#define LIBRARYDIALOG_H
|
#define LIBRARYDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
|
|
||||||
#include "cppchecklibrarydata.h"
|
#include "cppchecklibrarydata.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class QListWidgetItem;
|
class QListWidgetItem;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "libraryeditargdialog.h"
|
#include "libraryeditargdialog.h"
|
||||||
|
|
||||||
#include "ui_libraryeditargdialog.h"
|
#include "ui_libraryeditargdialog.h"
|
||||||
|
|
||||||
LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibraryData::Function::Arg &arg) :
|
LibraryEditArgDialog::LibraryEditArgDialog(QWidget *parent, const CppcheckLibraryData::Function::Arg &arg) :
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef LIBRARYEDITARGDIALOG_H
|
#ifndef LIBRARYEDITARGDIALOG_H
|
||||||
#define LIBRARYEDITARGDIALOG_H
|
#define LIBRARYEDITARGDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include "cppchecklibrarydata.h"
|
#include "cppchecklibrarydata.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class LibraryEditArgDialog;
|
class LibraryEditArgDialog;
|
||||||
}
|
}
|
||||||
|
|
25
gui/main.cpp
25
gui/main.cpp
|
@ -16,23 +16,26 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QCoreApplication>
|
|
||||||
#include <QMetaType>
|
|
||||||
#include <QStringList>
|
|
||||||
#include <QSettings>
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include <QMessageBox>
|
|
||||||
#include "aboutdialog.h"
|
|
||||||
#else
|
|
||||||
#include <iostream>
|
|
||||||
#endif
|
|
||||||
#include "cppcheck.h"
|
#include "cppcheck.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "translationhandler.h"
|
#include "translationhandler.h"
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include "aboutdialog.h"
|
||||||
|
|
||||||
|
#include <QMessageBox>
|
||||||
|
#else
|
||||||
|
#include <iostream>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QCoreApplication>
|
||||||
|
#include <QMetaType>
|
||||||
|
#include <QStringList>
|
||||||
|
#include <QSettings>
|
||||||
|
|
||||||
|
|
||||||
static void ShowUsage();
|
static void ShowUsage();
|
||||||
static void ShowVersion();
|
static void ShowVersion();
|
||||||
|
|
|
@ -18,23 +18,10 @@
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include <QApplication>
|
|
||||||
#include <QDebug>
|
|
||||||
#include <QMessageBox>
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QAction>
|
|
||||||
#include <QActionGroup>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QInputDialog>
|
|
||||||
#include <QTimer>
|
|
||||||
#include <QSettings>
|
|
||||||
|
|
||||||
#include "cppcheck.h"
|
|
||||||
|
|
||||||
#include "applicationlist.h"
|
#include "applicationlist.h"
|
||||||
#include "aboutdialog.h"
|
#include "aboutdialog.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "cppcheck.h"
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
#include "fileviewdialog.h"
|
#include "fileviewdialog.h"
|
||||||
#include "functioncontractdialog.h"
|
#include "functioncontractdialog.h"
|
||||||
|
@ -52,6 +39,18 @@
|
||||||
#include "translationhandler.h"
|
#include "translationhandler.h"
|
||||||
#include "variablecontractsdialog.h"
|
#include "variablecontractsdialog.h"
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QAction>
|
||||||
|
#include <QActionGroup>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QFile>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QInputDialog>
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <QSettings>
|
||||||
|
#include <QTimer>
|
||||||
|
|
||||||
static const QString OnlineHelpURL("https://cppcheck.sourceforge.io/manual.html");
|
static const QString OnlineHelpURL("https://cppcheck.sourceforge.io/manual.html");
|
||||||
static const QString compile_commands_json("compile_commands.json");
|
static const QString compile_commands_json("compile_commands.json");
|
||||||
|
|
||||||
|
|
|
@ -19,13 +19,14 @@
|
||||||
#ifndef MAINWINDOW_H
|
#ifndef MAINWINDOW_H
|
||||||
#define MAINWINDOW_H
|
#define MAINWINDOW_H
|
||||||
|
|
||||||
#include <QMainWindow>
|
#include "ui_mainwindow.h"
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
#include "platforms.h"
|
#include "platforms.h"
|
||||||
#include "ui_mainwindow.h"
|
|
||||||
|
#include <QFileDialog>
|
||||||
|
#include <QMainWindow>
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
class ThreadHandler;
|
class ThreadHandler;
|
||||||
class TranslationHandler;
|
class TranslationHandler;
|
||||||
|
|
|
@ -17,7 +17,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "newsuppressiondialog.h"
|
#include "newsuppressiondialog.h"
|
||||||
|
|
||||||
#include "ui_newsuppressiondialog.h"
|
#include "ui_newsuppressiondialog.h"
|
||||||
|
|
||||||
#include "cppcheck.h"
|
#include "cppcheck.h"
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef NEWSUPPRESSIONDIALOG_H
|
#ifndef NEWSUPPRESSIONDIALOG_H
|
||||||
#define NEWSUPPRESSIONDIALOG_H
|
#define NEWSUPPRESSIONDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include "suppressions.h"
|
#include "suppressions.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class NewSuppressionDialog;
|
class NewSuppressionDialog;
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,10 +19,11 @@
|
||||||
#ifndef PLATFORMS_H
|
#ifndef PLATFORMS_H
|
||||||
#define PLATFORMS_H
|
#define PLATFORMS_H
|
||||||
|
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QList>
|
|
||||||
#include "settings.h"
|
|
||||||
|
|
||||||
class QAction;
|
class QAction;
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
#include "printablereport.h"
|
#include "printablereport.h"
|
||||||
|
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
|
|
||||||
PrintableReport::PrintableReport() :
|
PrintableReport::PrintableReport() :
|
||||||
|
|
|
@ -18,13 +18,13 @@
|
||||||
|
|
||||||
#include "projectfile.h"
|
#include "projectfile.h"
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
#include "importproject.h"
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include "common.h"
|
|
||||||
#include "importproject.h"
|
|
||||||
|
|
||||||
#include "settings.h"
|
|
||||||
|
|
||||||
ProjectFile *ProjectFile::mActiveProject;
|
ProjectFile *ProjectFile::mActiveProject;
|
||||||
|
|
||||||
|
|
|
@ -19,15 +19,15 @@
|
||||||
#ifndef PROJECT_FILE_H
|
#ifndef PROJECT_FILE_H
|
||||||
#define PROJECT_FILE_H
|
#define PROJECT_FILE_H
|
||||||
|
|
||||||
|
#include "settings.h"
|
||||||
|
#include "suppressions.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
#include "suppressions.h"
|
|
||||||
|
|
||||||
#include <settings.h>
|
|
||||||
|
|
||||||
class QXmlStreamReader;
|
class QXmlStreamReader;
|
||||||
class QXmlStreamWriter;
|
class QXmlStreamWriter;
|
||||||
|
|
||||||
|
|
|
@ -18,17 +18,18 @@
|
||||||
|
|
||||||
#include "projectfiledialog.h"
|
#include "projectfiledialog.h"
|
||||||
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QSettings>
|
|
||||||
#include "common.h"
|
|
||||||
#include "newsuppressiondialog.h"
|
|
||||||
#include "checkthread.h"
|
#include "checkthread.h"
|
||||||
#include "projectfile.h"
|
#include "common.h"
|
||||||
#include "library.h"
|
|
||||||
#include "platforms.h"
|
|
||||||
#include "importproject.h"
|
#include "importproject.h"
|
||||||
|
#include "library.h"
|
||||||
|
#include "newsuppressiondialog.h"
|
||||||
|
#include "platforms.h"
|
||||||
|
#include "projectfile.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
#include <QFileDialog>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QSettings>
|
||||||
|
|
||||||
/** Return paths from QListWidget */
|
/** Return paths from QListWidget */
|
||||||
static QStringList getPaths(const QListWidget *list)
|
static QStringList getPaths(const QListWidget *list)
|
||||||
|
|
|
@ -19,13 +19,13 @@
|
||||||
#ifndef PROJECTFILE_DIALOG_H
|
#ifndef PROJECTFILE_DIALOG_H
|
||||||
#define PROJECTFILE_DIALOG_H
|
#define PROJECTFILE_DIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
#include "ui_projectfiledialog.h"
|
||||||
#include <QString>
|
|
||||||
#include <QStringList>
|
|
||||||
|
|
||||||
#include "suppressions.h"
|
#include "suppressions.h"
|
||||||
|
|
||||||
#include "ui_projectfiledialog.h"
|
#include <QDialog>
|
||||||
|
#include <QString>
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
class QWidget;
|
class QWidget;
|
||||||
class QCheckBox;
|
class QCheckBox;
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
#ifndef REPORT_H
|
#ifndef REPORT_H
|
||||||
#define REPORT_H
|
#define REPORT_H
|
||||||
|
|
||||||
|
#include <QFile>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QFile>
|
|
||||||
|
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
|
|
||||||
|
|
|
@ -18,35 +18,36 @@
|
||||||
|
|
||||||
#include "resultstree.h"
|
#include "resultstree.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include "application.h"
|
||||||
#include <QDebug>
|
#include "applicationlist.h"
|
||||||
#include <QList>
|
|
||||||
#include <QMap>
|
|
||||||
#include <QVariant>
|
|
||||||
#include <QMenu>
|
|
||||||
#include <QSignalMapper>
|
|
||||||
#include <QProcess>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QMessageBox>
|
|
||||||
#include <QAction>
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QClipboard>
|
|
||||||
#include <QDesktopServices>
|
|
||||||
#include <QUrl>
|
|
||||||
#include <QKeyEvent>
|
|
||||||
#include <QSettings>
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "applicationlist.h"
|
#include "path.h"
|
||||||
#include "report.h"
|
|
||||||
#include "application.h"
|
|
||||||
#include "projectfile.h"
|
#include "projectfile.h"
|
||||||
|
#include "report.h"
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
#include "threadhandler.h"
|
#include "threadhandler.h"
|
||||||
#include "path.h"
|
|
||||||
#include "xmlreportv2.h"
|
#include "xmlreportv2.h"
|
||||||
|
|
||||||
|
#include <QAction>
|
||||||
|
#include <QApplication>
|
||||||
|
#include <QClipboard>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QDesktopServices>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QFileDialog>
|
||||||
|
#include <QKeyEvent>
|
||||||
|
#include <QList>
|
||||||
|
#include <QMap>
|
||||||
|
#include <QMenu>
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <QProcess>
|
||||||
|
#include <QSettings>
|
||||||
|
#include <QSignalMapper>
|
||||||
|
#include <QUrl>
|
||||||
|
#include <QVariant>
|
||||||
|
|
||||||
static const char COLUMN[] = "column";
|
static const char COLUMN[] = "column";
|
||||||
static const char CWE[] = "cwe";
|
static const char CWE[] = "cwe";
|
||||||
static const char ERRORID[] = "id";
|
static const char ERRORID[] = "id";
|
||||||
|
|
|
@ -20,11 +20,12 @@
|
||||||
#ifndef RESULTSTREE_H
|
#ifndef RESULTSTREE_H
|
||||||
#define RESULTSTREE_H
|
#define RESULTSTREE_H
|
||||||
|
|
||||||
#include <QTreeView>
|
|
||||||
#include <QStandardItemModel>
|
|
||||||
#include "errortypes.h"
|
#include "errortypes.h"
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
|
|
||||||
|
#include <QStandardItemModel>
|
||||||
|
#include <QTreeView>
|
||||||
|
|
||||||
class ApplicationList;
|
class ApplicationList;
|
||||||
class Report;
|
class Report;
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
|
|
|
@ -18,27 +18,28 @@
|
||||||
|
|
||||||
#include "resultsview.h"
|
#include "resultsview.h"
|
||||||
|
|
||||||
#include <QMessageBox>
|
#include "checkstatistics.h"
|
||||||
#include <QStandardItemModel>
|
#include "codeeditorstyle.h"
|
||||||
#include <QVariant>
|
|
||||||
#include <QPrinter>
|
|
||||||
#include <QPrintDialog>
|
|
||||||
#include <QPrintPreviewDialog>
|
|
||||||
#include <QSettings>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QDate>
|
|
||||||
#include <QMenu>
|
|
||||||
#include <QClipboard>
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "csvreport.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
|
#include "path.h"
|
||||||
|
#include "printablereport.h"
|
||||||
#include "txtreport.h"
|
#include "txtreport.h"
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
#include "xmlreportv2.h"
|
#include "xmlreportv2.h"
|
||||||
#include "csvreport.h"
|
|
||||||
#include "printablereport.h"
|
#include <QClipboard>
|
||||||
#include "checkstatistics.h"
|
#include <QDate>
|
||||||
#include "path.h"
|
#include <QDir>
|
||||||
#include "codeeditorstyle.h"
|
#include <QMenu>
|
||||||
|
#include <QMessageBox>
|
||||||
|
#include <QPrintDialog>
|
||||||
|
#include <QPrintPreviewDialog>
|
||||||
|
#include <QPrinter>
|
||||||
|
#include <QSettings>
|
||||||
|
#include <QStandardItemModel>
|
||||||
|
#include <QVariant>
|
||||||
|
|
||||||
ResultsView::ResultsView(QWidget * parent) :
|
ResultsView::ResultsView(QWidget * parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
|
|
|
@ -20,10 +20,10 @@
|
||||||
#ifndef RESULTSVIEW_H
|
#ifndef RESULTSVIEW_H
|
||||||
#define RESULTSVIEW_H
|
#define RESULTSVIEW_H
|
||||||
|
|
||||||
|
#include "ui_resultsview.h"
|
||||||
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "showtypes.h"
|
#include "showtypes.h"
|
||||||
#include "ui_resultsview.h"
|
|
||||||
|
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
class ApplicationList;
|
class ApplicationList;
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "scratchpad.h"
|
#include "scratchpad.h"
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
ScratchPad::ScratchPad(MainWindow& mainWindow)
|
ScratchPad::ScratchPad(MainWindow& mainWindow)
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef SCRATCHPAD_H
|
#ifndef SCRATCHPAD_H
|
||||||
#define SCRATCHPAD_H
|
#define SCRATCHPAD_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include "ui_scratchpad.h"
|
#include "ui_scratchpad.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
|
|
|
@ -18,18 +18,19 @@
|
||||||
|
|
||||||
#include "settingsdialog.h"
|
#include "settingsdialog.h"
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
#include <QList>
|
|
||||||
#include <QFileDialog>
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QThread>
|
|
||||||
#include <QSettings>
|
|
||||||
#include "applicationdialog.h"
|
#include "applicationdialog.h"
|
||||||
#include "applicationlist.h"
|
#include "applicationlist.h"
|
||||||
#include "translationhandler.h"
|
|
||||||
#include "codeeditorstyle.h"
|
#include "codeeditorstyle.h"
|
||||||
#include "codeeditstyledialog.h"
|
#include "codeeditstyledialog.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include "translationhandler.h"
|
||||||
|
|
||||||
|
#include <QFileDialog>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QList>
|
||||||
|
#include <QSettings>
|
||||||
|
#include <QThread>
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
SettingsDialog::SettingsDialog(ApplicationList *list,
|
SettingsDialog::SettingsDialog(ApplicationList *list,
|
||||||
TranslationHandler *translator,
|
TranslationHandler *translator,
|
||||||
|
|
|
@ -20,9 +20,10 @@
|
||||||
#ifndef SETTINGSDIALOG_H
|
#ifndef SETTINGSDIALOG_H
|
||||||
#define SETTINGSDIALOG_H
|
#define SETTINGSDIALOG_H
|
||||||
|
|
||||||
#include <QDialog>
|
|
||||||
#include "ui_settings.h"
|
#include "ui_settings.h"
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
class QSettings;
|
class QSettings;
|
||||||
class QWidget;
|
class QWidget;
|
||||||
class ApplicationList;
|
class ApplicationList;
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
#include <QSettings>
|
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
|
#include <QSettings>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
ShowTypes::ShowTypes()
|
ShowTypes::ShowTypes()
|
||||||
|
|
|
@ -19,10 +19,10 @@
|
||||||
#ifndef SHOWTYPES_H
|
#ifndef SHOWTYPES_H
|
||||||
#define SHOWTYPES_H
|
#define SHOWTYPES_H
|
||||||
|
|
||||||
#include <QVariant>
|
|
||||||
|
|
||||||
#include "errortypes.h"
|
#include "errortypes.h"
|
||||||
|
|
||||||
|
#include <QVariant>
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
|
|
|
@ -18,18 +18,18 @@
|
||||||
|
|
||||||
#include "statsdialog.h"
|
#include "statsdialog.h"
|
||||||
|
|
||||||
#include <QPrinter>
|
#include "checkstatistics.h"
|
||||||
|
#include "common.h"
|
||||||
|
#include "projectfile.h"
|
||||||
|
|
||||||
|
#include <QClipboard>
|
||||||
#include <QDate>
|
#include <QDate>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
#include <QMimeData>
|
||||||
|
#include <QPrinter>
|
||||||
#include <QTextDocument>
|
#include <QTextDocument>
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QClipboard>
|
|
||||||
#include <QMimeData>
|
|
||||||
|
|
||||||
#include "projectfile.h"
|
|
||||||
#include "checkstatistics.h"
|
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
static const QString CPPCHECK("cppcheck");
|
static const QString CPPCHECK("cppcheck");
|
||||||
|
|
||||||
|
|
|
@ -19,11 +19,12 @@
|
||||||
#ifndef STATSDIALOG_H
|
#ifndef STATSDIALOG_H
|
||||||
#define STATSDIALOG_H
|
#define STATSDIALOG_H
|
||||||
|
|
||||||
|
#include "ui_stats.h"
|
||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#ifdef HAVE_QCHART
|
#ifdef HAVE_QCHART
|
||||||
#include <QtCharts>
|
#include <QtCharts>
|
||||||
#endif
|
#endif
|
||||||
#include "ui_stats.h"
|
|
||||||
|
|
||||||
class ProjectFile;
|
class ProjectFile;
|
||||||
class CheckStatistics;
|
class CheckStatistics;
|
||||||
|
|
|
@ -16,15 +16,18 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QString>
|
|
||||||
#include <QByteArray>
|
|
||||||
#include <sstream>
|
|
||||||
#include "benchmarksimple.h"
|
#include "benchmarksimple.h"
|
||||||
#include "tokenize.h"
|
|
||||||
#include "token.h"
|
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
#include "token.h"
|
||||||
|
#include "tokenize.h"
|
||||||
|
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
|
#include <QByteArray>
|
||||||
|
#include <QFile>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
void BenchmarkSimple::tokenize()
|
void BenchmarkSimple::tokenize()
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,10 +16,11 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
|
||||||
#include <QObject>
|
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
class BenchmarkSimple : public QObject, public ErrorLogger {
|
class BenchmarkSimple : public QObject, public ErrorLogger {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
|
||||||
#include "cppchecklibrarydata.h"
|
#include "cppchecklibrarydata.h"
|
||||||
|
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
class TestCppcheckLibraryData : public QObject {
|
class TestCppcheckLibraryData : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,14 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include <QDir>
|
|
||||||
#include <QString>
|
|
||||||
#include "testfilelist.h"
|
#include "testfilelist.h"
|
||||||
|
|
||||||
#include "filelist.h"
|
#include "filelist.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
void TestFileList::addFile()
|
void TestFileList::addFile()
|
||||||
{
|
{
|
||||||
// Accepted extensions: *.cpp, *.cxx, *.cc, *.c, *.c++, *.txx, *.tpp, *.ipp, *.ixx"
|
// Accepted extensions: *.cpp, *.cxx, *.cc, *.c, *.c++, *.txx, *.tpp, *.ipp, *.ixx"
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
class TestFileList : public QObject {
|
class TestFileList : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -16,11 +16,13 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include "testprojectfile.h"
|
#include "testprojectfile.h"
|
||||||
|
|
||||||
#include "projectfile.h"
|
#include "projectfile.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
// Mock...
|
// Mock...
|
||||||
const char Settings::SafeChecks::XmlRootName[] = "safe-checks";
|
const char Settings::SafeChecks::XmlRootName[] = "safe-checks";
|
||||||
const char Settings::SafeChecks::XmlClasses[] = "class-public";
|
const char Settings::SafeChecks::XmlClasses[] = "class-public";
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
class TestProjectFile : public QObject {
|
class TestProjectFile : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -16,10 +16,12 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include "testtranslationhandler.h"
|
#include "testtranslationhandler.h"
|
||||||
|
|
||||||
#include "translationhandler.h"
|
#include "translationhandler.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
static const QStringList getTranslationNames(const TranslationHandler& handler)
|
static const QStringList getTranslationNames(const TranslationHandler& handler)
|
||||||
{
|
{
|
||||||
QStringList names;
|
QStringList names;
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
class TestTranslationHandler : public QObject {
|
class TestTranslationHandler : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -16,10 +16,12 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
#include "testxmlreportv2.h"
|
#include "testxmlreportv2.h"
|
||||||
#include "xmlreportv2.h"
|
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
|
#include "xmlreportv2.h"
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
void TestXmlReportV2::readXml()
|
void TestXmlReportV2::readXml()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,13 +18,14 @@
|
||||||
|
|
||||||
#include "threadhandler.h"
|
#include "threadhandler.h"
|
||||||
|
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QDebug>
|
|
||||||
#include <QSettings>
|
|
||||||
#include "common.h"
|
|
||||||
#include "settings.h"
|
|
||||||
#include "checkthread.h"
|
#include "checkthread.h"
|
||||||
|
#include "common.h"
|
||||||
#include "resultsview.h"
|
#include "resultsview.h"
|
||||||
|
#include "settings.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QFileInfo>
|
||||||
|
#include <QSettings>
|
||||||
|
|
||||||
ThreadHandler::ThreadHandler(QObject *parent) :
|
ThreadHandler::ThreadHandler(QObject *parent) :
|
||||||
QObject(parent),
|
QObject(parent),
|
||||||
|
|
|
@ -20,13 +20,15 @@
|
||||||
#ifndef THREADHANDLER_H
|
#ifndef THREADHANDLER_H
|
||||||
#define THREADHANDLER_H
|
#define THREADHANDLER_H
|
||||||
|
|
||||||
#include <QObject>
|
#include "suppressions.h"
|
||||||
#include <QStringList>
|
#include "threadresult.h"
|
||||||
|
|
||||||
|
#include <set>
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QElapsedTimer>
|
#include <QElapsedTimer>
|
||||||
#include <set>
|
#include <QObject>
|
||||||
#include "threadresult.h"
|
#include <QStringList>
|
||||||
#include "suppressions.h"
|
|
||||||
|
|
||||||
class ResultsView;
|
class ResultsView;
|
||||||
class CheckThread;
|
class CheckThread;
|
||||||
|
|
|
@ -18,11 +18,12 @@
|
||||||
|
|
||||||
#include "threadresult.h"
|
#include "threadresult.h"
|
||||||
|
|
||||||
#include <QFile>
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
|
|
||||||
|
#include <QFile>
|
||||||
|
|
||||||
ThreadResult::ThreadResult() : QObject(), ErrorLogger(), mMaxProgress(0), mProgress(0), mFilesChecked(0), mTotalFiles(0)
|
ThreadResult::ThreadResult() : QObject(), ErrorLogger(), mMaxProgress(0), mProgress(0), mFilesChecked(0), mTotalFiles(0)
|
||||||
{
|
{
|
||||||
//ctor
|
//ctor
|
||||||
|
|
|
@ -20,13 +20,14 @@
|
||||||
#ifndef THREADRESULT_H
|
#ifndef THREADRESULT_H
|
||||||
#define THREADRESULT_H
|
#define THREADRESULT_H
|
||||||
|
|
||||||
#include <QMutex>
|
|
||||||
#include <QObject>
|
|
||||||
#include <QStringList>
|
|
||||||
#include "color.h"
|
#include "color.h"
|
||||||
#include "errorlogger.h"
|
#include "errorlogger.h"
|
||||||
#include "importproject.h"
|
#include "importproject.h"
|
||||||
|
|
||||||
|
#include <QMutex>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
|
|
|
@ -18,13 +18,14 @@
|
||||||
|
|
||||||
#include "translationhandler.h"
|
#include "translationhandler.h"
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
|
#include <QFileInfo>
|
||||||
#include <QLocale>
|
#include <QLocale>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QFileInfo>
|
|
||||||
#include <QTranslator>
|
#include <QTranslator>
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
|
|
||||||
// Provide own translations for standard buttons. This (garbage) code is needed to enforce them to appear in .ts files even after "lupdate gui.pro"
|
// Provide own translations for standard buttons. This (garbage) code is needed to enforce them to appear in .ts files even after "lupdate gui.pro"
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
#ifndef TRANSLATIONHANDLER_H
|
#ifndef TRANSLATIONHANDLER_H
|
||||||
#define TRANSLATIONHANDLER_H
|
#define TRANSLATIONHANDLER_H
|
||||||
|
|
||||||
#include <QStringList>
|
|
||||||
#include <QObject>
|
|
||||||
#include <QList>
|
#include <QList>
|
||||||
|
#include <QObject>
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
class QTranslator;
|
class QTranslator;
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,10 @@
|
||||||
|
|
||||||
#include "txtreport.h"
|
#include "txtreport.h"
|
||||||
|
|
||||||
#include <QDir>
|
|
||||||
#include "erroritem.h"
|
#include "erroritem.h"
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
|
|
||||||
TxtReport::TxtReport(const QString &filename) :
|
TxtReport::TxtReport(const QString &filename) :
|
||||||
Report(filename)
|
Report(filename)
|
||||||
{}
|
{}
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef TXT_REPORT_H
|
#ifndef TXT_REPORT_H
|
||||||
#define TXT_REPORT_H
|
#define TXT_REPORT_H
|
||||||
|
|
||||||
|
#include "report.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QTextStream>
|
#include <QTextStream>
|
||||||
#include "report.h"
|
|
||||||
|
|
||||||
/// @addtogroup GUI
|
/// @addtogroup GUI
|
||||||
/// @{
|
/// @{
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "variablecontractsdialog.h"
|
#include "variablecontractsdialog.h"
|
||||||
|
|
||||||
#include "ui_variablecontractsdialog.h"
|
#include "ui_variablecontractsdialog.h"
|
||||||
|
|
||||||
#include <QRegExpValidator>
|
#include <QRegExpValidator>
|
||||||
|
|
|
@ -18,9 +18,10 @@
|
||||||
|
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
|
|
||||||
|
#include "report.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
#include <QXmlStreamReader>
|
#include <QXmlStreamReader>
|
||||||
#include "report.h"
|
|
||||||
|
|
||||||
static const char ResultElementName[] = "results";
|
static const char ResultElementName[] = "results";
|
||||||
static const char VersionAttribute[] = "version";
|
static const char VersionAttribute[] = "version";
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef XML_REPORT_H
|
#ifndef XML_REPORT_H
|
||||||
#define XML_REPORT_H
|
#define XML_REPORT_H
|
||||||
|
|
||||||
|
#include "report.h"
|
||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include "report.h"
|
|
||||||
|
|
||||||
class ErrorItem;
|
class ErrorItem;
|
||||||
|
|
||||||
|
|
|
@ -18,13 +18,14 @@
|
||||||
|
|
||||||
#include "xmlreportv2.h"
|
#include "xmlreportv2.h"
|
||||||
|
|
||||||
|
#include "cppcheck.h"
|
||||||
|
#include "erroritem.h"
|
||||||
|
#include "report.h"
|
||||||
|
#include "xmlreport.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QXmlStreamWriter>
|
#include <QXmlStreamWriter>
|
||||||
#include <QDebug>
|
|
||||||
#include "report.h"
|
|
||||||
#include "erroritem.h"
|
|
||||||
#include "xmlreport.h"
|
|
||||||
#include "cppcheck.h"
|
|
||||||
|
|
||||||
static const QString ResultElementName = "results";
|
static const QString ResultElementName = "results";
|
||||||
static const QString CppcheckElementName = "cppcheck";
|
static const QString CppcheckElementName = "cppcheck";
|
||||||
|
|
|
@ -19,9 +19,10 @@
|
||||||
#ifndef XML_REPORTV2_H
|
#ifndef XML_REPORTV2_H
|
||||||
#define XML_REPORTV2_H
|
#define XML_REPORTV2_H
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include "xmlreport.h"
|
#include "xmlreport.h"
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
class QXmlStreamReader;
|
class QXmlStreamReader;
|
||||||
class QXmlStreamWriter;
|
class QXmlStreamWriter;
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
|
@ -17,19 +17,22 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
|
|
||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
|
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
#include <QClipboard>
|
#include <QClipboard>
|
||||||
#include <QProcess>
|
|
||||||
#include <QFile>
|
|
||||||
#include <QTextStream>
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QDirIterator>
|
#include <QDirIterator>
|
||||||
#include <QFileInfo>
|
#include <QFile>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QProgressDialog>
|
#include <QFileInfo>
|
||||||
#include <QMimeDatabase>
|
#include <QMimeDatabase>
|
||||||
#include <ctime>
|
#include <QProcess>
|
||||||
#include <cstdlib>
|
#include <QProgressDialog>
|
||||||
|
#include <QTextStream>
|
||||||
|
|
||||||
const QString WORK_FOLDER(QDir::homePath() + "/triage");
|
const QString WORK_FOLDER(QDir::homePath() + "/triage");
|
||||||
const QString DACA2_PACKAGES(QDir::homePath() + "/daca2-packages");
|
const QString DACA2_PACKAGES(QDir::homePath() + "/daca2-packages");
|
||||||
|
|
|
@ -19,9 +19,9 @@
|
||||||
#ifndef MAINWINDOW_H
|
#ifndef MAINWINDOW_H
|
||||||
#define MAINWINDOW_H
|
#define MAINWINDOW_H
|
||||||
|
|
||||||
|
#include <QFileSystemModel>
|
||||||
#include <QMainWindow>
|
#include <QMainWindow>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
#include <QFileSystemModel>
|
|
||||||
|
|
||||||
class QListWidgetItem;
|
class QListWidgetItem;
|
||||||
class QTextStream;
|
class QTextStream;
|
||||||
|
|
Loading…
Reference in New Issue