Skip to content

Commit 7702023

Browse files
committed
[clang-format][NFC] Rename kind to Kind
1 parent 0b021c4 commit 7702023

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/lib/Format/UnwrappedLineParser.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ bool UnwrappedLineParser::parseLevel(const FormatToken *OpeningBrace,
365365
nextToken();
366366
continue;
367367
}
368-
tok::TokenKind kind = FormatTok->Tok.getKind();
368+
tok::TokenKind Kind = FormatTok->Tok.getKind();
369369
if (FormatTok->getType() == TT_MacroBlockBegin)
370-
kind = tok::l_brace;
370+
Kind = tok::l_brace;
371371
else if (FormatTok->getType() == TT_MacroBlockEnd)
372-
kind = tok::r_brace;
372+
Kind = tok::r_brace;
373373

374374
auto ParseDefault = [this, OpeningBrace, IfKind, &IfLBrace, &HasDoWhile,
375375
&HasLabel, &StatementCount] {
@@ -380,7 +380,7 @@ bool UnwrappedLineParser::parseLevel(const FormatToken *OpeningBrace,
380380
assert(StatementCount > 0 && "StatementCount overflow!");
381381
};
382382

383-
switch (kind) {
383+
switch (Kind) {
384384
case tok::comment:
385385
nextToken();
386386
addUnwrappedLine();
@@ -3280,8 +3280,8 @@ void UnwrappedLineParser::parseSwitch() {
32803280
}
32813281

32823282
// Operators that can follow a C variable.
3283-
static bool isCOperatorFollowingVar(tok::TokenKind kind) {
3284-
switch (kind) {
3283+
static bool isCOperatorFollowingVar(tok::TokenKind Kind) {
3284+
switch (Kind) {
32853285
case tok::ampamp:
32863286
case tok::ampequal:
32873287
case tok::arrow:

0 commit comments

Comments
 (0)