Skip to content

Commit 13346ea

Browse files
committed
rework init order
1 parent ab8712a commit 13346ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Support/Mustache.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Token {
6060

6161
Token(std::string Str)
6262
: TokenType(Type::Text), RawBody(std::move(Str)), TokenBody(RawBody),
63-
Accessor({}), Indentation(0) {};
63+
AccessorValue({}), Indentation(0) {};
6464

6565
Token(std::string RawBody, std::string TokenBody, char Identifier)
6666
: RawBody(std::move(RawBody)), TokenBody(std::move(TokenBody)),
@@ -71,10 +71,10 @@ class Token {
7171
StringRef AccessorStr(this->TokenBody);
7272
if (TokenType != Type::Variable)
7373
AccessorStr = AccessorStr.substr(1);
74-
Accessor = splitMustacheString(StringRef(AccessorStr).trim());
74+
AccessorValue = splitMustacheString(StringRef(AccessorStr).trim());
7575
}
7676

77-
Accessor getAccessor() const { return Accessor; }
77+
Accessor getAccessor() const { return AccessorValue; }
7878

7979
Type getType() const { return TokenType; }
8080

@@ -106,7 +106,7 @@ class Token {
106106
std::string RawBody;
107107
// TokenBody is the original string with the identifier removed.
108108
std::string TokenBody;
109-
Accessor Accessor;
109+
Accessor AccessorValue;
110110
size_t Indentation;
111111
};
112112

0 commit comments

Comments
 (0)