Fixing include orders and whitelisting others.

Will be broken until clang SVN 253772 is available on travis/snapshots.
This commit is contained in:
Ben Vanik 2015-11-21 11:34:46 -08:00
parent add68c3743
commit 1956b8708e
7 changed files with 11 additions and 6 deletions

View File

@ -10,8 +10,10 @@
#include "xenia/apu/xaudio2/xaudio2_audio_driver.h"
// Must be included before xaudio2.h so we get the right windows.h include.
// clang-format off
#include "xenia/base/platform_win.h"
#include <xaudio2.h> // NOLINT(build/include_order)
// clang-format on
#include "xenia/apu/apu_flags.h"
#include "xenia/base/clock.h"

View File

@ -20,14 +20,14 @@
#define WIN32_LEAN_AND_MEAN
#endif
#define NOMINMAX
#include <SDKDDKVer.h>
#include <windows.h>
#include <ObjBase.h>
#include <SDKDDKVer.h>
#include <dwmapi.h>
#include <shellapi.h>
#include <shlwapi.h>
#include <shobjidl.h>
#include <dwmapi.h>
#include <tpcshrd.h>
#include <windows.h>
#include <windowsx.h>
#undef DeleteBitmap
#undef DeleteFile

View File

@ -15,10 +15,12 @@
#include "xenia/base/logging.h"
// winsock includes must come after platform_win.h:
// clang-format off
#include "xenia/base/platform_win.h"
#include <mstcpip.h> // NOLINT(build/include_order)
#include <winsock2.h> // NOLINT(build/include_order)
#include <ws2tcpip.h> // NOLINT(build/include_order)
// clang-format on
namespace xe {

View File

@ -8,8 +8,8 @@
*/
#include "xenia/base/main.h"
#include "xenia/cpu/cpu.h"
#include "xenia/cpu/backend/x64/x64_backend.h"
#include "xenia/cpu/cpu.h"
#include "xenia/cpu/frontend/ppc_context.h"
#include "xenia/cpu/frontend/ppc_frontend.h"
#include "xenia/cpu/raw_module.h"

View File

@ -10,8 +10,10 @@
#include "xenia/hid/xinput/xinput_input_driver.h"
// Must be included before xinput.h to avoid windows.h conflicts:
// clang-format off
#include "xenia/base/platform_win.h"
#include <xinput.h> // NOLINT(build/include_order)
// clang-format on
#include "xenia/hid/hid_flags.h"

View File

@ -15,7 +15,6 @@
#include <cstring>
#include <vector>
#include "third_party/crypto/rijndael-alg-fst.h"
#include "third_party/crypto/rijndael-alg-fst.c"
#include "third_party/mspack/lzx.h"
#include "third_party/mspack/lzxd.c"

View File

@ -17,12 +17,12 @@
#include "xenia/base/assert.h"
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/platform_win.h"
#include "xenia/base/profiling.h"
#include "xenia/ui/gl/gl_immediate_drawer.h"
#include "xenia/ui/window.h"
// TODO(benvanik): move win32 code to _win?
#include "xenia/base/platform_win.h"
#include "third_party/GL/wglew.h"
DEFINE_bool(thread_safe_gl, false,