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
2 changes: 1 addition & 1 deletion .github/workflows/iwyu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Prepare CMake
run: |
cmake -S . -B cmake.output -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCPPCHK_GLIBCXX_DEBUG=Off -DUSE_MATCHCOMPILER=Off
cmake -S . -B cmake.output -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DENABLE_CHECK_INTERNAL=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On -DCMAKE_DISABLE_PRECOMPILE_HEADERS=On -DCPPCHK_GLIBCXX_DEBUG=Off -DUSE_MATCHCOMPILER=Off

- name: Prepare CMake dependencies
run: |
Expand Down
5 changes: 5 additions & 0 deletions lib/checkinternal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@

#include "check.h"
#include "config.h"
#include "errortypes.h"
#include "settings.h"

#include <string>

class ErrorLogger;
class Token;
class Tokenizer;

/// @addtogroup Checks
/// @{

Expand Down
2 changes: 1 addition & 1 deletion lib/cppcheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <cstddef>
#include <fstream> // IWYU pragma: keep
#include <functional>
#include <istream>
#include <iosfwd>
#include <list>
#include <map>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions lib/smallvector.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ static constexpr std::size_t DefaultSmallVectorSize = 0;
template<typename T, std::size_t N = DefaultSmallVectorSize>
using SmallVector = boost::container::small_vector<T, N>;
#else
#include <utility>
#include <vector>

template<class T, std::size_t N>
Expand Down
6 changes: 6 additions & 0 deletions lib/tokenrange.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@

#include "config.h"

#include <cstddef>
#include <iterator>
#include <type_traits>

class Token;

template<typename T, REQUIRES("T must be a Token class", std::is_convertible<T*, const Token*> )>
class TokenRangeBase {
T* mFront;
Expand Down
1 change: 0 additions & 1 deletion lib/valueflow.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include "config.h"
#include "mathlib.h"

#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <functional>
Expand Down
1 change: 0 additions & 1 deletion lib/valueptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
//---------------------------------------------------------------------------

#include "config.h"
#include <functional>
#include <memory>

template<class T>
Expand Down