Add missing includes where headers depend on other headers having been included first.

This is good hygiene, and also happens to be required to build Dolphin
using Clang modules.

(Under this setup, each header file becomes a module, and each #include
is automatically translated to a module import.  Recursive includes
still leak through (by default), but modules are compiled independently,
and can't depend on defines or types having previously been set up.  The
main reason to retrofit it onto Dolphin is compilation performance - no
more textual includes whatsoever, rather than putting a few blessed
common headers into a PCH.  Unfortunately, I found multiple Clang bugs
while trying to build Dolphin this way, so it's not ready yet, but I can
start with this prerequisite.)
This commit is contained in:
comex
2014-10-21 21:22:16 -04:00
parent 78deebd732
commit 6e774f1b64
50 changed files with 90 additions and 7 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
// Refer to the license.txt file included.
#include "scmrev.h"
#include "Common/CommonTypes.h"
#include "Common/Common.h"
#ifdef _DEBUG
#define BUILD_TYPE_STR "Debug "
+2
View File
@@ -4,6 +4,8 @@
#pragma once
#include "Common/CommonTypes.h"
u16 dsp_read_accelerator();
u16 dsp_read_aram_d3();
+1 -1
View File
@@ -4,7 +4,7 @@
#pragma once
#include "Common/CommonTypes.h"
#include "Common/Common.h"
// super fast breakpoints for a limited range.
// To be used interchangeably with the BreakPoints class.
+4
View File
@@ -4,6 +4,10 @@
#pragma once
#include <string>
#include "Common/CommonTypes.h"
// The user of the DSPCore library must supply a few functions so that the
// emulation core can access the environment it runs in. If the emulation
// core isn't used, for example in an asm/disasm tool, then most of these
@@ -4,6 +4,8 @@
#pragma once
#include "Common/CommonTypes.h"
struct PBMixer
{
u16 left;
+2
View File
@@ -4,5 +4,7 @@
#pragma once
#include "Common/CommonTypes.h"
bool DumpDSPCode(const u8 *code_be, int size_in_bytes, u32 crc);
bool DumpCWCode(u32 _Address, u32 _Length);
+2
View File
@@ -4,6 +4,8 @@
#pragma once
#include "Core/HW/EXI_Device.h"
class CEXIAD16 : public IEXIDevice
{
public:
@@ -4,6 +4,8 @@
#pragma once
#include "Core/HW/EXI_Device.h"
class CEXIAMBaseboard : public IEXIDevice
{
public:
+1
View File
@@ -9,6 +9,7 @@
#endif
#include "Common/Thread.h"
#include "Core/HW/EXI_Device.h"
// Network Control Register A
enum NCRA
+2
View File
@@ -11,6 +11,8 @@
#include "Common/Thread.h"
#include "Core/HW/EXI_Device.h"
class GeckoSockServer
: public sf::SocketTCP
{
@@ -4,6 +4,7 @@
#pragma once
#include "Common/StdMakeUnique.h"
#include "Core/HW/EXI_Device.h"
class MemoryCardBase;
class CEXIMemoryCard : public IEXIDevice
+2
View File
@@ -4,6 +4,8 @@
#pragma once
#include "Core/HW/EXI_Device.h"
#if HAVE_PORTAUDIO
#include <mutex>
+1
View File
@@ -5,6 +5,7 @@
#pragma once
#include "Core/HW/GCMemcard.h"
#include "DiscIO/Volume.h"
// Uncomment this to write the system data of the memorycard from directory to disc
//#define _WRITE_MC_HEADER 1
+1 -1
View File
@@ -7,7 +7,7 @@
#include <functional>
#include <memory>
#include "Common/CommonTypes.h"
#include "Common/Common.h"
// All the templated and very repetitive MMIO-related code is isolated in this
// file for easier reading. It mostly contains code related to handling methods
+1
View File
@@ -6,6 +6,7 @@
#include <string>
#include "Common/CommonFuncs.h"
#include "Common/CommonTypes.h"
// Enable memory checks in the Debug/DebugFast builds, but NOT in release
@@ -4,6 +4,8 @@
#pragma once
#include "Core/HW/SI_Device.h"
// triforce (GC-AM) baseboard
class CSIDevice_AMBaseboard : public ISIDevice
{
+2
View File
@@ -4,6 +4,8 @@
#pragma once
#include "Core/HW/SI_Device.h"
#include "SFML/Network.hpp"
// GameBoy Advance "Link Cable"
@@ -6,6 +6,8 @@
#pragma once
#include "Common/CommonTypes.h"
// The key structure to use with WiimoteGenerateKey()
struct wiimote_key
{
+4
View File
@@ -4,6 +4,10 @@
#pragma once
#include <string>
#include "Common/CommonTypes.h"
class IWII_IPC_HLE_Device;
class PointerWrap;
@@ -4,6 +4,8 @@
#pragma once
#include "Core/IPC_HLE/WII_IPC_HLE_Device.h"
class CWII_IPC_HLE_Device_usb_kbd : public IWII_IPC_HLE_Device
{
public:

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