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
container:
image: "kalilinux/kali-rolling"
image: "debian:unstable" # use latest debian image to get latest include-what-you-get
steps:
- uses: actions/checkout@v2

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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