Modernize typedefs with `using`.
Replace many occurences of `typedef` with `using`. For now,
do not update typedefs for function types and aligned types
and do not touch some parts such as jvmti or dmtracedump.
Test: m
Change-Id: Ie97ecbc5abf7e7109ef4b01f208752e2dc26c36d
diff --git a/runtime/monitor.h b/runtime/monitor.h
index 99e071e..dd4c21c 100644
--- a/runtime/monitor.h
+++ b/runtime/monitor.h
@@ -44,7 +44,7 @@
template<class T> class Handle;
class StackVisitor;
class Thread;
-typedef uint32_t MonitorId;
+using MonitorId = uint32_t;
namespace mirror {
class Object;
@@ -452,7 +452,7 @@
size_t DeflateMonitors() REQUIRES(!monitor_list_lock_) REQUIRES(Locks::mutator_lock_);
size_t Size() REQUIRES(!monitor_list_lock_);
- typedef std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>> Monitors;
+ using Monitors = std::list<Monitor*, TrackingAllocator<Monitor*, kAllocatorTagMonitorList>>;
private:
// During sweeping we may free an object and on a separate thread have an object created using