From: Craig Topper Date: Sun, 21 May 2017 07:29:07 +0000 (+0000) Subject: [Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=adf03c776be767d5d56fdb20c56ec4f6df0b33e6;p=clang [Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303501 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/TokenAnnotator.cpp b/lib/Format/TokenAnnotator.cpp index 49285a913f..50583a9505 100644 --- a/lib/Format/TokenAnnotator.cpp +++ b/lib/Format/TokenAnnotator.cpp @@ -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())