Lines Matching refs:MatchingParen
55 (!Previous.Previous->MatchingParen || in parseAngle()
56 !Previous.Previous->MatchingParen->is(TT_OverloadedOperatorLParen))) in parseAngle()
80 Left->MatchingParen = CurrentToken; in parseAngle()
81 CurrentToken->MatchingParen = Left; in parseAngle()
159 Left->Previous->MatchingParen && in parseParens()
160 Left->Previous->MatchingParen->is(TT_LambdaLSquare)) { in parseParens()
175 } else if (Left->Previous && Left->Previous->MatchingParen && in parseParens()
176 Left->Previous->MatchingParen->is(TT_ObjCBlockLParen)) { in parseParens()
227 Left->MatchingParen = CurrentToken; in parseParens()
228 CurrentToken->MatchingParen = Left; in parseParens()
363 Left->MatchingParen = CurrentToken; in parseSquare()
364 CurrentToken->MatchingParen = Left; in parseSquare()
413 Left->MatchingParen = CurrentToken; in parseBrace()
414 CurrentToken->MatchingParen = Left; in parseBrace()
568 Tok->Previous->MatchingParen && in consumeToken()
569 Tok->Previous->MatchingParen->is(TT_OverloadedOperatorLParen)) { in consumeToken()
571 Tok->Previous->MatchingParen->Type = TT_OverloadedOperator; in consumeToken()
864 CurrentToken->MatchingParen = nullptr; in resetTokenMetadata()
935 Previous = Previous->MatchingParen; in modifyContext()
1036 if (Current.MatchingParen && Current.Next && in determineTokenType()
1040 if (FormatToken *BeforeParen = Current.MatchingParen->Previous) in determineTokenType()
1127 return PreviousNotConst && PreviousNotConst->MatchingParen && in isStartOfName()
1128 PreviousNotConst->MatchingParen->Previous && in isStartOfName()
1129 PreviousNotConst->MatchingParen->Previous->isNot(tok::period) && in isStartOfName()
1130 PreviousNotConst->MatchingParen->Previous->isNot(tok::kw_template); in isStartOfName()
1132 if (PreviousNotConst->is(tok::r_paren) && PreviousNotConst->MatchingParen && in isStartOfName()
1133 PreviousNotConst->MatchingParen->Previous && in isStartOfName()
1134 PreviousNotConst->MatchingParen->Previous->is(tok::kw_decltype)) in isStartOfName()
1151 if (Tok.Previous == Tok.MatchingParen || !Tok.Next || !Tok.MatchingParen) in rParenEndsCast()
1154 FormatToken *LeftOfParens = Tok.MatchingParen->getPreviousNonComment(); in rParenEndsCast()
1159 if (!LeftOfParens->MatchingParen || in rParenEndsCast()
1160 !LeftOfParens->MatchingParen->Previous) in rParenEndsCast()
1162 LeftOfParens = LeftOfParens->MatchingParen->Previous; in rParenEndsCast()
1226 for (FormatToken *Prev = Tok.Previous; Prev != Tok.MatchingParen; in rParenEndsCast()
1268 if (PrevToken->is(tok::r_paren) && PrevToken->MatchingParen && in determineStarAmpUsage()
1269 PrevToken->MatchingParen->Previous && in determineStarAmpUsage()
1270 PrevToken->MatchingParen->Previous->isOneOf(tok::kw_typeof, in determineStarAmpUsage()
1404 if (!Current || (Current->closesScope() && Current->MatchingParen) || in parse()
1622 Next = Next->MatchingParen; in isFunctionDeclarationName()
1642 if (!Next || !Next->is(tok::l_paren) || !Next->MatchingParen) in isFunctionDeclarationName()
1647 if (Next->Next == Next->MatchingParen) in isFunctionDeclarationName()
1650 if (Next->MatchingParen->Next && in isFunctionDeclarationName()
1651 Next->MatchingParen->Next->is(TT_PointerOrReference)) in isFunctionDeclarationName()
1653 for (const FormatToken *Tok = Next->Next; Tok && Tok != Next->MatchingParen; in isFunctionDeclarationName()
1981 (Left.MatchingParen && Left.MatchingParen->is(TT_CastRParen))) in spaceRequiredBetween()
2039 return Right.MatchingParen && in spaceRequiredBetween()
2041 Right.MatchingParen->is(TT_ArrayInitializerLSquare)) || in spaceRequiredBetween()
2043 Right.MatchingParen->is(TT_ArraySubscriptLSquare))); in spaceRequiredBetween()
2051 (Right.is(tok::r_brace) && Right.MatchingParen && in spaceRequiredBetween()
2052 Right.MatchingParen->BlockKind != BK_Block)) in spaceRequiredBetween()
2087 if (Left.is(TT_TemplateCloser) && Left.MatchingParen && in spaceRequiredBetween()
2088 Left.MatchingParen->Previous && in spaceRequiredBetween()
2089 Left.MatchingParen->Previous->is(tok::period)) in spaceRequiredBetween()
2233 Left.MatchingParen && Left.MatchingParen->is(TT_OverloadedOperatorLParen)) in spaceRequiredBefore()
2297 Left.BlockKind != BK_Block && Left.MatchingParen) in mustBreakBefore()
2298 BeforeClosingBrace = Left.MatchingParen->Previous; in mustBreakBefore()
2299 else if (Right.MatchingParen && in mustBreakBefore()
2300 Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
2323 Right.Previous->MatchingParen && in mustBreakBefore()
2324 Right.Previous->MatchingParen->NestingLevel == 0 && in mustBreakBefore()
2453 if (Right.is(tok::r_square) && Right.MatchingParen && in canBreakBefore()
2454 Right.MatchingParen->is(TT_LambdaLSquare)) in canBreakBefore()
2460 return Right.MatchingParen && Right.MatchingParen->BlockKind == BK_Block; in canBreakBefore()