Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cli/cppcheckexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "errortypes.h"
#include "filesettings.h"
#include "json.h"
#include "path.h"
#include "settings.h"
#include "singleexecutor.h"
#include "suppressions.h"
Expand Down
4 changes: 0 additions & 4 deletions gui/threadresult.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
#include "errorlogger.h"
#include "errortypes.h"
#include "importproject.h"
#include "path.h"

#include <algorithm>
#include <cstddef>
#include <iterator>
#include <numeric>
#include <utility>

Expand Down
1 change: 0 additions & 1 deletion lib/astutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "checkclass.h"

#include <algorithm>
#include <cassert>
#include <cstring>
#include <functional>
#include <initializer_list>
Expand Down
1 change: 1 addition & 0 deletions lib/checkother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "vfvalue.h"

#include <algorithm> // find_if()
#include <cassert>
#include <cctype>
#include <cstddef>
#include <cstdint>
Expand Down
1 change: 1 addition & 0 deletions lib/checkunusedvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "valueflow.h"

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <list>
#include <set>
Expand Down
3 changes: 0 additions & 3 deletions lib/checkunusedvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "check.h"
#include "config.h"

#include <list>
#include <map>
#include <string>

Expand All @@ -34,8 +33,6 @@ class Settings;
class Token;
class Type;
class Variables;
class Variable;
class Function;
class Tokenizer;

/// @addtogroup Checks
Expand Down
2 changes: 0 additions & 2 deletions lib/cppcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@

#include <simplecpp.h>

class SymbolDatabase;

static constexpr char Version[] = CPPCHECK_VERSION_STRING;
static constexpr char ExtraVersion[] = "";

Expand Down
1 change: 0 additions & 1 deletion lib/cppcheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

#include <cstddef>
#include <cstdint>
#include <fstream>
#include <functional>
#include <list>
#include <memory>
Expand Down
1 change: 0 additions & 1 deletion lib/importproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <fstream>
#include <iostream>
#include <iterator>
#include <sstream>
#include <stack>
#include <unordered_set>
#include <utility>
Expand Down
1 change: 1 addition & 0 deletions lib/pathmatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <algorithm>
#include <stack>
#include <string>
#include <utility>
#include <vector>


Expand Down
1 change: 1 addition & 0 deletions lib/preprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <cassert>
#include <cstddef>
#include <iterator>
#include <memory>
#include <sstream>
#include <utility>

Expand Down
1 change: 0 additions & 1 deletion lib/preprocessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <cstdint>
#include <istream>
#include <list>
#include <map>
#include <set>
#include <string>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion lib/programmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <list>
#include <memory>
#include <stack>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion lib/smallvector.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
static constexpr std::size_t DefaultSmallVectorSize = 3;

#ifdef HAVE_BOOST
#include <boost/container/small_vector.hpp>
#include <boost/container/small_vector.hpp> // IWYU pragma: export

template<typename T, std::size_t N = DefaultSmallVectorSize>
using SmallVector = boost::container::small_vector<T, N>;
Expand Down
1 change: 1 addition & 0 deletions lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <algorithm>
#include <cassert>
#include <cstring>
#include <functional>
#include <initializer_list>
#include <iomanip>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions lib/token.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <cstdint>
#include <cstddef>
#include <functional>
#include <limits>
#include <list>
#include <memory>
#include <ostream>
Expand Down
2 changes: 1 addition & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <ctime>
#include <iostream>
#include <iterator>
#include <exception>
#include <limits>
#include <memory>
#include <set>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion lib/tokenlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "standards.h"

#include <cstddef>
#include <iosfwd>
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
Expand Down
1 change: 0 additions & 1 deletion lib/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

#include <algorithm>
#include <cctype>
#include <iterator>
#include <stack>
#include <utility>

Expand Down
3 changes: 1 addition & 2 deletions test/fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "color.h"
#include "config.h"
#include "errorlogger.h"
#include "errortypes.h"
#include "platform.h"
#include "settings.h"
#include "standards.h"
Expand All @@ -41,8 +42,6 @@

class options;
class Tokenizer;
enum class Certainty : std::uint8_t;
enum class Severity : std::uint8_t;

class TestFixture : public ErrorLogger {
private:
Expand Down
1 change: 1 addition & 0 deletions test/testclangimport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "clangimport.h"
#include "fixture.h"
#include "mathlib.h"
#include "platform.h"
#include "settings.h"
#include "standards.h"
Expand Down
1 change: 0 additions & 1 deletion test/testcppcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include "suppressions.h"

#include <algorithm>
#include <cstddef>
#include <cstdlib>
#include <list>
#include <sstream>
Expand Down
1 change: 1 addition & 0 deletions test/testexecutor.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 "errorlogger.h"
#include "errortypes.h"
#include "executor.h"
Expand Down
1 change: 1 addition & 0 deletions test/testincompletestatement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "settings.h"
#include "fixture.h"

#include <cstddef>
#include <string>

class TestIncompleteStatement : public TestFixture {
Expand Down
1 change: 0 additions & 1 deletion test/testlibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <cstddef>
#include <cstdint>
#include <map>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
Expand Down
1 change: 1 addition & 0 deletions test/testother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "standards.h"

#include <cstddef>
#include <sstream>
#include <string>

static std::string unionZeroInitMessage(int lno, int cno, const std::string &varName, const std::string &largestMemberName)
Expand Down
3 changes: 3 additions & 0 deletions test/testprogrammemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@
#include "helpers.h"
#include "token.h"
#include "programmemory.h"
#include "utils.h"
#include "vfvalue.h"

#include <stdexcept>

class TestProgramMemory : public TestFixture {
public:
TestProgramMemory() : TestFixture("TestProgramMemory") {}
Expand Down
1 change: 1 addition & 0 deletions test/testregex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "regex.h"

#include <list>
#include <memory>
#include <string>
#include <utility>

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

#include <cstddef>
#include <string>

class TestString : public TestFixture {
Expand Down
1 change: 1 addition & 0 deletions test/testsuppressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "suppressions.h"
#include "threadexecutor.h"

#include <cstdint>
#include <cstring>
#include <list>
#include <map>
Expand Down
1 change: 1 addition & 0 deletions test/testuninitvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "helpers.h"
#include "settings.h"

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

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

#include <cstddef>
#include <string>

class TestUnusedPrivateFunction : public TestFixture {
Expand Down
1 change: 1 addition & 0 deletions test/testunusedvar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "preprocessor.h"
#include "settings.h"

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

Expand Down