• Home
  • Raw
  • Download

Lines Matching refs:isOneOf

91       if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) ||  in parseAngle()
92 (CurrentToken->isOneOf(tok::colon, tok::question) && InExprContext)) in parseAngle()
100 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle()
142 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_decltype, in parseParens()
180 Left->Previous && Left->Previous->isOneOf(tok::kw_for, tok::kw_catch); in parseParens()
190 bool ProbablyFunctionType = CurrentToken->isOneOf(tok::star, tok::amp); in parseParens()
206 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens()
215 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
237 Tok->isOneOf(tok::star, tok::amp, tok::ampamp)) in parseParens()
267 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
276 if (CurrentToken->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens()
279 if (CurrentToken->isOneOf(tok::semi, tok::colon)) in parseParens()
313 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
316 Parent->isOneOf(TT_ObjCForIn, TT_CastRParen) || in parseSquare()
326 Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare()
330 Parent->isOneOf(TT_BinaryOperator, TT_TemplateCloser, tok::at, in parseSquare()
374 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare()
418 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
421 if (CurrentToken->isOneOf(tok::colon, tok::l_brace)) { in parseBrace()
496 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) || in consumeToken()
522 !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) { in consumeToken()
523 if (Tok->Previous->isOneOf(tok::r_paren, tok::kw_noexcept)) in consumeToken()
528 Tok->Next->isOneOf(tok::r_paren, tok::comma)) { in consumeToken()
580 !Tok->Previous->isOneOf(tok::kw_decltype, tok::kw___attribute, in consumeToken()
615 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
616 if (CurrentToken->isOneOf(tok::star, tok::amp)) in consumeToken()
620 CurrentToken->Previous->isOneOf(TT_BinaryOperator, tok::comma)) in consumeToken()
631 Tok->Next->isOneOf(tok::semi, tok::comma, tok::colon, tok::r_paren, in consumeToken()
692 CurrentToken->isOneOf(Keywords.kw_mark, Keywords.kw_option)) { in parsePragma()
773 CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier, in parseLine()
858 if (!CurrentToken->isOneOf(TT_LambdaLSquare, TT_ForEachMacro, in resetTokenMetadata()
923 !Line.First->isOneOf(tok::kw_template, tok::kw_using, tok::kw_return) && in modifyContext()
932 !Previous->Previous->isOneOf(tok::comma, tok::semi); in modifyContext()
934 if (Previous->isOneOf(tok::r_square, tok::r_paren)) { in modifyContext()
941 if (Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator) && in modifyContext()
942 Previous->isOneOf(tok::star, tok::amp, tok::ampamp) && in modifyContext()
950 } else if (Current.isOneOf(tok::kw_return, tok::kw_throw)) { in modifyContext()
960 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in modifyContext()
962 Previous && Previous->isOneOf(tok::star, tok::amp); in modifyContext()
969 } else if (Current.isOneOf(tok::semi, tok::exclaim)) { in modifyContext()
989 } else if (Current.isOneOf(tok::kw_auto, tok::kw___auto_type)) { in determineTokenType()
997 } else if (Current.isOneOf(tok::star, tok::amp, tok::ampamp)) { in determineTokenType()
1002 } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret)) { in determineTokenType()
1006 } else if (Current.isOneOf(tok::minusminus, tok::plusplus)) { in determineTokenType()
1008 } else if (Current.isOneOf(tok::exclaim, tok::tilde)) { in determineTokenType()
1038 !Current.Next->isOneOf(tok::semi, tok::colon, tok::l_brace, in determineTokenType()
1066 PreviousNoComment->isOneOf(tok::comma, tok::l_brace)) in determineTokenType()
1069 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
1073 } else if (Current.isOneOf(tok::identifier, tok::kw_const) && in determineTokenType()
1075 !Current.Previous->isOneOf(tok::equal, tok::at) && in determineTokenType()
1092 Current.Previous->isOneOf(TT_JavaAnnotation, in determineTokenType()
1108 if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof)) in isStartOfName()
1138 PreviousNotConst->isOneOf(tok::identifier, tok::kw_auto)) || in isStartOfName()
1168 !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case, in rParenEndsCast()
1174 if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator, in rParenEndsCast()
1190 Tok.Next->isOneOf(tok::kw_sizeof, tok::kw_alignof))) in rParenEndsCast()
1196 Tok.Previous->isOneOf(TT_PointerOrReference, TT_TemplateCloser) || in rParenEndsCast()
1199 Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace, tok::greater); in rParenEndsCast()
1211 if (Tok.Next->isOneOf(tok::identifier, tok::kw_this)) in rParenEndsCast()
1221 Tok.Next->isUnaryOperator() || Tok.Next->isOneOf(tok::amp, tok::star); in rParenEndsCast()
1223 !Tok.Next->Next->isOneOf(tok::identifier, tok::numeric_constant)) in rParenEndsCast()
1228 if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon)) in rParenEndsCast()
1246 NextToken->isOneOf(tok::arrow, Keywords.kw_final, in determineStarAmpUsage()
1254 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
1257 PrevToken->isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in determineStarAmpUsage()
1265 if (NextToken->isOneOf(tok::comma, tok::semi)) in determineStarAmpUsage()
1270 PrevToken->MatchingParen->Previous->isOneOf(tok::kw_typeof, in determineStarAmpUsage()
1275 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
1278 NextToken->isOneOf(tok::kw_true, tok::kw_false) || in determineStarAmpUsage()
1310 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
1328 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
1366 Current->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)))) in parse()
1457 if (Current->isOneOf(tok::semi, TT_InlineASMColon, TT_SelectorName, in getCurrentPrecedence()
1473 if (Current->isOneOf(tok::period, tok::arrow)) in getCurrentPrecedence()
1477 Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements, in getCurrentPrecedence()
1598 if (Next->isOneOf(tok::kw_new, tok::kw_delete)) { in isFunctionDeclarationName()
1656 Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis)) in isFunctionDeclarationName()
1658 if (Tok->isOneOf(tok::l_brace, tok::string_literal, TT_ObjCMethodExpr) || in isFunctionDeclarationName()
1721 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation()
1788 Current->isOneOf(tok::comment, tok::string_literal)) { in calculateUnbreakableTailLengths()
1808 if (Right.isOneOf(Keywords.kw_extends, Keywords.kw_throws)) in splitPenalty()
1832 if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare, in splitPenalty()
1837 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in splitPenalty()
1858 if (Left.isOneOf(tok::kw_class, tok::kw_struct)) in splitPenalty()
1863 if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon)) in splitPenalty()
1921 Left.Previous->isOneOf(tok::kw_if, tok::kw_for)) in splitPenalty()
1975 if (Left.isOneOf(tok::hashhash, tok::hash)) in spaceRequiredBetween()
1984 if (Right.isOneOf(tok::semi, tok::comma)) in spaceRequiredBetween()
1990 if (Left.isOneOf(tok::exclaim, tok::tilde)) in spaceRequiredBetween()
1993 Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant, in spaceRequiredBetween()
2001 if (Left.is(tok::less) || Right.isOneOf(tok::greater, tok::less)) in spaceRequiredBetween()
2012 (!Left.isOneOf(TT_PointerOrReference, tok::l_paren) && in spaceRequiredBetween()
2022 Right.isOneOf(TT_BlockComment, Keywords.kw_final, in spaceRequiredBetween()
2025 (!Right.isOneOf(TT_PointerOrReference, TT_ArraySubscriptLSquare, in spaceRequiredBetween()
2030 !Left.Previous->isOneOf(tok::l_paren, tok::coloncolon)); in spaceRequiredBetween()
2045 !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare) && in spaceRequiredBetween()
2046 !Left.isOneOf(tok::numeric_constant, TT_DictLiteral)) in spaceRequiredBetween()
2061 (Left.isOneOf(tok::kw_if, tok::pp_elif, tok::kw_for, tok::kw_while, in spaceRequiredBetween()
2064 (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch, in spaceRequiredBetween()
2075 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) && in spaceRequiredBetween()
2077 if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square, in spaceRequiredBetween()
2107 Left.isOneOf(Keywords.kw_optional, Keywords.kw_required, in spaceRequiredBefore()
2111 Left.isOneOf(Keywords.kw_returns, Keywords.kw_option)) in spaceRequiredBefore()
2117 Left.isOneOf(Keywords.kw_function, Keywords.kw_yield)) in spaceRequiredBefore()
2119 if (Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in, in spaceRequiredBefore()
2128 if (Right.isOneOf(TT_JsTypeColon, TT_JsTypeOptionalQuestion)) in spaceRequiredBefore()
2133 Line.First->isOneOf(Keywords.kw_import, tok::kw_export)) in spaceRequiredBefore()
2138 !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square, in spaceRequiredBefore()
2145 if (Right.is(tok::exclaim) && (Left.isOneOf(tok::identifier, tok::r_paren, in spaceRequiredBefore()
2154 if ((Left.isOneOf(tok::kw_static, tok::kw_public, tok::kw_private, in spaceRequiredBefore()
2156 Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract, in spaceRequiredBefore()
2174 if (Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow) || in spaceRequiredBefore()
2175 Left.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow)) in spaceRequiredBefore()
2183 if (Right.isOneOf(TT_CtorInitializerColon, TT_ObjCBlockLParen)) in spaceRequiredBefore()
2186 if (Line.First->isOneOf(tok::kw_case, tok::kw_default) || in spaceRequiredBefore()
2206 Right.isOneOf(TT_BinaryOperator, TT_SelectorName); in spaceRequiredBefore()
2211 if (Right.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) || in spaceRequiredBefore()
2212 Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar)) in spaceRequiredBefore()
2217 if (Right.is(tok::coloncolon) && !Left.isOneOf(tok::l_brace, tok::comment)) in spaceRequiredBefore()
2220 !(Left.isOneOf(tok::identifier, tok::l_paren, tok::r_paren, in spaceRequiredBefore()
2222 Left.isOneOf(TT_TemplateCloser, TT_TemplateOpener)); in spaceRequiredBefore()
2226 (Left.isOneOf(TT_BinaryOperator, TT_ConditionalExpr) && in spaceRequiredBefore()
2248 !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral); in isAllmanBrace()
2264 Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export, in mustBreakBefore()
2268 !Line.First->isOneOf(Keywords.kw_var, Keywords.kw_let)) in mustBreakBefore()
2296 if (Left.isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) && in mustBreakBefore()
2300 Right.MatchingParen->isOneOf(tok::l_brace, in mustBreakBefore()
2327 if ((Right.isOneOf(TT_CtorInitializerComma, TT_CtorInitializerColon)) && in mustBreakBefore()
2365 if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
2368 if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends, in canBreakBefore()
2392 if (Left.isOneOf(TT_JavaAnnotation, TT_LeadingJavaAnnotation)) in canBreakBefore()
2398 if (Right.isOneOf(TT_StartOfName, TT_FunctionDeclarationName) || in canBreakBefore()
2419 !Right.isOneOf(TT_CtorInitializerColon, TT_InlineASMColon)) in canBreakBefore()
2421 if (Left.is(tok::colon) && (Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr))) in canBreakBefore()
2430 if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen, in canBreakBefore()
2437 if (Left.isOneOf(TT_TemplateCloser, TT_UnaryOperator) || in canBreakBefore()
2440 if (Left.is(tok::equal) && !Right.isOneOf(tok::kw_default, tok::kw_delete) && in canBreakBefore()
2446 (Left.Previous->isOneOf(TT_BinaryOperator, TT_CastRParen))) in canBreakBefore()
2465 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren, in canBreakBefore()
2496 !Left.isOneOf(tok::arrowstar, tok::lessless) && in canBreakBefore()
2501 return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace, in canBreakBefore()
2504 Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow, tok::lessless, in canBreakBefore()
2507 Right.isOneOf(tok::identifier, tok::kw_const)) || in canBreakBefore()