Skip to content

Commit 6058797

Browse files
committed
[PrintAsObjC] Reorganize DeclAndTypePrinter fields to make more sense
No functionality change
1 parent 11279ee commit 6058797

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

lib/PrintAsObjC/DeclAndTypePrinter.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,20 @@ class DeclAndTypePrinter::Implementation
9999
friend ASTVisitor;
100100
friend TypeVisitor;
101101

102-
using NameAndOptional = std::pair<StringRef, bool>;
103-
llvm::DenseMap<std::pair<Identifier, Identifier>, NameAndOptional>
104-
specialNames;
105-
Identifier ID_CFTypeRef;
106-
107102
ModuleDecl &M;
108103
raw_ostream &os;
104+
const DelayedMemberSet &delayedMembers;
105+
AccessLevel minRequiredAccess;
109106

110107
SmallVector<const FunctionType *, 4> openFunctionTypes;
111-
const DelayedMemberSet &delayedMembers;
112108

109+
using NameAndOptional = std::pair<StringRef, bool>;
110+
llvm::DenseMap<std::pair<Identifier, Identifier>, NameAndOptional>
111+
specialNames;
112+
113+
// Cached for convenience.
114+
Identifier ID_CFTypeRef;
113115
Optional<Type> NSCopyingType;
114-
AccessLevel minRequiredAccess;
115116

116117
public:
117118
explicit Implementation(ModuleDecl &mod, raw_ostream &out,

0 commit comments

Comments
 (0)