From 4f990714b13e0b4446305a5411648a1a9ae42a7a Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Wed, 14 Jul 2021 12:45:13 +0100 Subject: 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 --- compiler/optimizing/nodes.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 939c49f9a6..69ca520f5a 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -194,7 +194,7 @@ class HInstructionList : public ValueObject { class ReferenceTypeInfo : ValueObject { public: - typedef Handle TypeHandle; + using TypeHandle = Handle; static ReferenceTypeInfo Create(TypeHandle type_handle, bool is_exact); @@ -5705,7 +5705,7 @@ class HUShr final : public HBinaryOperation { template static T Compute(T value, int32_t distance, int32_t max_shift_distance) { - typedef typename std::make_unsigned::type V; + using V = std::make_unsigned_t; V ux = static_cast(value); return static_cast(ux >> (distance & max_shift_distance)); } @@ -5862,7 +5862,7 @@ class HRor final : public HBinaryOperation { template static T Compute(T value, int32_t distance, int32_t max_shift_value) { - typedef typename std::make_unsigned::type V; + using V = std::make_unsigned_t; V ux = static_cast(value); if ((distance & max_shift_value) == 0) { return static_cast(ux); -- cgit v1.2.3-59-g8ed1b