chore: iwyu headers (#3661)

This commit is contained in:
Charles Kerr 2022-08-17 11:08:36 -05:00 committed by GitHub
parent 6b25a57899
commit 29f57bc296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
105 changed files with 124 additions and 38 deletions

View File

@ -8,9 +8,9 @@
#include <cstdio> /* printf */
#include <cstdlib> /* atoi */
#include <iostream>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#ifdef HAVE_SYSLOG
#include <syslog.h>

View File

@ -5,10 +5,13 @@
#include <algorithm>
#include <cstdlib> // exit()
#include <ctime>
#include <iterator> // for std::back_inserter
#include <map>
#include <memory>
#include <sstream>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <locale.h>

View File

@ -6,6 +6,7 @@
#include <algorithm>
#include <array>
#include <limits.h> /* INT_MAX */
#include <memory>
#include <numeric>
#include <sstream>
#include <stddef.h>

View File

@ -7,6 +7,7 @@
#include <climits> /* INT_MAX */
#include <cstddef>
#include <list>
#include <memory>
#include <string>
#include <string_view>
#include <unordered_map>

View File

@ -11,6 +11,7 @@
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <glibmm.h>
#include <giomm.h>

View File

@ -3,6 +3,7 @@
// License text can be found in the licenses/ folder.
#include <array>
#include <memory>
#include <string>
#include <glibmm/i18n.h>

View File

@ -8,6 +8,7 @@
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <glibmm.h>
#include <glibmm/i18n.h>

View File

@ -6,6 +6,7 @@
#include <errno.h>
#include <stdio.h>
#include <map>
#include <memory>
#include <glibmm.h>
#include <glibmm/i18n.h>

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <map>
#include <utility>
#include <vector>
#include <giomm.h>

View File

@ -5,6 +5,7 @@
#include <list>
#include <memory>
#include <utility>
#include <glibmm.h>
#include <glibmm/i18n.h>

View File

@ -3,7 +3,6 @@
// License text can be found in the licenses/ folder.
#include <errno.h>
#include <stdlib.h> /* strtol() */
#include <string>
#include <string_view>

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <climits> /* USHRT_MAX, INT_MAX */
#include <memory>
#include <sstream>
#include <string>

View File

@ -12,6 +12,7 @@
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <glibmm/i18n.h>

View File

@ -8,6 +8,7 @@
// We're using deprecated Gtk::StatusItem ourselves as well
#undef GTKMM_DISABLE_DEPRECATED
#include <memory>
#include <string>
#include <glibmm.h>

View File

@ -8,6 +8,8 @@
#include <errno.h>
#include <functional>
#include <limits.h> /* INT_MAX */
#include <memory>
#include <utility>
#include <giomm.h> /* g_file_trash() */
#include <glibmm/i18n.h>

View File

@ -9,6 +9,7 @@
#include <ctime>
#include <functional>
#include <string>
#include <utility>
#include <vector>
#include <sys/types.h>

View File

@ -4,7 +4,6 @@
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <set>
#include <string>
#include <string_view>

View File

@ -11,6 +11,7 @@
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <curl/curl.h>

View File

@ -12,6 +12,7 @@
#include <deque>
#include <iterator>
#include <map>
#include <memory>
#include <numeric>
#include <set>
#include <string>

View File

@ -4,7 +4,6 @@
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <cerrno>
#include <cstdio>
#include <cstdlib> // bsearch()
#include <string_view>

View File

@ -9,6 +9,8 @@
#error only libtransmission should #include this header.
#endif
#include <cstddef> // for size_t
#include <cstdint>
#include <string>
#include <string_view>
#include <vector>

View File

@ -6,6 +6,7 @@
#include <cstdlib> // std::lldiv()
#include <iterator> // std::distance(), std::next(), std::prev()
#include <limits> // std::numeric_limits<size_t>::max()
#include <memory>
#include <numeric> // std::accumulate()
#include <utility> // std::make_pair()
#include <vector>

View File

@ -9,10 +9,11 @@
#error only libtransmission should #include this header.
#endif
#include <cstdint> // intX_t, uintX_t
#include <cstdint> // for size_t
#include <cstdint> // for intX_t, uintX_t
#include <ctime>
#include <memory> // std::unique_ptr
#include <utility> // std::pair
#include <memory> // for std::unique_ptr
#include <utility> // for std::pair
#include <vector>
#include "transmission.h"

View File

@ -5,6 +5,7 @@
#include <algorithm>
#include <memory>
#include <utility>
#include <vector>
#include "transmission.h"

View File

@ -3,6 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <memory>
#include <mutex>
#if defined(CYASSL_IS_WOLFSSL)

View File

@ -8,6 +8,8 @@
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
#include <memory>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <openssl/evp.h>

View File

@ -3,6 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <memory>
#include <mutex>
#if defined(POLARSSL_IS_MBEDTLS)

View File

@ -8,6 +8,7 @@
#include <array>
#include <cstddef> // size_t
#include <cstdint>
#include <memory>
#include <optional>
#include <string>

View File

@ -6,6 +6,7 @@
#include <algorithm>
#include <array>
#include <cctype> // for isalpha()
#include <iterator> // for std::back_inserter
#include <string>
#include <string_view>

View File

@ -9,6 +9,7 @@
#include <chrono>
#include <cstring>
#include <string_view>
#include <utility>
#include <event2/buffer.h>

View File

@ -9,6 +9,7 @@
#error only libtransmission should #include this header.
#endif
#include <cstddef> // for size_t
#include <optional>
#include <memory>

View File

@ -10,8 +10,9 @@
#endif
#include <array>
#include <cstdint>
#include <ctime> // time_t
#include <cstddef> // for size_t
#include <cstdint> // for uint32_t
#include <ctime> // for time_t
/**
* A short-term memory object that remembers how many times something

View File

@ -10,6 +10,7 @@
#include <cstddef>
#include <cstdint>
#include <functional>
#include <utility>
// A fixed-size cache that erases least-recently-used items to make room for new ones.
template<typename Key, typename Val, std::size_t N>

View File

@ -3,11 +3,13 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <cerrno> // for ENOENT
#include <optional>
#include <set>
#include <string>
#include <string_view>
#include <thread>
#include <utility>
#include <vector>
#include <fmt/format.h>

View File

@ -7,6 +7,7 @@
#include <algorithm> // std::move
#include <cstddef> // std::byte
#include <cstdint>
#include <future>
#include <string>
#include <string_view>

View File

@ -10,6 +10,7 @@
#endif
#include <ctime> // time_t
#include <cstdint>
#include "transmission.h" // tr_port_forwarding

View File

@ -18,7 +18,7 @@
#ifdef _WIN32
#include <ws2tcpip.h>
#else
#include <errno.h>
#include <cerrno>
#include <sys/socket.h>
#include <netinet/in.h>
#endif

View File

@ -5,9 +5,9 @@
#include <algorithm>
#include <array>
#include <cerrno>
#include <cstdint> // uint8_t, uint64_t
#include <string_view>
#include <utility>
#include <fmt/core.h>

View File

@ -9,7 +9,8 @@
#error only libtransmission should #include this header.
#endif
#include <cstdint>
#include <cstddef> // for size_t
#include <cstdint> // for uintX_t
#include <optional>
#include <string_view>
#include <utility>

View File

@ -5,7 +5,6 @@
#include <algorithm>
#include <cstddef>
#include <iterator>
#include <set>
#include <utility>
#include <vector>

View File

@ -12,6 +12,7 @@
#include <cstddef> // size_t
#include <cstdint> // uint8_t, uint64_t
#include <string>
#include <utility>
#include <vector>
#ifdef _WIN32

View File

@ -13,6 +13,7 @@
#include <map>
#include <memory> // std::unique_ptr
#include <optional>
#include <utility>
#include <vector>
#include <event2/buffer.h>

View File

@ -12,6 +12,7 @@
#include <cstdint> // int8_t
#include <cstddef> // size_t
#include <ctime> // time_t
#include <utility>
#include "bitfield.h"
#include "peer-common.h"

View File

@ -5,10 +5,10 @@
#include <algorithm>
#include <array>
#include <iterator>
#include <list>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#ifdef __HAIKU__

View File

@ -5,6 +5,7 @@
#include <algorithm>
#include <chrono>
#include <memory>
#include <fmt/core.h>

View File

@ -5,12 +5,13 @@
#include <algorithm>
#include <array>
#include <cerrno>
#include <chrono>
#include <cstring> /* memcpy */
#include <ctime>
#include <memory>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#ifndef _WIN32

View File

@ -8,6 +8,7 @@
#include <cerrno>
#include <ctime>
#include <iterator>
#include <memory>
#include <numeric>
#include <set>
#include <string_view>

View File

@ -4,7 +4,6 @@
// License text can be found in the licenses/ folder.
#include <algorithm> // std::partial_sort(), std::min(), std::max()
#include <cerrno> /* ENOENT */
#include <climits> /* INT_MAX */
#include <condition_variable>
#include <csignal>
@ -18,6 +17,7 @@
#include <string>
#include <string_view>
#include <unordered_set>
#include <utility>
#include <vector>
#ifndef _WIN32

View File

@ -9,6 +9,7 @@
#error only libtransmission should #include this header.
#endif
#include <cstdint>
#include <ctime>
#include <string>
#include <string_view>

View File

@ -5,7 +5,6 @@
#include <algorithm>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <cwchar>
#include <map>

View File

@ -5,6 +5,7 @@
#include <chrono>
#include <memory>
#include <utility>
#include <event2/event.h>

View File

@ -5,6 +5,8 @@
#pragma once
#include <memory>
#include "timer.h"
extern "C"

View File

@ -8,6 +8,7 @@
#include <chrono>
#include <functional>
#include <memory>
#include <utility>
namespace libtransmission
{

View File

@ -7,6 +7,7 @@
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "transmission.h"

View File

@ -10,6 +10,7 @@
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include <fmt/format.h>

View File

@ -6,6 +6,7 @@
#include <algorithm>
#include <array>
#include <cctype>
#include <cerrno> // for EINVAL
#include <string>
#include <string_view>
#include <vector>

View File

@ -14,6 +14,7 @@
#include <string>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <vector>
#ifndef _WIN32

View File

@ -14,6 +14,7 @@
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "transmission.h"

View File

@ -11,6 +11,7 @@
#include <ctime>
#include <string_view>
#include <utility>
#include <vector>
#include "transmission.h"

View File

@ -5,6 +5,8 @@
#import <Foundation/Foundation.h>
#include <cstdlib> // for abort()
#include <fmt/format.h>
#include "tr-assert.h"

View File

@ -5,11 +5,13 @@
#include <algorithm>
#include <cerrno>
#include <chrono>
#include <csignal> /* sig_atomic_t */
#include <csignal> // for sig_atomic_t
#include <cstdlib> // for abort()
#include <cstdio>
#include <cstring> /* memcpy(), memset() */
#include <cstring> // for memcpy(), memset()
#include <ctime>
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
#include <string_view>

View File

@ -7,6 +7,7 @@
#include <chrono>
#include <csignal> /* sig_atomic_t */
#include <cstring> /* strlen(), strncpy(), strstr(), memset() */
#include <memory>
#include <type_traits>
#ifdef _WIN32

View File

@ -3,10 +3,14 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#ifndef __TRANSMISSION__
#error only libtransmission should #include this header.
#endif
#ifndef TR_POPCNT_H
#define TR_POPCNT_H
#include <stdint.h>
#include <cstdint>
/* Avoid defining irrelevant helpers that might interfere with other
* preprocessor logic. */

View File

@ -7,6 +7,7 @@
#include <cstddef>
#include <string_view>
#include <utility>
#include <fmt/format.h>

View File

@ -2,6 +2,7 @@
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
#include <cerrno>
#include <cstdint>
#include <cstring> /* memcmp(), memcpy(), memset() */
#include <cstdlib> /* malloc(), free() */

View File

@ -9,6 +9,7 @@
#include <mutex>
#include <shared_mutex>
#include <thread>
#include <utility>
#include <csignal>

View File

@ -8,6 +8,7 @@
#include <mutex>
#include <string>
#include <thread>
#include <utility>
#include <fmt/core.h>

View File

@ -13,6 +13,7 @@
#include <cstdlib> // getenv()
#include <cstring> /* strerror() */
#include <ctime> // nanosleep()
#include <iterator> // for std::back_inserter
#include <set>
#include <string>
#include <string_view>

View File

@ -4,7 +4,6 @@
// License text can be found in the licenses/ folder.
#include <algorithm> // std::sort
#include <cerrno>
#include <cstring>
#include <stack>
#include <string>

View File

@ -7,11 +7,14 @@
#include <algorithm>
#include <chrono>
#include <cstddef> // for size_t
#include <map>
#include <memory>
#include <optional>
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include "timer.h"
#include "watchdir.h"

View File

@ -5,6 +5,8 @@
#define LIBTRANSMISSION_WATCHDIR_MODULE
#include <utility>
#include "transmission.h"
#include "watchdir-base.h"

View File

@ -5,8 +5,8 @@
#include <cerrno>
#include <climits> /* NAME_MAX */
#include <iostream> // NOCOMMIT
#include <memory>
#include <utility>
#include <unistd.h> /* close() */

View File

@ -4,8 +4,9 @@
// License text can be found in the licenses/ folder.
#include <cerrno> // for errno
#include <memory>
#include <string>
#include <unordered_set>
#include <utility>
#include <fcntl.h> // for open()
#include <unistd.h> // for close()

View File

@ -6,6 +6,8 @@
#include <array>
#include <cerrno>
#include <cstddef> // for offsetof
#include <memory>
#include <utility>
#include <process.h> // for _beginthreadex()

View File

@ -6,11 +6,13 @@
#include <algorithm>
#include <array>
#include <cctype>
#include <cstdlib> // for strtoul()
#include <cstddef>
#include <limits>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <fmt/format.h>

View File

@ -11,6 +11,7 @@
#include <mutex>
#include <string>
#include <thread>
#include <utility>
#ifdef _WIN32
#include <windows.h>

View File

@ -11,6 +11,7 @@
#include <optional>
#include <string>
#include <string_view>
#include <utility>
struct evbuffer;

View File

@ -11,6 +11,7 @@
#include <set>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <event2/buffer.h>

View File

@ -6,6 +6,7 @@
#include <cmath>
#include <future>
#include <optional>
#include <utility>
#include <libtransmission/transmission.h>

View File

@ -6,6 +6,7 @@
#include <algorithm>
#include <cassert>
#include <ctime>
#include <utility>
#include <QDateTime>
#include <QDesktopServices>

View File

@ -6,6 +6,7 @@
#include <algorithm>
#include <cassert>
#include <set>
#include <utility>
#include <QApplication>
#include <QStyle>

View File

@ -8,6 +8,7 @@
#include <cstdint> // uint64_t
#include <map>
#include <unordered_map>
#include <utility>
#include <QHBoxLayout>
#include <QLabel>

View File

@ -7,6 +7,7 @@
#include <chrono>
#include <future>
#include <utility>
#include <vector>
#include <QDir>

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <utility>
#include <QFileInfo>
#include <QPushButton>

View File

@ -6,8 +6,8 @@
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdlib>
#include <string_view>
#include <utility>
#include <QDateTime>
#include <QDir>

View File

@ -3,6 +3,8 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <utility>
#include <QDir>
#include "RelocateDialog.h"

View File

@ -4,7 +4,6 @@
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <iterator>
#include <set>
#include <QApplication>

View File

@ -3,6 +3,8 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <utility>
#include <QApplication>
#include <QFont>
#include <QFontMetrics>

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <utility>
#include <QApplication>
#include <QBrush>

View File

@ -5,6 +5,8 @@
#include <algorithm>
#include <cassert>
#include <iterator> // for std::back_inserter
#include <set>
#include <string_view>
#include <libtransmission/transmission.h>

View File

@ -6,6 +6,7 @@
#pragma once
#include <optional>
#include <utility>
#include <vector>
#include <QAbstractListModel>

View File

@ -3,10 +3,6 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <QAbstractItemView>
#include <QApplication>
#include <QColor>

View File

@ -6,6 +6,7 @@
#pragma once
#include <cstddef> // size_t
#include <utility>
#include <QHash>
#include <QPointer>

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <cstring>
#include <vector>
#include "transmission.h"

View File

@ -6,7 +6,6 @@
#include <algorithm>
#include <array>
#include <cassert>
#include <cstring>
#include <string_view>
#include <event2/util.h>

View File

@ -6,7 +6,6 @@
#define LIBTRANSMISSION_VARIANT_MODULE
#include <clocale> // setlocale()
#include <cstring> // strlen()
#include <string>
#include <string_view>

View File

@ -6,7 +6,6 @@
#include <algorithm>
#include <array>
#include <cstdlib> // mktemp()
#include <cstring> // strlen()
#include <numeric>
#include <string>
#include <string_view>

View File

@ -3,6 +3,8 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <cstring>
#include "transmission.h"
#include "peer-msgs.h"

View File

@ -17,7 +17,6 @@
#include <array>
#include <cerrno>
#include <cstdio> // fopen()
#include <cstring> // strcmp()
#include <string>
#include <string_view>

View File

@ -3,6 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <cstring>
#include <string_view>
#include "transmission.h"

Some files were not shown because too many files have changed in this diff Show More