Skip to content

Commit 2c1e36e

Browse files
authored
cleaned up includes based on include-what-you-use (danmar#2600)
* cleaned up includes based on include-what-you-use * check.h: trying to work around Visual Studio 2012 bug * fixed Visual Studio compilation
1 parent 5c02eea commit 2c1e36e

60 files changed

Lines changed: 98 additions & 84 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cli/cppcheckexecutor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "pathmatch.h"
3030
#include "preprocessor.h"
3131
#include "settings.h"
32-
#include "standards.h"
3332
#include "suppressions.h"
3433
#include "threadexecutor.h"
3534
#include "utils.h"

cli/threadexecutor.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#ifndef THREADEXECUTOR_H
2020
#define THREADEXECUTOR_H
2121

22+
#include "config.h"
2223
#include "errorlogger.h"
23-
#include "importproject.h"
2424

2525
#include <cstddef>
2626
#include <list>
@@ -32,6 +32,8 @@
3232
#elif defined(_WIN32)
3333
#define THREADING_MODEL_WIN
3434
#include <windows.h>
35+
36+
#include "importproject.h"
3537
#endif
3638

3739
class Settings;

gui/checkthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
#include <QThread>
2424
#include "cppcheck.h"
25-
#include "threadresult.h"
2625
#include "suppressions.h"
2726

2827
class Settings;
28+
class ThreadResult;
2929

3030
/// @addtogroup GUI
3131
/// @{

gui/codeeditor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <QtWidgets>
22
#include <QShortcut>
33
#include "codeeditor.h"
4+
#include "codeeditorstyle.h"
45

56

67
Highlighter::Highlighter(QTextDocument *parent,

gui/codeeditor.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
#include <QPlainTextEdit>
66
#include <QObject>
77
#include <QRegularExpression>
8-
#include "codeeditorstyle.h"
98

9+
class CodeEditorStyle;
1010
class QPaintEvent;
1111
class QResizeEvent;
1212
class QSize;
1313
class QWidget;
1414

15-
class LineNumberArea;
16-
17-
1815
class Highlighter : public QSyntaxHighlighter {
1916
Q_OBJECT
2017

gui/codeeditstyledialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19+
#include "codeeditor.h"
1920
#include "codeeditstyledialog.h"
21+
#include "codeeditstylecontrols.h"
2022
#include <QHBoxLayout>
2123
#include <QVBoxLayout>
2224
#include <QFormLayout>

gui/codeeditstyledialog.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121

2222
#include <QDialog>
2323
#include <QPushButton>
24-
#include "codeeditstylecontrols.h"
25-
#include "codeeditor.h"
2624
#include "codeeditorstyle.h"
2725

26+
class CodeEditor;
27+
class SelectColorButton;
28+
class SelectFontWeightCombo;
29+
2830
class StyleEditDialog : public QDialog {
2931
Q_OBJECT
3032
public:

gui/csvreport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <QString>
2121
#include <QDir>
2222
#include <QTextStream>
23+
#include "erroritem.h"
2324
#include "report.h"
2425
#include "csvreport.h"
2526

gui/erroritem.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
#include <QMetaType>
2525
#include "errorlogger.h"
2626

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

gui/printablereport.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818

19+
#include "erroritem.h"
1920
#include "printablereport.h"
2021
#include <QDir>
2122

0 commit comments

Comments
 (0)