Lines Matching defs:Prev
243 const auto &Prev = *CurrentToken->Previous;
251 Prev.is(TT_BinaryOperator)) {
252 const auto Precedence = Prev.getPrecedence();
256 if (Prev.isOneOf(tok::question, tok::colon) && !Style.isProto())
340 FormatToken *Prev = &OpeningParen;
341 while (Prev->isNot(tok::kw_operator)) {
342 Prev = Prev->Previous;
343 assert(Prev && "Expect a kw_operator prior to the OperatorLParen!");
350 Prev->Previous && Prev->Previous->isOneOf(tok::period, tok::arrow);
413 if (FormatToken *Prev = OpeningParen.Previous) {
414 if (Prev->is(TT_TableGenCondOperator)) {
478 FormatToken *Prev = CurrentToken->getPreviousNonComment();
479 if (Prev) {
480 FormatToken *PrevPrev = Prev->getPreviousNonComment();
483 PrevPrev->isNot(TT_TypeName) && Prev->isPointerOrReference() &&
485 Prev->setType(TT_BinaryOperator);
1296 const auto *Prev = CurrentToken->getPreviousNonComment();
1297 if (Prev && Prev->is(tok::r_square) && Prev->is(TT_AttributeSquare) &&
1420 FormatToken *Prev = Tok->getPreviousNonComment();
1421 if (!Prev)
1423 if (Prev->isOneOf(tok::r_paren, tok::kw_noexcept) ||
1424 Prev->ClosesRequiresClause) {
1426 } else if (Prev->is(tok::kw_try)) {
1428 FormatToken *PrevPrev = Prev->getPreviousNonComment();
1435 if (Prev->isAccessSpecifierKeyword())
1515 const FormatToken *Prev = Tok->getPreviousNonComment();
1524 if (!Prev || !(PrevPrev = Prev->getPreviousNonComment()))
1527 if (Keywords.isVerilogIdentifier(*Prev) &&
1532 if (Prev->is(Keywords.kw_verilogHash) &&
1537 if (Keywords.isVerilogIdentifier(*Prev) && PrevPrev->is(tok::r_paren))
1540 if (Keywords.isVerilogIdentifier(*Prev) && PrevPrev->is(tok::comma)) {
2667 auto *Prev = LeftOfParens->MatchingParen->getPreviousNonComment();
2668 if (Prev &&
2669 Prev->isOneOf(tok::kw_const_cast, tok::kw_dynamic_cast,
2881 for (auto *Prev = BeforeRParen; Prev != LParen; Prev = Prev->Previous) {
2882 if (Prev->is(tok::r_paren)) {
2883 if (Prev->is(TT_CastRParen))
2885 Prev = Prev->MatchingParen;
2886 if (!Prev)
2888 if (Prev->is(TT_FunctionTypeLParen))
2892 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon))
3198 FormatToken *Prev = Current->getPreviousNonComment();
3199 if (Prev && Prev->is(tok::string_literal) &&
3200 (Prev == Start || Prev->endsSequence(tok::string_literal, tok::plus,
3202 Prev->setType(TT_StringInConcatenation);
3634 const auto *Prev = Tok->Previous;
3636 if (Prev && Prev->is(tok::tilde))
3637 Prev = Prev->Previous;
3639 if (!Prev || !Prev->endsSequence(tok::coloncolon, tok::identifier))
3642 assert(Prev->Previous);
3643 return Prev->Previous->TokenText == Tok->TokenText;
3974 const FormatToken *Prev = Current->Previous;
3976 if (Prev->is(BK_BracedInit) && Prev->opensScope()) {
3981 } else if (Prev->is(TT_VerilogMultiLineListLParen)) {
4013 const auto &Children = Prev->Children;
4028 if (Prev->Children.size() == 1) {
4029 FormatToken &LastOfChild = *Prev->Children[0]->Last;
4033 if (Current->MustBreakBefore || Prev->Children.size() > 1 ||
4034 (Prev->Children.size() == 1 &&
4035 Prev->Children[0]->First->MustBreakBefore) ||
4037 Current->TotalLength = Prev->TotalLength + Style.ColumnLimit;
4039 Current->TotalLength = Prev->TotalLength + Current->ColumnWidth +