Skip to content

Commit ce16b8d

Browse files
authored
cleaned up includes based on include-what-you-use (danmar#7033)
1 parent 09b5f4d commit ce16b8d

31 files changed

+24
-64
lines changed

cli/cppcheckexecutor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
#include <algorithm>
4545
#include <cassert>
46+
#include <cstdint>
4647
#include <cstdio>
4748
#include <cstdlib> // EXIT_SUCCESS and EXIT_FAILURE
4849
#include <ctime>

cli/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
#include <cstdlib>
6666
#include <exception>
6767
#include <iostream>
68-
#include <string>
6968
#endif
7069

7170
/**

cli/threadexecutor.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@
3838
#include <utility>
3939
#include <vector>
4040

41-
enum class Color : std::uint8_t;
42-
4341
ThreadExecutor::ThreadExecutor(const std::list<FileWithDetails> &files, const std::list<FileSettings>& fileSettings, const Settings &settings, SuppressionList &suppressions, ErrorLogger &errorLogger, CppCheck::ExecuteCmdFn executeCommand)
4442
: Executor(files, fileSettings, settings, suppressions, errorLogger)
4543
, mExecuteCommand(std::move(executeCommand))

gui/codeeditor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
class CodeEditorStyle;
3636
class QPaintEvent;
3737
class QRect;
38-
class QResizeEvent;
3938
class QTextDocument;
4039

4140
class Highlighter : public QSyntaxHighlighter {

gui/csvreport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#include <QString>
2525
#include <QTextStream>
2626

27-
class ErrorItem;
28-
2927
/// @addtogroup GUI
3028
/// @{
3129

gui/helpdialog.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <QVariant>
2626

2727
class QHelpEngine;
28-
class QUrl;
2928
class QWidget;
3029
namespace Ui {
3130
class HelpDialog;

gui/mainwindow.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class QSettings;
4242
class QTimer;
4343
class QLineEdit;
4444
class ImportProject;
45-
class QCloseEvent;
4645
class QNetworkAccessManager;
4746
class QNetworkReply;
4847
class Settings;

gui/newsuppressiondialog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <QStringList>
3434

3535
class QWidget;
36-
enum class Color : std::uint8_t;
3736

3837
NewSuppressionDialog::NewSuppressionDialog(QWidget *parent) :
3938
QDialog(parent),

gui/printablereport.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323

2424
#include <QString>
2525

26-
class ErrorItem;
27-
2826
/// @addtogroup GUI
2927
/// @{
3028

gui/resultstree.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ class QModelIndex;
3939
class QWidget;
4040
class QItemSelectionModel;
4141
class ThreadHandler;
42-
class QContextMenuEvent;
43-
class QKeyEvent;
4442
class QSettings;
4543
enum class Severity : std::uint8_t;
4644

0 commit comments

Comments
 (0)