Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(678)

Unified Diff: snapshot/cpu_context.h

Issue 700143004: C++11: Use type aliases instead of typedefs (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « minidump/test/minidump_writable_test_util.cc ('k') | snapshot/mac/mach_o_image_reader_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/cpu_context.h
diff --git a/snapshot/cpu_context.h b/snapshot/cpu_context.h
index 8b72c459328df879ae288c5731f997feb4ee6d96..bfef4d09df0415d1c41c4c8ab3d9b3ff08a8e494 100644
--- a/snapshot/cpu_context.h
+++ b/snapshot/cpu_context.h
@@ -23,7 +23,7 @@ namespace crashpad {
//! \brief A context structure carrying 32-bit x86 CPU state.
struct CPUContextX86 {
- typedef uint8_t X87Register[10];
+ using X87Register = uint8_t[10];
union X87OrMMXRegister {
struct {
@@ -36,7 +36,7 @@ struct CPUContextX86 {
};
};
- typedef uint8_t XMMRegister[16];
+ using XMMRegister = uint8_t[16];
struct Fxsave {
uint16_t fcw; // FPU control word
@@ -121,9 +121,9 @@ struct CPUContextX86 {
//! \brief A context structure carrying x86_64 CPU state.
struct CPUContextX86_64 {
- typedef CPUContextX86::X87Register X87Register;
- typedef CPUContextX86::X87OrMMXRegister X87OrMMXRegister;
- typedef CPUContextX86::XMMRegister XMMRegister;
+ using X87Register = CPUContextX86::X87Register;
+ using X87OrMMXRegister = CPUContextX86::X87OrMMXRegister;
+ using XMMRegister = CPUContextX86::XMMRegister;
struct Fxsave {
uint16_t fcw; // FPU control word
« no previous file with comments | « minidump/test/minidump_writable_test_util.cc ('k') | snapshot/mac/mach_o_image_reader_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698