Skip to content

Commit

Permalink
cleaned up includes based on include-what-you-use
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Sep 30, 2024
1 parent 6d56c7f commit 6f9460a
Show file tree
Hide file tree
Showing 25 changed files with 18 additions and 13 deletions.
1 change: 0 additions & 1 deletion cli/cmdlineparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <algorithm>
#include <cassert>
#include <climits>
#include <cstdint>
#include <cstdio>
#include <cstdlib> // EXIT_FAILURE
#include <cstring>
Expand Down
1 change: 0 additions & 1 deletion gui/codeeditstylecontrols.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include <QFont>
#include <QObject>
#include <QPushButton>
#include <QString>

class QWidget;

Expand Down
1 change: 1 addition & 0 deletions gui/codeeditstyledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <QFormLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QString>
#include <QStringList>
#include <QVBoxLayout>
#include <QtGlobal>
Expand Down
2 changes: 1 addition & 1 deletion gui/codeeditstyledialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
#include <QDialog>
#include <QFont>
#include <QObject>
#include <QString>

class CodeEditor;
class SelectColorButton;
class SelectFontWeightCombo;
class QPushButton;
class QWidget;
class QString;

#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
class QStringList;
Expand Down
1 change: 1 addition & 0 deletions gui/helpdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <QHelpContentWidget>
#include <QHelpIndexWidget>
#include <QMessageBox>
#include <QString>
#include <QStringList>
#include <QUrl>
#include <QVBoxLayout>
Expand Down
2 changes: 2 additions & 0 deletions gui/resultsview.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "report.h"
#include "showtypes.h"

#include <cstdint>

#include <QObject>
#include <QString>
#include <QStringList>
Expand Down
1 change: 1 addition & 0 deletions gui/scratchpad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#include <QLineEdit>
#include <QPushButton>
#include <QString>

ScratchPad::ScratchPad(MainWindow& mainWindow)
: QDialog(&mainWindow)
Expand Down
1 change: 0 additions & 1 deletion gui/test/projectfile/testprojectfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include <string>

#include <QDir>
#include <QFile>
#include <QIODevice>
#include <QList>
Expand Down
1 change: 0 additions & 1 deletion gui/test/projectfile/testprojectfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include <QObject>
#include <QString>

class TestProjectFile : public QObject {
Q_OBJECT
Expand Down
1 change: 0 additions & 1 deletion gui/test/translationhandler/testtranslationhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include <QObject>
#include <QString>

class TestTranslationHandler : public QObject {
Q_OBJECT
Expand Down
1 change: 0 additions & 1 deletion gui/test/xmlreportv2/testxmlreportv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/

#include <QObject>
#include <QString>

class TestXmlReportV2 : public QObject {
Q_OBJECT
Expand Down
1 change: 1 addition & 0 deletions lib/addoninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "utils.h"

#include <fstream>
#include <iostream>
#include <string>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions lib/astutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <stack>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

#include "config.h"
Expand Down
1 change: 1 addition & 0 deletions lib/checkersreport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "settings.h"

#include <algorithm>
#include <cstddef>
#include <map>
#include <sstream>
#include <unordered_set>
Expand Down
1 change: 1 addition & 0 deletions lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#include <algorithm> // find_if()
#include <cctype>
#include <cstddef>
#include <cstdint>
#include <list>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions lib/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <cctype>
#include <fstream>
#include <iostream>
#include <sstream>
#include <utility>

Expand Down
1 change: 1 addition & 0 deletions lib/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <map>
#include <mutex>
#include <string>
#include <utility>

enum class SHOWTIME_MODES : std::uint8_t {
SHOWTIME_NONE,
Expand Down
1 change: 0 additions & 1 deletion lib/vfvalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <functional>
#include <string>
#include <type_traits>
#include <utility>
#include <vector>

class Token;
Expand Down
1 change: 1 addition & 0 deletions test/fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <cstddef>
#include <cstdint>
#include <list>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
Expand Down
2 changes: 2 additions & 0 deletions test/testpreprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#include "preprocessor.h"
#include "settings.h"
#include "suppressions.h"
#include "tokenize.h"
#include "tokenlist.h"
#include "fixture.h"
#include "helpers.h"

Expand Down
1 change: 1 addition & 0 deletions test/testprogrammemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "config.h"
#include "fixture.h"
#include "helpers.h"
#include "token.h"
Expand Down
2 changes: 0 additions & 2 deletions test/testsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include "helpers.h"
#include "suppressions.h"



class TestSettings : public TestFixture {
public:
TestSettings() : TestFixture("TestSettings") {}
Expand Down
3 changes: 0 additions & 3 deletions test/testtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@
#include "tokenize.h"

#include <cstddef>
#include <list>
#include <string>
#include <vector>

#include <simplecpp.h>

class TestType : public TestFixture {
public:
TestType() : TestFixture("TestType") {}
Expand Down
1 change: 1 addition & 0 deletions test/testvalueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "errortypes.h"
#include "fixture.h"
#include "helpers.h"
#include "mathlib.h"
Expand Down
1 change: 1 addition & 0 deletions tools/dmake/dmake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <functional>
Expand Down

0 comments on commit 6f9460a

Please sign in to comment.