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