iwyu.yml: use `debian:unstable` to always get latest include-what-you-use / cleaned up includes (#4466)

* iwyu.yml: use debian:unstable to always get latest include-what-you-use

* cleaned up includes based on include-what-you-use

* mitigated include-what-you-use false positives
This commit is contained in:
Oliver Stöneberg 2022-09-16 07:15:49 +02:00 committed by GitHub
parent d6aab96734
commit b3ec225480
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
82 changed files with 78 additions and 117 deletions

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
container: container:
image: "kalilinux/kali-rolling" image: "debian:unstable" # use latest debian image to get latest include-what-you-get
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -40,7 +40,7 @@
#include <iostream> #include <iostream>
#include <list> #include <list>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility> #include <utility>
#ifdef HAVE_RULES #ifdef HAVE_RULES

View File

@ -48,7 +48,7 @@
#include <iostream> #include <iostream>
#include <list> #include <list>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -19,7 +19,7 @@
#ifndef CPPCHECKEXECUTORSEH_H #ifndef CPPCHECKEXECUTORSEH_H
#define CPPCHECKEXECUTORSEH_H #define CPPCHECKEXECUTORSEH_H
#include "config.h" #include "config.h" // IWYU pragma: keep
#ifdef USE_WINDOWS_SEH #ifdef USE_WINDOWS_SEH

View File

@ -39,7 +39,7 @@
#include <functional> #include <functional>
#include <iostream> #include <iostream>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <sys/select.h> #include <sys/select.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>

View File

@ -18,6 +18,8 @@
#include "application.h" #include "application.h"
#include <utility>
Application::Application(QString name, QString path, Application::Application(QString name, QString path,
QString params) QString params)
: mName(std::move(name)) : mName(std::move(name))

View File

@ -19,6 +19,7 @@
#include "cppchecklibrarydata.h" #include "cppchecklibrarydata.h"
#include <stdexcept> #include <stdexcept>
#include <string>
#include <QXmlStreamReader> #include <QXmlStreamReader>
#include <QVariant> #include <QVariant>

View File

@ -20,6 +20,7 @@
#define ERRORITEM_H #define ERRORITEM_H
#include "errorlogger.h" #include "errorlogger.h"
#include "errortypes.h"
#include <QList> #include <QList>
#include <QMetaType> #include <QMetaType>

View File

@ -24,6 +24,7 @@
#include <cstddef> #include <cstddef>
#include <map> #include <map>
#include <utility>
#include <QObject> #include <QObject>
#include <QString> #include <QString>

View File

@ -18,6 +18,8 @@
#include "report.h" #include "report.h"
#include <utility>
Report::Report(QString filename) : Report::Report(QString filename) :
QObject(), QObject(),
mFilename(std::move(filename)) mFilename(std::move(filename))

View File

@ -21,6 +21,7 @@
#include "application.h" #include "application.h"
#include "applicationlist.h" #include "applicationlist.h"
#include "common.h" #include "common.h"
#include "config.h"
#include "erroritem.h" #include "erroritem.h"
#include "path.h" #include "path.h"
#include "projectfile.h" #include "projectfile.h"

View File

@ -34,6 +34,7 @@
#include "checkclass.h" #include "checkclass.h"
#include <algorithm> #include <algorithm>
#include <cassert>
#include <functional> #include <functional>
#include <initializer_list> #include <initializer_list>
#include <iterator> #include <iterator>

View File

@ -28,6 +28,7 @@
#include <cctype> #include <cctype>
#include <iostream> #include <iostream>
#include <utility>
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@ -37,7 +37,6 @@
#include <limits> #include <limits>
#include <list> #include <list>
#include <memory> #include <memory>
#include <ostream>
#include <set> #include <set>
#include <sstream> #include <sstream>
#include <utility> #include <utility>

View File

@ -31,7 +31,6 @@
#include "valueflow.h" #include "valueflow.h"
#include <iomanip> #include <iomanip>
#include <ostream>
#include <sstream> #include <sstream>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>

View File

@ -35,7 +35,7 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -39,7 +39,6 @@
#include <list> #include <list>
#include <map> #include <map>
#include <memory> #include <memory>
#include <ostream>
#include <set> #include <set>
#include <sstream> #include <sstream>
#include <utility> #include <utility>

View File

@ -31,7 +31,6 @@
#include <cmath> #include <cmath>
#include <list> #include <list>
#include <ostream>
#include <sstream> #include <sstream>
#include <vector> #include <vector>

View File

@ -34,9 +34,8 @@
#include <cctype> #include <cctype>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <istream>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -26,7 +26,6 @@
#include "tokenize.h" #include "tokenize.h"
#include <cstddef> #include <cstddef>
#include <list>
#include <vector> #include <vector>
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------

View File

@ -37,7 +37,7 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <string> #include <string>
#include <utility> #include <utility>

View File

@ -49,7 +49,7 @@
#include <memory> #include <memory>
#include <new> #include <new>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
#include <utility> #include <utility>

View File

@ -33,7 +33,6 @@
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include <iterator> // back_inserter #include <iterator> // back_inserter
#include <ostream>
#include <sstream> #include <sstream>
#include <utility> #include <utility>

View File

@ -33,7 +33,7 @@
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>

View File

@ -32,7 +32,7 @@
#include <fstream> // IWYU pragma: keep #include <fstream> // IWYU pragma: keep
#include <iostream> #include <iostream>
#include <iterator> #include <iterator>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility> #include <utility>
#include <tinyxml2.h> #include <tinyxml2.h>

View File

@ -31,10 +31,9 @@
#include <climits> #include <climits>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <iosfwd>
#include <list> #include <list>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <string> #include <string>

View File

@ -19,12 +19,14 @@
#if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__)) #if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__))
#undef __STRICT_ANSI__ #undef __STRICT_ANSI__
#endif #endif
#include "path.h" #include "path.h"
#include "utils.h" #include "utils.h"
#include <algorithm> #include <algorithm>
#include <cstdlib> #include <cstdlib>
#include <fstream> #include <fstream>
#include <utility>
#ifndef _WIN32 #ifndef _WIN32
#include <unistd.h> #include <unistd.h>

View File

@ -31,7 +31,7 @@
#include <cstddef> #include <cstddef>
#include <iterator> // back_inserter #include <iterator> // back_inserter
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility> #include <utility>
#include <simplecpp.h> #include <simplecpp.h>

View File

@ -26,9 +26,10 @@
#include "tokenlist.h" #include "tokenlist.h"
#include <algorithm> #include <algorithm>
#include <fstream> #include <fstream> // IWYU pragma: keep
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility>
#include <vector> #include <vector>

View File

@ -31,7 +31,8 @@
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <functional> // std::bind, std::placeholders #include <functional> // std::bind, std::placeholders
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <utility>
#include <tinyxml2.h> #include <tinyxml2.h>

View File

@ -41,7 +41,7 @@
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <limits> #include <limits>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <string> #include <string>
#include <type_traits> #include <type_traits>

View File

@ -32,7 +32,7 @@
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <utility> #include <utility>

View File

@ -40,7 +40,7 @@
#include <iterator> #include <iterator>
#include <map> #include <map>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -44,7 +44,7 @@
#include <exception> #include <exception>
#include <memory> #include <memory>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <stdexcept> #include <stdexcept>
#include <type_traits> #include <type_traits>

View File

@ -31,7 +31,6 @@
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstring>
#include <exception> #include <exception>
#include <functional> #include <functional>
#include <utility> #include <utility>

View File

@ -105,7 +105,6 @@
#include <array> #include <array>
#include <cassert> #include <cassert>
#include <climits> #include <climits>
#include <cmath>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <exception> #include <exception>

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class Test64BitPortability : public TestFixture { class Test64BitPortability : public TestFixture {
public: public:

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestAssert : public TestFixture { class TestAssert : public TestFixture {

View File

@ -26,8 +26,7 @@
#include "tokenlist.h" #include "tokenlist.h"
#include <cstring> #include <cstring>
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestAstUtils : public TestFixture { class TestAstUtils : public TestFixture {
public: public:

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestAutoVariables : public TestFixture { class TestAutoVariables : public TestFixture {
public: public:

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestBool : public TestFixture { class TestBool : public TestFixture {
public: public:

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestBoost : public TestFixture { class TestBoost : public TestFixture {
public: public:

View File

@ -28,10 +28,9 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -24,8 +24,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestCharVar : public TestFixture { class TestCharVar : public TestFixture {
public: public:

View File

@ -23,10 +23,9 @@
#include "testsuite.h" #include "testsuite.h"
#include <cstdint> #include <cstdint>
#include <iosfwd>
#include <list> #include <list>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -24,9 +24,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -27,6 +27,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "timer.h" #include "timer.h"
#include <cstdio>
#include <list> #include <list>
#include <set> #include <set>
#include <string> #include <string>

View File

@ -25,9 +25,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -24,9 +24,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestExceptionSafety : public TestFixture { class TestExceptionSafety : public TestFixture {
public: public:

View File

@ -24,9 +24,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <tinyxml2.h> #include <tinyxml2.h>

View File

@ -24,9 +24,8 @@
#include "token.h" #include "token.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -20,11 +20,10 @@
#include "settings.h" #include "settings.h"
#include "testsuite.h" #include "testsuite.h"
#include <iosfwd>
#include <list> #include <list>
#include <memory> #include <memory>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -22,9 +22,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -25,8 +25,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestIO : public TestFixture { class TestIO : public TestFixture {

View File

@ -24,9 +24,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -26,9 +26,8 @@
#include "tokenize.h" #include "tokenize.h"
#include "tokenlist.h" #include "tokenlist.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>

View File

@ -24,10 +24,9 @@
#include "token.h" #include "token.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
class TestMemleakInClass; class TestMemleakInClass;

View File

@ -26,10 +26,9 @@
#include "token.h" #include "token.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>

View File

@ -26,9 +26,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestPostfixOperator : public TestFixture { class TestPostfixOperator : public TestFixture {
public: public:

View File

@ -30,12 +30,11 @@
#include <atomic> #include <atomic>
#include <cstring> #include <cstring>
#include <iosfwd>
#include <list> #include <list>
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -21,11 +21,11 @@
#include "settings.h" #include "settings.h"
#include "testsuite.h" #include "testsuite.h"
#include "testutils.h" #include "testutils.h"
#include "timer.h"
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>
#include <map> #include <map>
#include <ostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <utility> #include <utility>

View File

@ -27,8 +27,7 @@
#include "tokenlist.h" #include "tokenlist.h"
#include <cstring> #include <cstring>
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -24,8 +24,7 @@
#include "token.h" #include "token.h"
#include "tokenize.h" #include "tokenize.h"
#include <istream> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>

View File

@ -24,8 +24,7 @@
#include "token.h" #include "token.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>

View File

@ -22,9 +22,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -24,8 +24,7 @@
#include "tokenize.h" #include "tokenize.h"
#include <cstddef> #include <cstddef>
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestString : public TestFixture { class TestString : public TestFixture {

View File

@ -22,8 +22,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>

View File

@ -31,11 +31,10 @@
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <functional> #include <functional>
#include <iosfwd>
#include <list> #include <list>
#include <map> #include <map>
#include <memory> #include <memory>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -21,11 +21,11 @@
#include "testsuite.h" #include "testsuite.h"
#include "testutils.h" #include "testutils.h"
#include "threadexecutor.h" #include "threadexecutor.h"
#include "timer.h"
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>
#include <map> #include <map>
#include <ostream>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <utility> #include <utility>

View File

@ -25,8 +25,7 @@
#include "valueflow.h" #include "valueflow.h"
#include <algorithm> #include <algorithm>
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -21,8 +21,7 @@
#include "token.h" #include "token.h"
#include "tokenlist.h" #include "tokenlist.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>
class TestTokenList : public TestFixture { class TestTokenList : public TestFixture {

View File

@ -27,7 +27,6 @@
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <list> #include <list>
#include <ostream>
#include <sstream> #include <sstream>
#include <string> #include <string>

View File

@ -24,8 +24,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>
class TestType : public TestFixture { class TestType : public TestFixture {

View File

@ -23,9 +23,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <map> #include <map>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -23,9 +23,8 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd>
#include <list> #include <list>
#include <sstream> #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
class TestUnusedVar : public TestFixture { class TestUnusedVar : public TestFixture {

View File

@ -27,10 +27,8 @@
#include "tokenlist.h" #include "tokenlist.h"
#include <cstdio> #include <cstdio>
#include <iosfwd>
#include <list> #include <list>
#include <ostream> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>
class Token; class Token;

View File

@ -23,8 +23,7 @@
#include "testsuite.h" #include "testsuite.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
class TestVaarg : public TestFixture { class TestVaarg : public TestFixture {
public: public:

View File

@ -34,7 +34,6 @@
#include <list> #include <list>
#include <map> #include <map>
#include <memory> #include <memory>
#include <ostream>
#include <set> #include <set>
#include <sstream> #include <sstream>
#include <string> #include <string>

View File

@ -24,8 +24,7 @@
#include "token.h" #include "token.h"
#include "tokenize.h" #include "tokenize.h"
#include <iosfwd> #include <sstream> // IWYU pragma: keep
#include <sstream>
#include <string> #include <string>
struct InternalError; struct InternalError;