diff options
| author | 2016-09-21 00:21:23 +0900 | |
|---|---|---|
| committer | 2016-09-21 11:15:47 +0900 | |
| commit | ebdae19fd226104baec712b9da9939ff82ef3c3a (patch) | |
| tree | e046c0f562fc4400480b2e3257f140e973a9ce6a /src/common | |
| parent | Manually tweak source formatting and then re-run clang-format (diff) | |
| download | yuzu-ebdae19fd226104baec712b9da9939ff82ef3c3a.tar.gz yuzu-ebdae19fd226104baec712b9da9939ff82ef3c3a.tar.xz yuzu-ebdae19fd226104baec712b9da9939ff82ef3c3a.zip | |
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
Diffstat (limited to '')
32 files changed, 13 insertions, 54 deletions
diff --git a/src/common/assert.h b/src/common/assert.h index 70214efae..04e80c87a 100644 --- a/src/common/assert.h +++ b/src/common/assert.h | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cstdlib> | 7 | #include <cstdlib> |
| 8 | |||
| 9 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| 10 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 11 | 10 | ||
| @@ -54,4 +53,4 @@ __declspec(noinline, noreturn) | |||
| 54 | #endif | 53 | #endif |
| 55 | 54 | ||
| 56 | #define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!") | 55 | #define UNIMPLEMENTED() DEBUG_ASSERT_MSG(false, "Unimplemented code!") |
| 57 | #define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) \ No newline at end of file | 56 | #define UNIMPLEMENTED_MSG(_a_, ...) ASSERT_MSG(false, _a_, __VA_ARGS__) |
diff --git a/src/common/bit_field.h b/src/common/bit_field.h index 8d45743e2..030f7caeb 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | #include <cstddef> | 33 | #include <cstddef> |
| 34 | #include <limits> | 34 | #include <limits> |
| 35 | #include <type_traits> | 35 | #include <type_traits> |
| 36 | |||
| 37 | #include "common/common_funcs.h" | 36 | #include "common/common_funcs.h" |
| 38 | 37 | ||
| 39 | /* | 38 | /* |
diff --git a/src/common/break_points.cpp b/src/common/break_points.cpp index 3218db314..4b64a6c7b 100644 --- a/src/common/break_points.cpp +++ b/src/common/break_points.cpp | |||
| @@ -3,10 +3,9 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/break_points.h" | 5 | #include "common/break_points.h" |
| 6 | #include "common/logging/log.h" | ||
| 7 | |||
| 8 | #include <algorithm> | 6 | #include <algorithm> |
| 9 | #include <sstream> | 7 | #include <sstream> |
| 8 | #include "common/logging/log.h" | ||
| 10 | 9 | ||
| 11 | bool BreakPoints::IsAddressBreakPoint(u32 iAddress) const { | 10 | bool BreakPoints::IsAddressBreakPoint(u32 iAddress) const { |
| 12 | auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress; }; | 11 | auto cond = [&iAddress](const TBreakPoint& bp) { return bp.iAddress == iAddress; }; |
diff --git a/src/common/break_points.h b/src/common/break_points.h index 1a5b7d296..e15b9f842 100644 --- a/src/common/break_points.h +++ b/src/common/break_points.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <string> | 7 | #include <string> |
| 8 | #include <vector> | 8 | #include <vector> |
| 9 | |||
| 10 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 11 | 10 | ||
| 12 | class DebugInterface; | 11 | class DebugInterface; |
diff --git a/src/common/chunk_file.h b/src/common/chunk_file.h index 2bf3c774b..5145a3657 100644 --- a/src/common/chunk_file.h +++ b/src/common/chunk_file.h | |||
| @@ -35,7 +35,6 @@ | |||
| 35 | #include <type_traits> | 35 | #include <type_traits> |
| 36 | #include <utility> | 36 | #include <utility> |
| 37 | #include <vector> | 37 | #include <vector> |
| 38 | |||
| 39 | #include "common/assert.h" | 38 | #include "common/assert.h" |
| 40 | #include "common/common_types.h" | 39 | #include "common/common_types.h" |
| 41 | #include "common/logging/log.h" | 40 | #include "common/logging/log.h" |
diff --git a/src/common/code_block.h b/src/common/code_block.h index 099088925..6a55a8e30 100644 --- a/src/common/code_block.h +++ b/src/common/code_block.h | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <cstddef> | 7 | #include <cstddef> |
| 8 | |||
| 9 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 10 | #include "common/memory_util.h" | 9 | #include "common/memory_util.h" |
| 11 | 10 | ||
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 7032c2117..b141e79ed 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM) | 7 | #if !defined(ARCHITECTURE_x86_64) && !defined(_M_ARM) |
| 8 | #include <cstdlib> // for exit | 8 | #include <cstdlib> // for exit |
| 9 | #endif | 9 | #endif |
| 10 | |||
| 11 | #include "common_types.h" | 10 | #include "common_types.h" |
| 12 | 11 | ||
| 13 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) | 12 | #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) |
diff --git a/src/common/emu_window.cpp b/src/common/emu_window.cpp index c86f663a8..6fd6f1987 100644 --- a/src/common/emu_window.cpp +++ b/src/common/emu_window.cpp | |||
| @@ -2,13 +2,11 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "emu_window.h" | ||
| 5 | #include <algorithm> | 6 | #include <algorithm> |
| 6 | #include <cmath> | 7 | #include <cmath> |
| 7 | |||
| 8 | #include "common/assert.h" | 8 | #include "common/assert.h" |
| 9 | #include "common/key_map.h" | 9 | #include "common/key_map.h" |
| 10 | |||
| 11 | #include "emu_window.h" | ||
| 12 | #include "video_core/video_core.h" | 10 | #include "video_core/video_core.h" |
| 13 | 11 | ||
| 14 | void EmuWindow::ButtonPressed(Service::HID::PadState pad) { | 12 | void EmuWindow::ButtonPressed(Service::HID::PadState pad) { |
diff --git a/src/common/emu_window.h b/src/common/emu_window.h index 20131300d..67df63e06 100644 --- a/src/common/emu_window.h +++ b/src/common/emu_window.h | |||
| @@ -6,10 +6,8 @@ | |||
| 6 | 6 | ||
| 7 | #include <tuple> | 7 | #include <tuple> |
| 8 | #include <utility> | 8 | #include <utility> |
| 9 | |||
| 10 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 11 | #include "common/math_util.h" | 10 | #include "common/math_util.h" |
| 12 | |||
| 13 | #include "core/hle/service/hid/hid.h" | 11 | #include "core/hle/service/hid/hid.h" |
| 14 | 12 | ||
| 15 | /** | 13 | /** |
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 96afe2ca0..a0cae11e3 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -16,7 +16,6 @@ | |||
| 16 | #include <shellapi.h> | 16 | #include <shellapi.h> |
| 17 | #include <shlobj.h> // for SHGetFolderPath | 17 | #include <shlobj.h> // for SHGetFolderPath |
| 18 | #include <tchar.h> | 18 | #include <tchar.h> |
| 19 | |||
| 20 | #include "common/string_util.h" | 19 | #include "common/string_util.h" |
| 21 | 20 | ||
| 22 | // 64 bit offsets for windows | 21 | // 64 bit offsets for windows |
diff --git a/src/common/file_util.h b/src/common/file_util.h index b15021a63..204b06f14 100644 --- a/src/common/file_util.h +++ b/src/common/file_util.h | |||
| @@ -11,9 +11,7 @@ | |||
| 11 | #include <string> | 11 | #include <string> |
| 12 | #include <type_traits> | 12 | #include <type_traits> |
| 13 | #include <vector> | 13 | #include <vector> |
| 14 | |||
| 15 | #include "common/common_types.h" | 14 | #include "common/common_types.h" |
| 16 | |||
| 17 | #ifdef _MSC_VER | 15 | #ifdef _MSC_VER |
| 18 | #include "common/string_util.h" | 16 | #include "common/string_util.h" |
| 19 | #endif | 17 | #endif |
diff --git a/src/common/hash.cpp b/src/common/hash.cpp index a46c92553..5aa5118eb 100644 --- a/src/common/hash.cpp +++ b/src/common/hash.cpp | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #if defined(_MSC_VER) | 5 | #if defined(_MSC_VER) |
| 6 | #include <stdlib.h> | 6 | #include <stdlib.h> |
| 7 | #endif | 7 | #endif |
| 8 | |||
| 9 | #include "common_funcs.h" | 8 | #include "common_funcs.h" |
| 10 | #include "common_types.h" | 9 | #include "common_types.h" |
| 11 | #include "hash.h" | 10 | #include "hash.h" |
diff --git a/src/common/key_map.cpp b/src/common/key_map.cpp index e882f5f52..8380ce489 100644 --- a/src/common/key_map.cpp +++ b/src/common/key_map.cpp | |||
| @@ -2,10 +2,9 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/key_map.h" | ||
| 5 | #include <map> | 6 | #include <map> |
| 6 | |||
| 7 | #include "common/emu_window.h" | 7 | #include "common/emu_window.h" |
| 8 | #include "common/key_map.h" | ||
| 9 | 8 | ||
| 10 | namespace KeyMap { | 9 | namespace KeyMap { |
| 11 | 10 | ||
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index b3d6598e4..b4a312948 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -2,13 +2,12 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/logging/backend.h" | ||
| 5 | #include <algorithm> | 6 | #include <algorithm> |
| 6 | #include <array> | 7 | #include <array> |
| 7 | #include <cstdio> | 8 | #include <cstdio> |
| 8 | |||
| 9 | #include "common/assert.h" | 9 | #include "common/assert.h" |
| 10 | #include "common/common_funcs.h" // snprintf compatibility define | 10 | #include "common/common_funcs.h" // snprintf compatibility define |
| 11 | #include "common/logging/backend.h" | ||
| 12 | #include "common/logging/filter.h" | 11 | #include "common/logging/filter.h" |
| 13 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 14 | #include "common/logging/text_formatter.h" | 13 | #include "common/logging/text_formatter.h" |
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 3fe88e4f6..c4fe2acbf 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | #include <cstdarg> | 8 | #include <cstdarg> |
| 9 | #include <string> | 9 | #include <string> |
| 10 | #include <utility> | 10 | #include <utility> |
| 11 | |||
| 12 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 13 | 12 | ||
| 14 | namespace Log { | 13 | namespace Log { |
diff --git a/src/common/logging/filter.cpp b/src/common/logging/filter.cpp index 186e0b621..9aa72cecc 100644 --- a/src/common/logging/filter.cpp +++ b/src/common/logging/filter.cpp | |||
| @@ -2,10 +2,9 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/logging/filter.h" | ||
| 5 | #include <algorithm> | 6 | #include <algorithm> |
| 6 | |||
| 7 | #include "common/logging/backend.h" | 7 | #include "common/logging/backend.h" |
| 8 | #include "common/logging/filter.h" | ||
| 9 | #include "common/string_util.h" | 8 | #include "common/string_util.h" |
| 10 | 9 | ||
| 11 | namespace Log { | 10 | namespace Log { |
diff --git a/src/common/logging/filter.h b/src/common/logging/filter.h index db526fead..b51df61de 100644 --- a/src/common/logging/filter.h +++ b/src/common/logging/filter.h | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <cstddef> | 8 | #include <cstddef> |
| 9 | #include <string> | 9 | #include <string> |
| 10 | |||
| 11 | #include "common/logging/log.h" | 10 | #include "common/logging/log.h" |
| 12 | 11 | ||
| 13 | namespace Log { | 12 | namespace Log { |
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp index 955358553..d61c1696b 100644 --- a/src/common/logging/text_formatter.cpp +++ b/src/common/logging/text_formatter.cpp | |||
| @@ -10,12 +10,11 @@ | |||
| 10 | #include <Windows.h> | 10 | #include <Windows.h> |
| 11 | #endif | 11 | #endif |
| 12 | 12 | ||
| 13 | #include "common/assert.h" | ||
| 14 | #include "common/common_funcs.h" | ||
| 13 | #include "common/logging/backend.h" | 15 | #include "common/logging/backend.h" |
| 14 | #include "common/logging/log.h" | 16 | #include "common/logging/log.h" |
| 15 | #include "common/logging/text_formatter.h" | 17 | #include "common/logging/text_formatter.h" |
| 16 | |||
| 17 | #include "common/assert.h" | ||
| 18 | #include "common/common_funcs.h" | ||
| 19 | #include "common/string_util.h" | 18 | #include "common/string_util.h" |
| 20 | 19 | ||
| 21 | namespace Log { | 20 | namespace Log { |
diff --git a/src/common/misc.cpp b/src/common/misc.cpp index 5938e6289..7be2235b0 100644 --- a/src/common/misc.cpp +++ b/src/common/misc.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <cstddef> | 5 | #include <cstddef> |
| 6 | |||
| 7 | #ifdef _WIN32 | 6 | #ifdef _WIN32 |
| 8 | #include <windows.h> | 7 | #include <windows.h> |
| 9 | #else | 8 | #else |
diff --git a/src/common/profiler.cpp b/src/common/profiler.cpp index 231a0afc1..b40e7205d 100644 --- a/src/common/profiler.cpp +++ b/src/common/profiler.cpp | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cstddef> | 6 | #include <cstddef> |
| 7 | #include <vector> | 7 | #include <vector> |
| 8 | |||
| 9 | #include "common/assert.h" | 8 | #include "common/assert.h" |
| 10 | #include "common/profiler_reporting.h" | 9 | #include "common/profiler_reporting.h" |
| 11 | #include "common/synchronized_wrapper.h" | 10 | #include "common/synchronized_wrapper.h" |
diff --git a/src/common/profiler_reporting.h b/src/common/profiler_reporting.h index fa1ac883f..e9ce6d41c 100644 --- a/src/common/profiler_reporting.h +++ b/src/common/profiler_reporting.h | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include <chrono> | 7 | #include <chrono> |
| 8 | #include <cstddef> | 8 | #include <cstddef> |
| 9 | #include <vector> | 9 | #include <vector> |
| 10 | |||
| 11 | #include "common/synchronized_wrapper.h" | 10 | #include "common/synchronized_wrapper.h" |
| 12 | 11 | ||
| 13 | namespace Common { | 12 | namespace Common { |
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index 9ccd6f135..968854bae 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp | |||
| @@ -2,17 +2,15 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/string_util.h" | ||
| 5 | #include <cctype> | 6 | #include <cctype> |
| 6 | #include <cerrno> | 7 | #include <cerrno> |
| 7 | #include <cstdio> | 8 | #include <cstdio> |
| 8 | #include <cstdlib> | 9 | #include <cstdlib> |
| 9 | #include <cstring> | 10 | #include <cstring> |
| 10 | #include <boost/range/algorithm/transform.hpp> | 11 | #include <boost/range/algorithm/transform.hpp> |
| 11 | |||
| 12 | #include "common/common_paths.h" | 12 | #include "common/common_paths.h" |
| 13 | #include "common/logging/log.h" | 13 | #include "common/logging/log.h" |
| 14 | #include "common/string_util.h" | ||
| 15 | |||
| 16 | #ifdef _MSC_VER | 14 | #ifdef _MSC_VER |
| 17 | #include <Windows.h> | 15 | #include <Windows.h> |
| 18 | #include <codecvt> | 16 | #include <codecvt> |
diff --git a/src/common/string_util.h b/src/common/string_util.h index 6ffd735f4..075bf4ecb 100644 --- a/src/common/string_util.h +++ b/src/common/string_util.h | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | #include <sstream> | 10 | #include <sstream> |
| 11 | #include <string> | 11 | #include <string> |
| 12 | #include <vector> | 12 | #include <vector> |
| 13 | |||
| 14 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 15 | 14 | ||
| 16 | namespace Common { | 15 | namespace Common { |
diff --git a/src/common/swap.h b/src/common/swap.h index 72c50d789..e241c9f73 100644 --- a/src/common/swap.h +++ b/src/common/swap.h | |||
| @@ -24,9 +24,7 @@ | |||
| 24 | #elif defined(__FreeBSD__) | 24 | #elif defined(__FreeBSD__) |
| 25 | #include <sys/endian.h> | 25 | #include <sys/endian.h> |
| 26 | #endif | 26 | #endif |
| 27 | |||
| 28 | #include <cstring> | 27 | #include <cstring> |
| 29 | |||
| 30 | #include "common/common_types.h" | 28 | #include "common/common_types.h" |
| 31 | 29 | ||
| 32 | // GCC 4.6+ | 30 | // GCC 4.6+ |
diff --git a/src/common/symbols.h b/src/common/symbols.h index 6044c9db6..f5a48e05a 100644 --- a/src/common/symbols.h +++ b/src/common/symbols.h | |||
| @@ -7,7 +7,6 @@ | |||
| 7 | #include <map> | 7 | #include <map> |
| 8 | #include <string> | 8 | #include <string> |
| 9 | #include <utility> | 9 | #include <utility> |
| 10 | |||
| 11 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 12 | 11 | ||
| 13 | struct TSymbol { | 12 | struct TSymbol { |
diff --git a/src/common/thread.cpp b/src/common/thread.cpp index bee607ce9..6e7b39b9a 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "common/thread.h" | 5 | #include "common/thread.h" |
| 6 | |||
| 7 | #ifdef __APPLE__ | 6 | #ifdef __APPLE__ |
| 8 | #include <mach/mach.h> | 7 | #include <mach/mach.h> |
| 9 | #elif defined(_WIN32) | 8 | #elif defined(_WIN32) |
| @@ -16,7 +15,6 @@ | |||
| 16 | #endif | 15 | #endif |
| 17 | #include <sched.h> | 16 | #include <sched.h> |
| 18 | #endif | 17 | #endif |
| 19 | |||
| 20 | #ifndef _WIN32 | 18 | #ifndef _WIN32 |
| 21 | #include <unistd.h> | 19 | #include <unistd.h> |
| 22 | #endif | 20 | #endif |
diff --git a/src/common/thread.h b/src/common/thread.h index 499c151c2..9c08be7e3 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | #include <cstddef> | 8 | #include <cstddef> |
| 9 | #include <mutex> | 9 | #include <mutex> |
| 10 | #include <thread> | 10 | #include <thread> |
| 11 | |||
| 12 | #include "common/common_types.h" | 11 | #include "common/common_types.h" |
| 13 | 12 | ||
| 14 | // Support for C++11's thread_local keyword was surprisingly spotty in compilers until very | 13 | // Support for C++11's thread_local keyword was surprisingly spotty in compilers until very |
diff --git a/src/common/thread_queue_list.h b/src/common/thread_queue_list.h index 0dcf785b6..edd0e4a3f 100644 --- a/src/common/thread_queue_list.h +++ b/src/common/thread_queue_list.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <deque> | 8 | #include <deque> |
| 9 | |||
| 10 | #include <boost/range/algorithm_ext/erase.hpp> | 9 | #include <boost/range/algorithm_ext/erase.hpp> |
| 11 | 10 | ||
| 12 | namespace Common { | 11 | namespace Common { |
diff --git a/src/common/timer.cpp b/src/common/timer.cpp index 27560eb0b..e843cbd9c 100644 --- a/src/common/timer.cpp +++ b/src/common/timer.cpp | |||
| @@ -3,7 +3,6 @@ | |||
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <time.h> | 5 | #include <time.h> |
| 6 | |||
| 7 | #ifdef _WIN32 | 6 | #ifdef _WIN32 |
| 8 | #include <Windows.h> | 7 | #include <Windows.h> |
| 9 | #include <mmsystem.h> | 8 | #include <mmsystem.h> |
| @@ -11,7 +10,6 @@ | |||
| 11 | #else | 10 | #else |
| 12 | #include <sys/time.h> | 11 | #include <sys/time.h> |
| 13 | #endif | 12 | #endif |
| 14 | |||
| 15 | #include "common/common_types.h" | 13 | #include "common/common_types.h" |
| 16 | #include "common/string_util.h" | 14 | #include "common/string_util.h" |
| 17 | #include "common/timer.h" | 15 | #include "common/timer.h" |
diff --git a/src/common/x64/cpu_detect.cpp b/src/common/x64/cpu_detect.cpp index 19f1a4030..ac37c42bc 100644 --- a/src/common/x64/cpu_detect.cpp +++ b/src/common/x64/cpu_detect.cpp | |||
| @@ -2,14 +2,12 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "cpu_detect.h" | ||
| 5 | #include <cstring> | 6 | #include <cstring> |
| 6 | #include <string> | 7 | #include <string> |
| 7 | #include <thread> | 8 | #include <thread> |
| 8 | |||
| 9 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 10 | 10 | ||
| 11 | #include "cpu_detect.h" | ||
| 12 | |||
| 13 | namespace Common { | 11 | namespace Common { |
| 14 | 12 | ||
| 15 | #ifndef _MSC_VER | 13 | #ifndef _MSC_VER |
diff --git a/src/common/x64/emitter.cpp b/src/common/x64/emitter.cpp index 7cf350b4a..b69e4bd5e 100644 --- a/src/common/x64/emitter.cpp +++ b/src/common/x64/emitter.cpp | |||
| @@ -15,16 +15,14 @@ | |||
| 15 | // Official SVN repository and contact information can be found at | 15 | // Official SVN repository and contact information can be found at |
| 16 | // http://code.google.com/p/dolphin-emu/ | 16 | // http://code.google.com/p/dolphin-emu/ |
| 17 | 17 | ||
| 18 | #include "emitter.h" | ||
| 18 | #include <cinttypes> | 19 | #include <cinttypes> |
| 19 | #include <cstring> | 20 | #include <cstring> |
| 20 | 21 | #include "abi.h" | |
| 21 | #include "common/assert.h" | 22 | #include "common/assert.h" |
| 22 | #include "common/logging/log.h" | 23 | #include "common/logging/log.h" |
| 23 | #include "common/memory_util.h" | 24 | #include "common/memory_util.h" |
| 24 | |||
| 25 | #include "abi.h" | ||
| 26 | #include "cpu_detect.h" | 25 | #include "cpu_detect.h" |
| 27 | #include "emitter.h" | ||
| 28 | 26 | ||
| 29 | namespace Gen { | 27 | namespace Gen { |
| 30 | 28 | ||
| @@ -222,7 +220,7 @@ void OpArg::WriteVex(XEmitter* emit, X64Reg regOp1, X64Reg regOp2, int L, int pp | |||
| 222 | void OpArg::WriteRest(XEmitter* emit, int extraBytes, X64Reg _operandReg, | 220 | void OpArg::WriteRest(XEmitter* emit, int extraBytes, X64Reg _operandReg, |
| 223 | bool warn_64bit_offset) const { | 221 | bool warn_64bit_offset) const { |
| 224 | if (_operandReg == INVALID_REG) | 222 | if (_operandReg == INVALID_REG) |
| 225 | _operandReg = (X64Reg)this->operandReg; | 223 | _operandReg = (X64Reg) this->operandReg; |
| 226 | int mod = 0; | 224 | int mod = 0; |
| 227 | int ireg = indexReg; | 225 | int ireg = indexReg; |
| 228 | bool SIB = false; | 226 | bool SIB = false; |
diff --git a/src/common/x64/emitter.h b/src/common/x64/emitter.h index 6c9dc3d6b..7d7cdde16 100644 --- a/src/common/x64/emitter.h +++ b/src/common/x64/emitter.h | |||
| @@ -18,7 +18,6 @@ | |||
| 18 | #pragma once | 18 | #pragma once |
| 19 | 19 | ||
| 20 | #include <cstddef> | 20 | #include <cstddef> |
| 21 | |||
| 22 | #include "common/assert.h" | 21 | #include "common/assert.h" |
| 23 | #include "common/bit_set.h" | 22 | #include "common/bit_set.h" |
| 24 | #include "common/code_block.h" | 23 | #include "common/code_block.h" |