refactor: iwyu (#3525)

This commit is contained in:
Charles Kerr 2022-07-25 21:45:54 -05:00 committed by GitHub
parent d09aba0e6a
commit 1a0afbe95e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
44 changed files with 37 additions and 19 deletions

View File

@ -2,8 +2,8 @@
// It may be used under the MIT (SPDX: MIT) license.
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <memory>
#include <vector>
#include <glibmm.h>
#include <glibmm/i18n.h>

View File

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

View File

@ -3,13 +3,14 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <climits> /* INT_MAX */
#include <cstddef>
#include <cstring> // strchr
#include <functional>
#include <unordered_map>
#include <list>
#include <string>
#include <string_view>
#include <unordered_map>
#include <utility>
#include <glibmm.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 <algorithm> // std::transform()
#include <memory>
#include <set>
#include <string>

View File

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

View File

@ -5,6 +5,7 @@
*
*/
#include <algorithm>
#include <array>
#include <map>
#include <memory>

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <iostream>
#include <list>
#include <memory>
#include <string>
@ -560,4 +561,4 @@ void MakeDialog::Impl::onPieceSizeUpdated()
tr_metaInfoBuilderSetPieceSize(builder_.get(), new_size);
updatePiecesLabel();
}
}
}

View File

@ -4,6 +4,7 @@
// License text can be found in the licenses/ folder.
#include <map>
#include <vector>
#include <giomm.h>
#include <glibmm/i18n.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 <list>
#include <memory>
#include <glibmm.h>

View File

@ -3,7 +3,6 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <memory>
#include <string>

View File

@ -3,11 +3,13 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm> // std::max()
#include <climits> /* INT_MAX */
#include <cstring> // strchr()
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <glibmm.h>
#include <glibmm/i18n.h>

View File

@ -6,6 +6,7 @@
#include <array>
#include <ctype.h> /* isxdigit() */
#include <errno.h>
#include <functional>
#include <limits.h> /* INT_MAX */
#include <giomm.h> /* g_file_trash() */

View File

@ -3,6 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm> // std::copy_n()
#include <climits> /* USHRT_MAX */
#include <cstdio> /* fprintf() */
#include <cstring> /* strchr(), memcmp(), memcpy() */

View File

@ -3,6 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm> // std::find_if()
#include <cerrno> /* errno, EAFNOSUPPORT */
#include <cstring> /* memset() */
#include <ctime>

View File

@ -8,6 +8,7 @@
#include <cstdio>
#include <cstring>
#include <string_view>
#include <vector>
#include <fmt/core.h>

View File

@ -8,6 +8,7 @@
#include <limits> // std::numeric_limits<size_t>::max()
#include <numeric> // std::accumulate()
#include <utility> // std::make_pair()
#include <vector>
#include <event2/buffer.h>

View File

@ -10,6 +10,7 @@
#endif
#include <cstdint> // intX_t, uintX_t
#include <ctime>
#include <memory> // std::unique_ptr
#include <utility> // std::pair
#include <vector>

View File

@ -11,6 +11,7 @@
#include <random>
#include <string>
#include <string_view>
#include <vector>
#include <arc4.h>

View File

@ -7,6 +7,7 @@
#include <array>
#include <cerrno>
#include <cstdint> // uint8_t, uint64_t
#include <string_view>
#include <fmt/core.h>

View File

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

View File

@ -5,9 +5,7 @@
#include <algorithm>
#include <ctime>
#include <functional>
#include <memory>
#include <numeric>
#include <utility>
#include <unordered_map>
#include <unordered_set>

View File

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

View File

@ -9,11 +9,9 @@
#error only libtransmission should #include this header.
#endif
#include <array>
#include <cstddef> // size_t
#include <cstdint> // uint8_t, uint64_t
#include <string>
#include <string_view>
#include <vector>
#ifdef _WIN32

View File

@ -11,6 +11,7 @@
#error only libtransmission should #include this header.
#endif
#include <array>
#include <cstddef> // size_t, std::byte
#include <memory>

View File

@ -8,7 +8,6 @@
#include <cerrno>
#include <cstring> /* memcpy */
#include <ctime>
#include <list>
#include <string>
#include <string_view>
#include <vector>

View File

@ -16,7 +16,6 @@
#include <numeric> // std::accumulate()
#include <string>
#include <string_view>
#include <tuple>
#include <unordered_set>
#include <vector>

View File

@ -3,6 +3,8 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm> // std::find()
#include <functional>
#include <iterator>
#include <optional>
#include <set>

View File

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

View File

@ -6,7 +6,6 @@
#include <algorithm>
#include <array>
#include <cctype>
#include <numeric>
#include <string>
#include <string_view>
#include <vector>

View File

@ -6,6 +6,7 @@
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string_view>
#include "tr-assert.h"

View File

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

View File

@ -10,6 +10,7 @@
#include <cstring>
#include <deque>
#include <string_view>
#include <utility>
#define UTF_CPP_CPLUSPLUS 201703L
#include <utf8.h>

View File

@ -10,7 +10,6 @@
#include <memory>
#include <mutex>
#include <string>
#include <string_view>
#include <thread>
#ifdef _WIN32

View File

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

View File

@ -9,6 +9,7 @@
#include <array>
#include <ctime>
#include <memory>
#include <utility>
#include <QIcon>
#include <QLibraryInfo>

View File

@ -5,7 +5,6 @@
#include <array>
#include <cassert>
#include <functional>
#include <memory>
#include <utility>

View File

@ -3,6 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdlib>

View File

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

View File

@ -3,7 +3,7 @@
// or any future license endorsed by Mnemosyne LLC.
// License text can be found in the licenses/ folder.
#include <algorithm>
#include <array>
#include <optional>
#include "Filters.h"

View File

@ -6,7 +6,6 @@
#include <algorithm>
#include <cassert>
#include <string_view>
#include <utility>
#include <libtransmission/transmission.h>
#include <libtransmission/variant.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 <algorithm>
#include <array>
#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 <algorithm>
#include <array>
#include <cstdint>
#include <set>

View File

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

View File

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