projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37e63b1
)
[Format] Add curly braces to suppress a -Wmisleading-indentation warning from gcc.
author
Craig Topper
<craig.topper@gmail.com>
Sun, 21 May 2017 07:29:07 +0000
(07:29 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sun, 21 May 2017 07:29:07 +0000
(07:29 +0000)
llvm-svn: 303501
clang/lib/Format/TokenAnnotator.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/TokenAnnotator.cpp
b/clang/lib/Format/TokenAnnotator.cpp
index
49285a9
..
50583a9
100644
(file)
--- 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())