diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-05-21 07:29:07 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-05-21 07:29:07 +0000 |
commit | 8bf08681346c0884f5205dd9662df92352e9b04d (patch) | |
tree | 35a9376431a068c60448b8006ee8ef4261462a48 /clang/lib/Format | |
parent | 37e63b1b21123ca1623068d051340f8c974312c1 (diff) | |
download | bcm5719-llvm-8bf08681346c0884f5205dd9662df92352e9b04d.tar.gz bcm5719-llvm-8bf08681346c0884f5205dd9662df92352e9b04d.zip |
[Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc.
llvm-svn: 303501
Diffstat (limited to 'clang/lib/Format')
-rw-r--r-- | clang/lib/Format/TokenAnnotator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp index 49285a913fe..50583a95055 100644 --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/clang/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()) |