diff options
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
| -rw-r--r-- | clang/lib/Format/UnwrappedLineParser.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.cpp b/clang/lib/Format/UnwrappedLineParser.cpp index 2aa4414d67a..46e59f9227f 100644 --- a/clang/lib/Format/UnwrappedLineParser.cpp +++ b/clang/lib/Format/UnwrappedLineParser.cpp @@ -744,7 +744,7 @@ void UnwrappedLineParser::parseStructuralElement() { } break; case tok::identifier: - if (FormatTok->IsForEachMacro) { + if (FormatTok->is(TT_ForEachMacro)) { parseForOrWhileLoop(); return; } @@ -1323,8 +1323,7 @@ void UnwrappedLineParser::parseNew() { } void UnwrappedLineParser::parseForOrWhileLoop() { - assert((FormatTok->Tok.is(tok::kw_for) || FormatTok->Tok.is(tok::kw_while) || - FormatTok->IsForEachMacro) && + assert(FormatTok->isOneOf(tok::kw_for, tok::kw_while, TT_ForEachMacro) && "'for', 'while' or foreach macro expected"); nextToken(); if (FormatTok->Tok.is(tok::l_paren)) |

