Merge pull request #5569 from lioncash/header

Core: include what you use
This commit is contained in:
Anthony 2017-06-06 22:26:11 -07:00 committed by GitHub
commit a3e9aba7b0
64 changed files with 127 additions and 8 deletions

View File

@ -10,6 +10,8 @@
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <string>
#include <vector>
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>

View File

@ -21,6 +21,7 @@
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>
#include <cstdarg>
#include <iterator> #include <iterator>
#include <mutex> #include <mutex>
#include <string> #include <string>

View File

@ -5,6 +5,7 @@
#include "Core/Boot/Boot.h" #include "Core/Boot/Boot.h"
#include <algorithm> #include <algorithm>
#include <memory>
#include <optional> #include <optional>
#include <string> #include <string>
#include <unordered_set> #include <unordered_set>

View File

@ -5,6 +5,7 @@
#include <cstring> #include <cstring>
#include <list> #include <list>
#include <map> #include <map>
#include <memory>
#include <string> #include <string>
#include "Common/CommonPaths.h" #include "Common/CommonPaths.h"

View File

@ -4,7 +4,9 @@
#include <algorithm> #include <algorithm>
#include <array> #include <array>
#include <list>
#include <map> #include <map>
#include <sstream>
#include <string> #include <string>
#include <tuple> #include <tuple>
#include <utility> #include <utility>

View File

@ -3,6 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <cstring> #include <cstring>
#include <memory>
#include <string> #include <string>
#include "Common/CommonFuncs.h" #include "Common/CommonFuncs.h"

View File

@ -2,6 +2,8 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <memory>
#include "Common/CommonPaths.h" #include "Common/CommonPaths.h"
#include "Common/Config/Config.h" #include "Common/Config/Config.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -6,6 +6,7 @@
#include <climits> #include <climits>
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <sstream>
#include <variant> #include <variant>
#include "AudioCommon/AudioCommon.h" #include "AudioCommon/AudioCommon.h"

View File

@ -5,15 +5,17 @@
#include "Core/DSP/DSPAssembler.h" #include "Core/DSP/DSPAssembler.h"
#include <algorithm>
#include <cstddef> #include <cstddef>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <fstream> #include <fstream>
#include <iostream>
#include <map> #include <map>
#include <sstream>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -4,6 +4,7 @@
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <string>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -9,6 +9,7 @@
#include <cstdlib> #include <cstdlib>
#include <fstream> #include <fstream>
#include <string> #include <string>
#include <vector>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -5,6 +5,7 @@
#include "Core/DSP/DSPHWInterface.h" #include "Core/DSP/DSPHWInterface.h"
#include <atomic>
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>

View File

@ -3,6 +3,10 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/DSP/LabelMap.h" #include "Core/DSP/LabelMap.h"
#include <string>
#include <vector>
#include "Core/DSP/DSPTables.h" #include "Core/DSP/DSPTables.h"
namespace DSP namespace DSP

View File

@ -2,6 +2,7 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <cstdio>
#include <functional> #include <functional>
#include <string> #include <string>

View File

@ -4,7 +4,11 @@
#include "Core/Debugger/RSO.h" #include "Core/Debugger/RSO.h"
#include <cstddef>
#include <list>
#include <string>
#include <utility> #include <utility>
#include <vector>
#include "Common/CommonFuncs.h" #include "Common/CommonFuncs.h"
#include "Common/Logging/Log.h" #include "Common/Logging/Log.h"

View File

@ -4,7 +4,9 @@
#include <algorithm> #include <algorithm>
#include <cstring> #include <cstring>
#include <memory>
#include <string> #include <string>
#include <vector>
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -4,6 +4,8 @@
#include "Core/FifoPlayer/FifoPlaybackAnalyzer.h" #include "Core/FifoPlayer/FifoPlaybackAnalyzer.h"
#include <vector>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Core/FifoPlayer/FifoAnalyzer.h" #include "Core/FifoPlayer/FifoAnalyzer.h"
#include "Core/FifoPlayer/FifoDataFile.h" #include "Core/FifoPlayer/FifoDataFile.h"

View File

@ -3,6 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm> #include <algorithm>
#include <cstring>
#include <mutex> #include <mutex>
#include "Core/FifoPlayer/FifoRecorder.h" #include "Core/FifoPlayer/FifoRecorder.h"

View File

@ -5,6 +5,7 @@
#include "Core/GeckoCodeConfig.h" #include "Core/GeckoCodeConfig.h"
#include <algorithm> #include <algorithm>
#include <memory>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -3,6 +3,9 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/HW/DSPHLE/MailHandler.h" #include "Core/HW/DSPHLE/MailHandler.h"
#include <queue>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/Logging/Log.h" #include "Common/Logging/Log.h"

View File

@ -5,6 +5,7 @@
#include "Core/HW/DSPHLE/UCodes/UCodes.h" #include "Core/HW/DSPHLE/UCodes/UCodes.h"
#include <cstring> #include <cstring>
#include <memory>
#include <string> #include <string>
#ifdef _WIN32 #ifdef _WIN32

View File

@ -5,6 +5,7 @@
#include "Core/HW/DSPHLE/UCodes/Zelda.h" #include "Core/HW/DSPHLE/UCodes/Zelda.h"
#include <array> #include <array>
#include <map>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -3,6 +3,9 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/DSP/DSPHost.h" #include "Core/DSP/DSPHost.h"
#include <string>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/Hash.h" #include "Common/Hash.h"
#include "Common/Logging/Log.h" #include "Common/Logging/Log.h"

View File

@ -7,6 +7,7 @@
#include <memory> #include <memory>
#include <optional> #include <optional>
#include <string> #include <string>
#include <vector>
#include "AudioCommon/AudioCommon.h" #include "AudioCommon/AudioCommon.h"
@ -1213,9 +1214,8 @@ void ScheduleReads(u64 offset, u32 length, const DiscIO::Partition& partition, u
u32 buffered_blocks = 0; u32 buffered_blocks = 0;
u32 unbuffered_blocks = 0; u32 unbuffered_blocks = 0;
const u32 bytes_per_chunk = partition == DiscIO::PARTITION_NONE ? const u32 bytes_per_chunk =
DVD_ECC_BLOCK_SIZE : partition == DiscIO::PARTITION_NONE ? DVD_ECC_BLOCK_SIZE : DiscIO::VolumeWii::BLOCK_DATA_SIZE;
DiscIO::VolumeWii::BLOCK_DATA_SIZE;
while (length > 0) while (length > 0)
{ {

View File

@ -4,8 +4,10 @@
#include "Core/HW/EXI/EXI_DeviceAGP.h" #include "Core/HW/EXI/EXI_DeviceAGP.h"
#include <algorithm>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -4,6 +4,8 @@
#include "Core/HW/EXI/EXI_DeviceDummy.h" #include "Core/HW/EXI/EXI_DeviceDummy.h"
#include <string>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/Logging/Log.h" #include "Common/Logging/Log.h"

View File

@ -4,6 +4,7 @@
#include "Core/HW/EXI/EXI_DeviceEthernet.h" #include "Core/HW/EXI/EXI_DeviceEthernet.h"
#include <memory>
#include <string> #include <string>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"

View File

@ -5,6 +5,7 @@
#include "Core/HW/EXI/EXI_DeviceIPL.h" #include "Core/HW/EXI/EXI_DeviceIPL.h"
#include <cstring> #include <cstring>
#include <string>
#include "Common/Assert.h" #include "Common/Assert.h"
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"

View File

@ -6,6 +6,7 @@
#include <array> #include <array>
#include <cstring> #include <cstring>
#include <functional>
#include <memory> #include <memory>
#include <string> #include <string>

View File

@ -2,9 +2,12 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm>
#include <cstring> #include <cstring>
#include <mutex> #include <mutex>
#include <cubeb/cubeb.h>
#include "AudioCommon/CubebUtils.h" #include "AudioCommon/CubebUtils.h"
#include "Common/Common.h" #include "Common/Common.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
@ -17,8 +20,6 @@
#include "Core/HW/GCPad.h" #include "Core/HW/GCPad.h"
#include "Core/HW/SystemTimers.h" #include "Core/HW/SystemTimers.h"
#include <cubeb/cubeb.h>
namespace ExpansionInterface namespace ExpansionInterface
{ {
void CEXIMic::StreamInit() void CEXIMic::StreamInit()

View File

@ -4,12 +4,14 @@
#include "Core/HW/GCMemcard/GCMemcardDirectory.h" #include "Core/HW/GCMemcard/GCMemcardDirectory.h"
#include <algorithm>
#include <chrono> #include <chrono>
#include <cinttypes> #include <cinttypes>
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <string> #include <string>
#include <vector>
#include "Common/Assert.h" #include "Common/Assert.h"
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"

View File

@ -7,7 +7,9 @@
#include <chrono> #include <chrono>
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <mutex>
#include <string> #include <string>
#include <thread>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -4,6 +4,7 @@
#include "Core/HW/GPFifo.h" #include "Core/HW/GPFifo.h"
#include <cstddef>
#include <cstring> #include <cstring>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"

View File

@ -7,6 +7,7 @@
// However, if a JITed instruction (for example lwz) wants to access a bad memory area that call // However, if a JITed instruction (for example lwz) wants to access a bad memory area that call
// may be redirected here (for example to Read_U32()). // may be redirected here (for example to Read_U32()).
#include <algorithm>
#include <cstring> #include <cstring>
#include <memory> #include <memory>

View File

@ -3,6 +3,7 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <cstdio> #include <cstdio>
#include <memory>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -16,6 +16,7 @@
0x30 - 0x3f Input This file: Update() */ 0x30 - 0x3f Input This file: Update() */
#include <fstream> #include <fstream>
#include <mutex>
#include <queue> #include <queue>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -4,9 +4,11 @@
#include "Core/HW/WiimoteEmu/WiimoteEmu.h" #include "Core/HW/WiimoteEmu/WiimoteEmu.h"
#include <algorithm>
#include <cassert> #include <cassert>
#include <cmath> #include <cmath>
#include <cstring> #include <cstring>
#include <mutex>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -6,6 +6,7 @@
#include <algorithm> #include <algorithm>
#include <cstdlib> #include <cstdlib>
#include <mutex>
#include <queue> #include <queue>
#include <unordered_set> #include <unordered_set>

View File

@ -4,6 +4,8 @@
#include "Core/HotkeyManager.h" #include "Core/HotkeyManager.h"
#include <algorithm>
#include <array>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -5,10 +5,12 @@
#include "Core/IOS/ES/Formats.h" #include "Core/IOS/ES/Formats.h"
#include <algorithm> #include <algorithm>
#include <array>
#include <cinttypes> #include <cinttypes>
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <locale> #include <locale>
#include <optional>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -3,7 +3,10 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm> #include <algorithm>
#include <array>
#include <cstddef>
#include <cstring> #include <cstring>
#include <vector>
#include <mbedtls/sha1.h> #include <mbedtls/sha1.h>

View File

@ -3,6 +3,9 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/IOS/MemoryValues.h" #include "Core/IOS/MemoryValues.h"
#include <array>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
namespace IOS namespace IOS

View File

@ -6,6 +6,7 @@
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include <memory> #include <memory>
#include <string>
#include "Common/Assert.h" #include "Common/Assert.h"
#include "Common/CommonPaths.h" #include "Common/CommonPaths.h"

View File

@ -7,7 +7,10 @@
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>
#include <iterator> #include <iterator>
#include <memory>
#include <mutex>
#include <sstream> #include <sstream>
#include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>

View File

@ -4,6 +4,9 @@
#include <algorithm> #include <algorithm>
#include <memory> #include <memory>
#include <mutex>
#include <set>
#include <string>
#include <utility> #include <utility>
#ifdef __LIBUSB__ #ifdef __LIBUSB__

View File

@ -5,8 +5,12 @@
#include <algorithm> #include <algorithm>
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <functional>
#include <map> #include <map>
#include <memory>
#include <mutex>
#include <utility> #include <utility>
#include <vector>
#include <libusb.h> #include <libusb.h>

View File

@ -2,7 +2,9 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <memory>
#include <sstream> #include <sstream>
#include <string>
#include <tuple> #include <tuple>
#include <vector> #include <vector>

View File

@ -2,6 +2,7 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <cstddef>
#include <numeric> #include <numeric>
#include <vector> #include <vector>

View File

@ -5,7 +5,10 @@
#include "Core/IOS/USB/USB_HID/HIDv4.h" #include "Core/IOS/USB/USB_HID/HIDv4.h"
#include <cstring> #include <cstring>
#include <mutex>
#include <string>
#include <utility> #include <utility>
#include <vector>
#include "Common/Align.h" #include "Common/Align.h"
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"

View File

@ -5,6 +5,7 @@
#include "Core/IOS/USB/USB_KBD.h" #include "Core/IOS/USB/USB_KBD.h"
#include <cstring> #include <cstring>
#include <queue>
#include "Common/FileUtil.h" #include "Common/FileUtil.h"
#include "Common/IniFile.h" #include "Common/IniFile.h"

View File

@ -4,7 +4,11 @@
#include "Core/IOS/USB/USB_VEN/VEN.h" #include "Core/IOS/USB/USB_VEN/VEN.h"
#include <cstddef>
#include <cstring> #include <cstring>
#include <memory>
#include <mutex>
#include <string>
#include "Common/ChunkFile.h" #include "Common/ChunkFile.h"
#include "Common/Logging/Log.h" #include "Common/Logging/Log.h"

View File

@ -3,11 +3,16 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/NetPlayClient.h" #include "Core/NetPlayClient.h"
#include <algorithm> #include <algorithm>
#include <fstream> #include <fstream>
#include <mbedtls/md5.h>
#include <memory> #include <memory>
#include <mutex>
#include <sstream>
#include <thread> #include <thread>
#include <mbedtls/md5.h>
#include "Common/Common.h" #include "Common/Common.h"
#include "Common/CommonPaths.h" #include "Common/CommonPaths.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -3,9 +3,15 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/NetPlayServer.h" #include "Core/NetPlayServer.h"
#include <algorithm>
#include <memory> #include <memory>
#include <mutex>
#include <string> #include <string>
#include <thread>
#include <unordered_set>
#include <vector> #include <vector>
#include "Common/Common.h" #include "Common/Common.h"
#include "Common/ENetUtil.h" #include "Common/ENetUtil.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -2,7 +2,8 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <assert.h> #include <array>
#include <cassert>
#include <cinttypes> #include <cinttypes>
#include <string> #include <string>

View File

@ -4,6 +4,9 @@
#include "Core/PowerPC/Jit64Common/EmuCodeBlock.h" #include "Core/PowerPC/Jit64Common/EmuCodeBlock.h"
#include <functional>
#include <limits>
#include "Common/Assert.h" #include "Common/Assert.h"
#include "Common/CPUDetect.h" #include "Common/CPUDetect.h"
#include "Common/Intrinsics.h" #include "Common/Intrinsics.h"

View File

@ -3,6 +3,9 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h" #include "Core/PowerPC/Jit64Common/Jit64AsmCommon.h"
#include <array>
#include "Common/Assert.h" #include "Common/Assert.h"
#include "Common/CPUDetect.h" #include "Common/CPUDetect.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -10,8 +10,11 @@
// locating performance issues. // locating performance issues.
#include <algorithm> #include <algorithm>
#include <array>
#include <cstring> #include <cstring>
#include <functional>
#include <map> #include <map>
#include <set>
#include <utility> #include <utility>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -8,6 +8,7 @@
#include <cinttypes> #include <cinttypes>
#include <cstdio> #include <cstdio>
#include <string> #include <string>
#include <unordered_set>
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>

View File

@ -4,6 +4,7 @@
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <string>
#include "Common/Atomic.h" #include "Common/Atomic.h"
#include "Common/BitSet.h" #include "Common/BitSet.h"

View File

@ -3,8 +3,10 @@
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <algorithm> #include <algorithm>
#include <map>
#include <queue> #include <queue>
#include <string> #include <string>
#include <vector>
#include "Common/Assert.h" #include "Common/Assert.h"
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -4,6 +4,7 @@
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <string>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -9,6 +9,7 @@
#include <fstream> #include <fstream>
#include <limits> #include <limits>
#include <sstream> #include <sstream>
#include <string>
#include <utility> #include <utility>
#include "Common/FileUtil.h" #include "Common/FileUtil.h"

View File

@ -2,6 +2,7 @@
// Licensed under GPLv2+ // Licensed under GPLv2+
// Refer to the license.txt file included. // Refer to the license.txt file included.
#include <memory>
#include <string> #include <string>
#include "Common/CommonTypes.h" #include "Common/CommonTypes.h"

View File

@ -5,6 +5,7 @@
#include <cstddef> #include <cstddef>
#include <fstream> #include <fstream>
#include <functional> #include <functional>
#include <unordered_map>
#include <utility> #include <utility>
#include "Core/TitleDatabase.h" #include "Core/TitleDatabase.h"