Lines Matching defs:Prev
247 const auto &Prev = *CurrentToken->Previous;
255 Prev.is(TT_BinaryOperator) &&
256 (Prev.isOneOf(tok::pipepipe, tok::ampamp) ||
257 Prev.getPrecedence() == prec::Equality)) {
260 if (Prev.isOneOf(tok::question, tok::colon) && !Style.isProto())
344 FormatToken *Prev = &OpeningParen;
345 while (Prev->isNot(tok::kw_operator)) {
346 Prev = Prev->Previous;
347 assert(Prev && "Expect a kw_operator prior to the OperatorLParen!");
354 Prev->Previous && Prev->Previous->isOneOf(tok::period, tok::arrow);
419 if (FormatToken *Prev = OpeningParen.Previous) {
420 if (Prev->is(TT_TableGenCondOperator)) {
479 const auto &Prev = *CurrentToken->Previous;
480 if (Prev.is(TT_PointerOrReference) &&
481 Prev.Previous->isOneOf(tok::l_paren, tok::coloncolon)) {
486 if (Prev.is(TT_BinaryOperator))
489 if (Prev.is(TT_PointerOrReference) && Prev.Previous == &OpeningParen)
564 if ((Prev.isOneOf(tok::kw_const, tok::kw_auto) ||
565 Prev.isTypeName(LangOpts)) &&
1293 const auto *Prev = CurrentToken->getPreviousNonComment();
1294 if (Prev && Prev->is(tok::r_square) && Prev->is(TT_AttributeSquare) &&
1410 for (auto *Prev = Tok->Previous;
1411 Prev && !Prev->isOneOf(tok::semi, tok::l_paren);
1412 Prev = Prev->Previous) {
1413 if (Prev->isPointerOrReference())
1414 Prev->setFinalizedType(TT_PointerOrReference);
1423 FormatToken *Prev = Tok->getPreviousNonComment();
1424 if (!Prev)
1426 if (Prev->isOneOf(tok::r_paren, tok::kw_noexcept) ||
1427 Prev->ClosesRequiresClause) {
1429 } else if (Prev->is(tok::kw_try)) {
1431 FormatToken *PrevPrev = Prev->getPreviousNonComment();
1438 if (Prev->isAccessSpecifierKeyword())
1519 const FormatToken *Prev = Tok->getPreviousNonComment();
1528 if (!Prev || !(PrevPrev = Prev->getPreviousNonComment()))
1531 if (Keywords.isVerilogIdentifier(*Prev) &&
1536 if (Prev->is(Keywords.kw_verilogHash) &&
1541 if (Keywords.isVerilogIdentifier(*Prev) && PrevPrev->is(tok::r_paren))
1544 if (Keywords.isVerilogIdentifier(*Prev) && PrevPrev->is(tok::comma)) {
2679 auto *Prev = LeftOfParens->MatchingParen->getPreviousNonComment();
2680 if (Prev &&
2681 Prev->isOneOf(tok::kw_const_cast, tok::kw_dynamic_cast,
2871 for (const auto *Prev = BeforeRParen; Prev->is(tok::identifier);) {
2872 Prev = Prev->Previous;
2873 if (Prev->is(tok::coloncolon))
2874 Prev = Prev->Previous;
2875 if (Prev == LParen)
2906 const auto *Prev = BeforeRParen;
2909 if (Prev->is(tok::r_paren)) {
2910 if (Prev->is(TT_CastRParen))
2912 Prev = Prev->MatchingParen;
2913 if (!Prev)
2915 Prev = Prev->Previous;
2916 if (!Prev || Prev->isNot(tok::r_paren))
2918 Prev = Prev->MatchingParen;
2919 return Prev && Prev->is(TT_FunctionTypeLParen);
2923 for (Prev = BeforeRParen; Prev != LParen; Prev = Prev->Previous)
2924 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon))
3243 FormatToken *Prev = Current->getPreviousNonComment();
3244 if (Prev && Prev->is(tok::string_literal) &&
3245 (Prev == Start || Prev->endsSequence(tok::string_literal, tok::plus,
3247 Prev->setType(TT_StringInConcatenation);
3678 const auto *Prev = Tok->Previous;
3680 if (Prev && Prev->is(tok::tilde))
3681 Prev = Prev->Previous;
3683 if (!Prev || !Prev->endsSequence(tok::coloncolon, tok::identifier))
3686 assert(Prev->Previous);
3687 return Prev->Previous->TokenText == Tok->TokenText;
3762 const auto *Prev = Current.getPreviousNonComment();
3763 assert(Prev);
3765 if (Prev->is(tok::coloncolon))
3766 Prev = Prev->Previous;
3768 if (!Prev)
3771 const auto &Previous = *Prev;
4050 const FormatToken *Prev = Current->Previous;
4052 if (Prev->is(BK_BracedInit) && Prev->opensScope()) {
4057 } else if (Prev->is(TT_VerilogMultiLineListLParen)) {
4089 const auto &Children = Prev->Children;
4104 if (Prev->Children.size() == 1) {
4105 FormatToken &LastOfChild = *Prev->Children[0]->Last;
4109 if (Current->MustBreakBefore || Prev->Children.size() > 1 ||
4110 (Prev->Children.size() == 1 &&
4111 Prev->Children[0]->First->MustBreakBefore) ||
4113 Current->TotalLength = Prev->TotalLength + Style.ColumnLimit;
4115 Current->TotalLength = Prev->TotalLength + Current->ColumnWidth +