forked from OSchip/llvm-project
[Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc.
llvm-svn: 303501
This commit is contained in:
parent
37e63b1b21
commit
8bf0868134
|
@ -576,12 +576,13 @@ private:
|
|||
}
|
||||
break;
|
||||
case tok::kw_for:
|
||||
if (Style.Language == FormatStyle::LK_JavaScript)
|
||||
if (Style.Language == FormatStyle::LK_JavaScript) {
|
||||
if (Tok->Previous && Tok->Previous->is(tok::period))
|
||||
break;
|
||||
// JS' for await ( ...
|
||||
if (CurrentToken && CurrentToken->is(Keywords.kw_await))
|
||||
next();
|
||||
}
|
||||
Contexts.back().ColonIsForRangeExpr = true;
|
||||
next();
|
||||
if (!parseParens())
|
||||
|
|
Loading…
Reference in New Issue