File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ struct DemangleOptions {
75
75
};
76
76
77
77
class Node ;
78
- typedef Node *NodePointer ;
78
+ using NodePointer = Node *;
79
79
80
80
enum class FunctionSigSpecializationParamKind : unsigned {
81
81
// Option Flags use bits 0-5. This give us 6 bits implying 64 entries to
@@ -133,7 +133,7 @@ class Node {
133
133
#include " swift/Demangling/DemangleNodes.def"
134
134
};
135
135
136
- typedef uint64_t IndexType;
136
+ using IndexType = uint64_t ;
137
137
138
138
friend class NodeFactory ;
139
139
@@ -182,10 +182,10 @@ class Node {
182
182
assert (hasIndex ());
183
183
return IndexPayload;
184
184
}
185
-
186
- typedef NodePointer *iterator ;
187
- typedef const NodePointer *const_iterator ;
188
- typedef size_t size_type;
185
+
186
+ using iterator = NodePointer *;
187
+ using const_iterator = const NodePointer *;
188
+ using size_type = size_t ;
189
189
190
190
bool hasChildren () const { return NumChildren != 0 ; }
191
191
size_t getNumChildren () const { return NumChildren; }
Original file line number Diff line number Diff line change @@ -207,8 +207,7 @@ template<typename T> class Vector {
207
207
size_t Capacity = 0 ;
208
208
209
209
public:
210
-
211
- typedef T *iterator;
210
+ using iterator = T *;
212
211
213
212
Vector () { }
214
213
You can’t perform that action at this time.
0 commit comments