Skip to content

[gardening][Demangling] Replace typedef with using #15591

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions include/swift/Demangling/Demangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ struct DemangleOptions {
};

class Node;
typedef Node *NodePointer;
using NodePointer = Node *;

enum class FunctionSigSpecializationParamKind : unsigned {
// Option Flags use bits 0-5. This give us 6 bits implying 64 entries to
Expand Down Expand Up @@ -133,7 +133,7 @@ class Node {
#include "swift/Demangling/DemangleNodes.def"
};

typedef uint64_t IndexType;
using IndexType = uint64_t;

friend class NodeFactory;

Expand Down Expand Up @@ -182,10 +182,10 @@ class Node {
assert(hasIndex());
return IndexPayload;
}
typedef NodePointer *iterator;
typedef const NodePointer *const_iterator;
typedef size_t size_type;

using iterator = NodePointer *;
using const_iterator = const NodePointer *;
using size_type = size_t;

bool hasChildren() const { return NumChildren != 0; }
size_t getNumChildren() const { return NumChildren; }
Expand Down
3 changes: 1 addition & 2 deletions include/swift/Demangling/Demangler.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ template<typename T> class Vector {
size_t Capacity = 0;

public:

typedef T *iterator;
using iterator = T *;

Vector() { }

Expand Down