cleaned up includes based on include-what-you-use (#4502)
* iwyu.yml: include internal check sources * cleaned up includes based on include-what-you-use
This commit is contained in:
parent
b973a86ee1
commit
657d9143f7
|
@ -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: |
|
||||
|
|
|
@ -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
|
||||
/// @{
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include <cstddef>
|
||||
#include <fstream> // IWYU pragma: keep
|
||||
#include <functional>
|
||||
#include <istream>
|
||||
#include <iosfwd>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
#include "config.h"
|
||||
#include "mathlib.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstdlib>
|
||||
#include <functional>
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
//---------------------------------------------------------------------------
|
||||
|
||||
#include "config.h"
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
template<class T>
|
||||
|
|
Loading…
Reference in New Issue