diff options
Diffstat (limited to 'clang/lib/Format/Format.cpp')
| -rw-r--r-- | clang/lib/Format/Format.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index a6c11dcd7ad..b304e2bf3d7 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -806,6 +806,7 @@ private: if (Index == 0 || Line.Tokens[Index - 1].Tok.is(tok::l_paren) || Line.Tokens[Index - 1].Tok.is(tok::comma) || Line.Tokens[Index - 1].Tok.is(tok::kw_return) || + Line.Tokens[Index - 1].Tok.is(tok::colon) || Annotations[Index - 1].Type == TokenAnnotation::TT_BinaryOperator) return TokenAnnotation::TT_UnaryOperator; |

