cleaned up includes based on include-what-you-use / iwyu.yml: updated to yet another distro to get the latest version and updated the Chaotic-AUR key (#5267)

This is a mess. The version is AUR is still outdated and also doesn't
install anymore. Fedora 38 carries the latest version of it so use that
now. Keep the old steps in case we need to switch again in the future.
This commit is contained in:
Oliver Stöneberg 2023-08-02 10:36:17 +02:00 committed by GitHub
parent 389e446dc0
commit 45de338f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
53 changed files with 90 additions and 75 deletions

View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
container: container:
image: "archlinux:latest" image: "fedora:latest"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -34,8 +34,8 @@ jobs:
pacman -Sy pacman -Sy
pacman -S cmake make gcc qt5-base qt5-tools qt5-charts pcre wget --noconfirm pacman -S cmake make gcc qt5-base qt5-tools qt5-charts pcre wget --noconfirm
pacman-key --init pacman-key --init
pacman-key --recv-key FBA220DFC880C036 --keyserver keyserver.ubuntu.com pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key FBA220DFC880C036 pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' --noconfirm
echo "[chaotic-aur]" >> /etc/pacman.conf echo "[chaotic-aur]" >> /etc/pacman.conf
echo "Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf echo "Include = /etc/pacman.d/chaotic-mirrorlist" >> /etc/pacman.conf
@ -43,6 +43,14 @@ jobs:
pacman -S include-what-you-use --noconfirm pacman -S include-what-you-use --noconfirm
ln -s iwyu-tool /usr/sbin/iwyu_tool ln -s iwyu-tool /usr/sbin/iwyu_tool
# TODO: the necessary packages are excessive - mostly because of Qt - use a pre-built image
- name: Install missing software on Fedora
run: |
dnf install -y cmake gcc-c++ qt5-qtbase-devel qt5-linguist qt5-qttools-devel qt5-qtcharts-devel pcre-devel
dnf install -y wget iwyu
ln -s iwyu_tool.py /usr/bin/iwyu_tool
ln -s qt5 /usr/include/qt
- name: Prepare CMake - name: Prepare CMake
run: | run: |
cmake -S . -B cmake.output -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=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 cmake -S . -B cmake.output -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=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

View File

@ -667,7 +667,7 @@ cli/stacktrace.o: cli/stacktrace.cpp cli/stacktrace.h lib/config.h lib/utils.h
cli/threadexecutor.o: cli/threadexecutor.cpp cli/cppcheckexecutor.h cli/executor.h cli/threadexecutor.h lib/analyzerinfo.h lib/check.h lib/color.h lib/config.h lib/cppcheck.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/utils.h cli/threadexecutor.o: cli/threadexecutor.cpp cli/cppcheckexecutor.h cli/executor.h cli/threadexecutor.h lib/analyzerinfo.h lib/check.h lib/color.h lib/config.h lib/cppcheck.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/utils.h
$(CXX) ${INCLUDE_FOR_CLI} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ cli/threadexecutor.cpp $(CXX) ${INCLUDE_FOR_CLI} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ cli/threadexecutor.cpp
test/fixture.o: test/fixture.cpp externals/tinyxml2/tinyxml2.h lib/check.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/path.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/utils.h test/fixture.h test/options.h test/redirect.h test/fixture.o: test/fixture.cpp externals/tinyxml2/tinyxml2.h lib/check.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/utils.h test/fixture.h test/options.h test/redirect.h
$(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ test/fixture.cpp $(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ test/fixture.cpp
test/helpers.o: test/helpers.cpp externals/simplecpp/simplecpp.h lib/config.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/path.h lib/platform.h lib/preprocessor.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/helpers.h test/helpers.o: test/helpers.cpp externals/simplecpp/simplecpp.h lib/config.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/path.h lib/platform.h lib/preprocessor.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/helpers.h
@ -862,7 +862,7 @@ test/testunusedprivfunc.o: test/testunusedprivfunc.cpp externals/simplecpp/simpl
test/testunusedvar.o: test/testunusedvar.cpp externals/simplecpp/simplecpp.h lib/check.h lib/checkunusedvar.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/preprocessor.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/fixture.h test/testunusedvar.o: test/testunusedvar.cpp externals/simplecpp/simplecpp.h lib/check.h lib/checkunusedvar.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/preprocessor.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/fixture.h
$(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ test/testunusedvar.cpp $(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ test/testunusedvar.cpp
test/testutils.o: test/testutils.cpp lib/check.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/fixture.h test/helpers.h test/testutils.o: test/testutils.cpp lib/check.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/utils.h test/fixture.h
$(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ test/testutils.cpp $(CXX) ${INCLUDE_FOR_TEST} $(CPPFLAGS) $(CXXFLAGS) -c -o $@ test/testutils.cpp
test/testvaarg.o: test/testvaarg.cpp lib/check.h lib/checkvaarg.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/fixture.h test/testvaarg.o: test/testvaarg.cpp lib/check.h lib/checkvaarg.h lib/color.h lib/config.h lib/errorlogger.h lib/errortypes.h lib/importproject.h lib/library.h lib/mathlib.h lib/platform.h lib/settings.h lib/standards.h lib/suppressions.h lib/templatesimplifier.h lib/token.h lib/tokenize.h lib/tokenlist.h lib/utils.h lib/vfvalue.h test/fixture.h

View File

@ -44,7 +44,6 @@
#include <list> #include <list>
#include <set> #include <set>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <stdexcept>
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
@ -53,10 +52,6 @@
#include <tinyxml2.h> #include <tinyxml2.h>
#endif #endif
#ifdef __linux__
#include <unistd.h>
#endif
static bool addFilesToList(const std::string& fileList, std::vector<std::string>& pathNames) static bool addFilesToList(const std::string& fileList, std::vector<std::string>& pathNames)
{ {
std::istream *files; std::istream *files;

View File

@ -19,6 +19,7 @@
#ifndef CMDLINE_PARSER_H #ifndef CMDLINE_PARSER_H
#define CMDLINE_PARSER_H #define CMDLINE_PARSER_H
#include <cstddef>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -1,3 +1,21 @@
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2023 Cppcheck team.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "compliancereportdialog.h" #include "compliancereportdialog.h"
#include "ui_compliancereportdialog.h" #include "ui_compliancereportdialog.h"
@ -16,6 +34,7 @@
#include <QByteArray> #include <QByteArray>
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox>
#include <QCoreApplication> #include <QCoreApplication>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QDir> #include <QDir>

View File

@ -1,3 +1,21 @@
/*
* Cppcheck - A tool for static C/C++ code analysis
* Copyright (C) 2007-2023 Cppcheck team.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef COMPLIANCEREPORTDIALOG_H #ifndef COMPLIANCEREPORTDIALOG_H
#define COMPLIANCEREPORTDIALOG_H #define COMPLIANCEREPORTDIALOG_H

View File

@ -25,8 +25,6 @@
#include "ui_librarydialog.h" #include "ui_librarydialog.h"
#include <string>
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox> #include <QComboBox>
#include <QFile> #include <QFile>

View File

@ -23,7 +23,6 @@
#include "importproject.h" #include "importproject.h"
#include "settings.h" #include "settings.h"
#include <string>
#include <utility> #include <utility>
#include <QFile> #include <QFile>

View File

@ -34,16 +34,13 @@
#include <string> #include <string>
#include <QByteArray> #include <QByteArray>
#include <QChar>
#include <QCheckBox> #include <QCheckBox>
#include <QComboBox> #include <QComboBox>
#include <QCoreApplication> #include <QCoreApplication>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QDir> #include <QDir>
#include <QFile>
#include <QFileDialog> #include <QFileDialog>
#include <QFileInfo> #include <QFileInfo>
#include <QFileInfoList>
#include <QFlags> #include <QFlags>
#include <QLabel> #include <QLabel>
#include <QLineEdit> #include <QLineEdit>

View File

@ -31,8 +31,6 @@
#include "threadhandler.h" #include "threadhandler.h"
#include "xmlreportv2.h" #include "xmlreportv2.h"
#include <string>
#include <QAction> #include <QAction>
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>

View File

@ -34,7 +34,6 @@
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <iterator> #include <iterator>
#include <utility> #include <utility>

View File

@ -28,7 +28,6 @@
#include "tokenize.h" #include "tokenize.h"
#include <algorithm> #include <algorithm>
#include <unordered_set>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -21,6 +21,7 @@
#include "checksizeof.h" #include "checksizeof.h"
#include "errortypes.h" #include "errortypes.h"
#include "library.h"
#include "settings.h" #include "settings.h"
#include "symboldatabase.h" #include "symboldatabase.h"
#include "token.h" #include "token.h"

View File

@ -33,7 +33,6 @@
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <fstream> // IWYU pragma: keep #include <fstream> // IWYU pragma: keep
#include <map> #include <map>

View File

@ -30,7 +30,6 @@
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>
#include <iterator> #include <iterator>

View File

@ -30,7 +30,6 @@
#include <array> #include <array>
#include <cassert> #include <cassert>
#include <cctype> #include <cctype>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep

View File

@ -31,12 +31,12 @@
#include <algorithm> #include <algorithm>
#include <cctype> #include <cctype>
#include <climits> #include <climits>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <list> #include <list>
#include <memory> #include <memory>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>
#include <stdexcept>
#include <string> #include <string>
#include <tinyxml2.h> #include <tinyxml2.h>

View File

@ -23,7 +23,6 @@
#include "vfvalue.h" #include "vfvalue.h"
#include <fstream> #include <fstream>
#include <utility>
#define PICOJSON_USE_INT64 #define PICOJSON_USE_INT64
#include <picojson.h> #include <picojson.h>

View File

@ -28,7 +28,6 @@
#include <algorithm> #include <algorithm>
#include <cctype> // std::isdigit, std::isalnum, etc #include <cctype> // std::isdigit, std::isalnum, etc
#include <cstdlib>
#include <cstring> #include <cstring>
#include <functional> // std::bind, std::placeholders #include <functional> // std::bind, std::placeholders
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep

View File

@ -42,6 +42,7 @@
#include <initializer_list> #include <initializer_list>
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <iterator>
#include <limits> #include <limits>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <stack> #include <stack>

View File

@ -33,7 +33,6 @@
#include <cctype> #include <cctype>
#include <climits> #include <climits>
#include <cstdio> #include <cstdio>
#include <cstdint>
#include <cstring> #include <cstring>
#include <functional> #include <functional>
#include <iostream> #include <iostream>

View File

@ -27,6 +27,7 @@
#include "utils.h" #include "utils.h"
#include "vfvalue.h" #include "vfvalue.h"
#include <cassert>
#include <cstdint> #include <cstdint>
#include <cstddef> #include <cstddef>
#include <functional> #include <functional>

View File

@ -34,6 +34,7 @@
#include "token.h" #include "token.h"
#include "utils.h" #include "utils.h"
#include "valueflow.h" #include "valueflow.h"
#include "vfvalue.h"
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>

View File

@ -109,10 +109,8 @@
#include <cassert> #include <cassert>
#include <chrono> #include <chrono>
#include <climits> #include <climits>
#include <cstdint>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <ctime>
#include <exception> #include <exception>
#include <functional> #include <functional>
#include <initializer_list> #include <initializer_list>

View File

@ -20,13 +20,13 @@
#include "errortypes.h" #include "errortypes.h"
#include "options.h" #include "options.h"
#include "path.h"
#include "redirect.h" #include "redirect.h"
#include <cstdio> #include <cstdio>
#include <cctype> #include <cctype>
#include <exception> #include <exception>
#include <iostream> #include <iostream>
#include <set>
#include <sstream> #include <sstream>
#include <string> #include <string>

View File

@ -24,17 +24,20 @@
#include "color.h" #include "color.h"
#include "config.h" #include "config.h"
#include "errorlogger.h" #include "errorlogger.h"
#include "errortypes.h"
#include "library.h"
#include "platform.h"
#include "settings.h" #include "settings.h"
#include "standards.h"
#include <cstddef> #include <cstddef>
#include <list> #include <list>
#include <set>
#include <sstream> #include <sstream>
#include <stdexcept> #include <stdexcept>
#include <string> #include <string>
#include <utility>
class options; class options;
class Settings;
class Tokenizer; class Tokenizer;
class TestFixture : public ErrorLogger { class TestFixture : public ErrorLogger {

View File

@ -21,9 +21,11 @@
#include "path.h" #include "path.h"
#include "preprocessor.h" #include "preprocessor.h"
#include <cerrno>
#include <cstdio> #include <cstdio>
#include <iostream> #include <iostream>
#include <fstream> #include <fstream> // IWYU pragma: keep
#include <list>
#include <stdexcept> #include <stdexcept>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -23,7 +23,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep

View File

@ -23,9 +23,7 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string>
class TestAutoVariables : public TestFixture { class TestAutoVariables : public TestFixture {
public: public:

View File

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

View File

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

View File

@ -22,7 +22,6 @@
#include "ctu.h" #include "ctu.h"
#include "errortypes.h" #include "errortypes.h"
#include "standards.h" #include "standards.h"
#include "library.h"
#include "platform.h" #include "platform.h"
#include "settings.h" #include "settings.h"
#include "fixture.h" #include "fixture.h"

View File

@ -19,17 +19,19 @@
#include "check.h" #include "check.h"
#include "checkclass.h" #include "checkclass.h"
#include "errortypes.h" #include "errortypes.h"
#include "library.h"
#include "preprocessor.h" #include "preprocessor.h"
#include "settings.h" #include "settings.h"
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list> #include <list>
#include <map>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>
#include <utility>
#include <vector> #include <vector>
#include <simplecpp.h>
class TestClass : public TestFixture { class TestClass : public TestFixture {
public: public:

View File

@ -25,7 +25,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <map> #include <map>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -23,7 +23,6 @@
#include "suppressions.h" #include "suppressions.h"
#include "fixture.h" #include "fixture.h"
#include <iosfwd>
#include <list> #include <list>
#include <string> #include <string>

View File

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

View File

@ -18,13 +18,11 @@
#include "checkfunctions.h" #include "checkfunctions.h"
#include "errortypes.h" #include "errortypes.h"
#include "library.h"
#include "settings.h" #include "settings.h"
#include "standards.h" #include "standards.h"
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -23,7 +23,6 @@
#include "fixture.h" #include "fixture.h"
#include "settings.h" #include "settings.h"
#include <list>
#include <sstream> #include <sstream>
class TestInternal : public TestFixture { class TestInternal : public TestFixture {

View File

@ -25,7 +25,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -24,7 +24,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <map> #include <map>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -26,6 +26,7 @@
#include "tokenize.h" #include "tokenize.h"
#include "tokenlist.h" #include "tokenlist.h"
#include <cstddef>
#include <map> #include <map>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -26,7 +26,6 @@
#include <list> #include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string>
class TestMemleakInClass; class TestMemleakInClass;
class TestMemleakNoVar; class TestMemleakNoVar;

View File

@ -1,22 +1,25 @@
// Cppcheck - A tool for static C/C++ code analysis /*
// Copyright (C) 2007-2023 Cppcheck team. * Cppcheck - A tool for static C/C++ code analysis
// * Copyright (C) 2007-2023 Cppcheck team.
// This program is free software: you can redistribute it and/or modify *
// it under the terms of the GNU General Public License as published by * This program is free software: you can redistribute it and/or modify
// the Free Software Foundation, either version 3 of the License, or * it under the terms of the GNU General Public License as published by
// (at your option) any later version. * the Free Software Foundation, either version 3 of the License, or
// * (at your option) any later version.
// This program is distributed in the hope that it will be useful, *
// but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * but WITHOUT ANY WARRANTY; without even the implied warranty of
// GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// * GNU General Public License for more details.
// You should have received a copy of the GNU General Public License *
// along with this program. If not, see <http://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "options.h" #include "options.h"
#include "fixture.h" #include "fixture.h"
#include <functional>
#include <set> #include <set>
#include <string> #include <string>

View File

@ -26,7 +26,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <map> #include <map>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -19,6 +19,7 @@
#include "cppcheck.h" #include "cppcheck.h"
#include "fixture.h" #include "fixture.h"
#include "helpers.h" #include "helpers.h"
#include "importproject.h"
#include "redirect.h" #include "redirect.h"
#include "library.h" #include "library.h"
#include "settings.h" #include "settings.h"
@ -28,10 +29,10 @@
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>
#include <functional> #include <functional>
#include <list>
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include <sstream>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -22,7 +22,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <map> #include <map>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -25,7 +25,6 @@
#include "utils.h" #include "utils.h"
#include <cstddef> #include <cstddef>
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -23,7 +23,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep

View File

@ -24,7 +24,6 @@
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"
#include <list>
#include <sstream> // IWYU pragma: keep #include <sstream> // IWYU pragma: keep
#include <string> #include <string>

View File

@ -20,7 +20,6 @@
#include "checkuninitvar.h" #include "checkuninitvar.h"
#include "ctu.h" #include "ctu.h"
#include "errortypes.h" #include "errortypes.h"
#include "library.h"
#include "settings.h" #include "settings.h"
#include "fixture.h" #include "fixture.h"
#include "tokenize.h" #include "tokenize.h"

View File

@ -24,7 +24,6 @@
#include "tokenize.h" #include "tokenize.h"
#include <sstream> #include <sstream>
#include <string>
class TestUnusedFunctions : public TestFixture { class TestUnusedFunctions : public TestFixture {
public: public:

View File

@ -16,14 +16,13 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "helpers.h"
#include "fixture.h" #include "fixture.h"
#include "settings.h"
#include "utils.h" #include "utils.h"
#include <cstddef> #include <cstddef>
#include <cstdint> #include <cstdint>
#include <limits> #include <limits>
#include <stdexcept>
#include <string> #include <string>
class TestUtils : public TestFixture { class TestUtils : public TestFixture {

View File

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