Skip to content

Commit 646f869

Browse files
authored
cleaned up includes based on include-what-you-use (#6279)
1 parent 686e28d commit 646f869

35 files changed

Lines changed: 76 additions & 83 deletions

Makefile

Lines changed: 52 additions & 52 deletions
Large diffs are not rendered by default.

cli/processexecutor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include <sstream>
4343
#include <sys/select.h>
4444
#include <sys/time.h>
45+
#include <sys/types.h>
4546
#include <sys/wait.h>
4647
#include <unistd.h>
4748
#include <utility>

cli/signalhandler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
//#include <features.h> // __USE_DYNAMIC_STACK_SIZE
3232
#include <map>
3333
#include <string>
34+
#include <sys/types.h>
3435
#include <unistd.h>
3536
#include <utility>
3637

gui/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "cppcheck.h"
2020
#include "common.h"
2121
#include "mainwindow.h"
22-
#include "erroritem.h"
22+
#include "erroritem.h" // IWYU pragma: keep
2323
#include "translationhandler.h"
2424

2525
#ifdef _WIN32

gui/test/projectfile/testprojectfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818

1919
#include "testprojectfile.h"
2020

21-
#include "addoninfo.h"
2221
#include "importproject.h"
2322
#include "platform.h"
2423
#include "projectfile.h"
2524
#include "settings.h"
25+
#include "suppressions.h"
2626

2727
#include <string>
2828

lib/checkclass.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "symboldatabase.h"
2727
#include "errorlogger.h"
2828
#include "errortypes.h"
29+
#include "platform.h"
2930
#include "token.h"
3031
#include "tokenize.h"
3132
#include "tokenlist.h"

lib/checkother.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include <set>
4343
#include <sstream>
4444
#include <utility>
45-
#include <numeric>
4645

4746
//---------------------------------------------------------------------------
4847

lib/cppcheck.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class TokenList;
4343
enum class SHOWTIME_MODES;
4444
struct FileSettings;
4545
class CheckUnusedFunctions;
46+
class Tokenizer;
4647

4748
namespace simplecpp { class TokenList; }
4849

lib/importproject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include "standards.h"
2424
#include "suppressions.h"
2525
#include "token.h"
26-
#include "tokenize.h"
26+
#include "tokenlist.h"
2727
#include "utils.h"
2828

2929
#include <algorithm>

lib/platform.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "standards.h"
2626

2727
#include <climits>
28+
#include <cstddef>
2829
#include <stdexcept>
2930
#include <string>
3031
#include <vector>

0 commit comments

Comments
 (0)