| /NextBSD/contrib/llvm/tools/clang/lib/Format/ |
| HD | TokenAnnotator.cpp | 78 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle() 79 (CurrentToken->isOneOf(tok::colon, tok::question) && InExprContext)) in parseAngle() 87 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle() 123 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_if, in parseParens() 135 !Left->Previous->isOneOf(tok::identifier, in parseParens() 173 Prev->isOneOf(tok::star, tok::amp, tok::ampamp) && in parseParens() 182 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens() 221 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens() 230 if (CurrentToken->isOneOf(tok::kw_const, tok::kw_auto) || in parseParens() 233 if (CurrentToken->isOneOf(tok::semi, tok::colon)) in parseParens() [all …]
|
| HD | ContinuationIndenter.cpp | 105 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 152 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 175 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at) && in mustBreak() 176 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) && in mustBreak() 228 if (Current.isOneOf(TT_FunctionDeclarationName, tok::kw_operator) && in mustBreak() 241 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak() 353 Previous.Previous->isOneOf(tok::kw_if, tok::kw_for)) { in addTokenOnCurrentLine() 358 } else if (!Current.isOneOf(tok::comment, tok::caret) && in addTokenOnCurrentLine() 362 } else if ((Previous.isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in addTokenOnCurrentLine() 458 PreviousNonComment->isOneOf(TT_ObjCMethodExpr, TT_DictLiteral)) { in addTokenOnNewLine() [all …]
|
| HD | FormatToken.h | 286 template <typename A, typename B> bool isOneOf(A K1, B K2) const { in isOneOf() function 290 bool isOneOf(A K1, B K2, Ts... Ks) const { in isOneOf() function 291 return is(K1) || isOneOf(K2, Ks...); in isOneOf() 302 return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) && 318 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope() 323 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope() 329 return isOneOf(tok::arrow, tok::period, tok::arrowstar) && in isMemberAccess() 330 !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow, in isMemberAccess()
|
| HD | UnwrappedLineParser.cpp | 342 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 346 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes() 358 NextTok->isOneOf(tok::comma, tok::period, tok::colon, in calculateBraceTypes() 403 assert(FormatTok->isOneOf(tok::l_brace, TT_MacroBlockBegin) && in parseBlock() 459 return InitialToken.isOneOf(tok::kw_namespace, tok::kw_class); in ShouldBreakBeforeBrace() 461 return InitialToken.isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union); in ShouldBreakBeforeBrace() 823 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement() 974 (Line->Tokens.back().Tok->isOneOf(tok::identifier, tok::kw_operator, in tryToParseLambda() 1038 if (!FormatTok->isOneOf(tok::comma, tok::identifier)) { in tryToParseLambdaIntroducer() 1050 if (!FormatTok->isOneOf(tok::identifier, tok::kw_this)) in tryToParseLambdaIntroducer() [all …]
|
| HD | UnwrappedLineFormatter.cpp | 231 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while)) { in tryFitMultipleLinesInOne() 236 if (TheLine->First->isOneOf(tok::kw_case, tok::kw_default)) { in tryFitMultipleLinesInOne() 279 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, tok::kw_while, in tryMergeSimpleControlStatement() 294 I[1]->First->isOneOf(tok::kw_case, tok::kw_default)) in tryMergeShortCaseLabels() 305 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels() 307 if (Line->First->isOneOf(tok::kw_if, tok::kw_for, tok::kw_switch, in tryMergeShortCaseLabels() 327 Line.First->isOneOf(tok::at, tok::minus, tok::plus)) in tryMergeSimpleBlock() 332 if (Line.First->isOneOf(tok::kw_else, tok::kw_case) || in tryMergeSimpleBlock() 335 if (Line.First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_do, tok::kw_try, in tryMergeSimpleBlock() 344 Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for)) in tryMergeSimpleBlock() [all …]
|
| HD | Format.cpp | 771 if (Tokens.back()->isOneOf(tok::string_literal, tok::char_constant, in tryMergeJSRegexLiteral() 798 if (I[0]->isOneOf(tok::slash, tok::slashequal) && in tryMergeJSRegexLiteral() 800 ((Prev[0]->isOneOf(tok::l_paren, tok::semi, tok::l_brace, in tryMergeJSRegexLiteral() 841 if (!EndBacktick->isOneOf(tok::comment, tok::string_literal, in tryMergeTemplateString() 1141 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, tok::kw_delete)) { in getNextToken()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Parse/ |
| HD | ParseTentative.cpp | 182 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TryConsumeDeclarationSpecifier() 198 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype, in TryConsumeDeclarationSpecifier() 292 if (Tok.isOneOf(tok::kw_asm, tok::kw___attribute)) in TryParseInitDeclaratorList() 373 if (Tok.isOneOf(tok::equal, tok::kw_asm, tok::kw___attribute)) in isCXXConditionDeclaration() 450 (Tok.isOneOf(tok::greater, tok::comma) || in isCXXTypeId() 626 if (Tok.isOneOf(tok::coloncolon, tok::identifier)) in TryParsePtrOperatorSeq() 630 if (Tok.isOneOf(tok::star, tok::amp, tok::caret, tok::ampamp) || in TryParsePtrOperatorSeq() 634 while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict, in TryParsePtrOperatorSeq() 804 if ((Tok.isOneOf(tok::identifier, tok::kw_operator) || in TryParseDeclarator() 834 if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec, tok::kw___cdecl, in TryParseDeclarator() [all …]
|
| HD | ParseTemplate.cpp | 65 assert(Tok.isOneOf(tok::kw_export, tok::kw_template) && in ParseTemplateDeclarationOrSpecialization() 149 } while (Tok.isOneOf(tok::kw_export, tok::kw_template)); in ParseTemplateDeclarationOrSpecialization() 381 } else if (Tok.isOneOf(tok::greater, tok::greatergreater)) { in ParseTemplateParameterList() 498 assert(Tok.isOneOf(tok::kw_class, tok::kw_typename) && in ParseTypeParameter() 520 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater, in ParseTypeParameter() 581 bool Replace = Tok.isOneOf(tok::kw_typename, tok::kw_struct); in ParseTemplateTemplateParameter() 591 } else if (Next.isOneOf(tok::identifier, tok::comma, tok::greater, in ParseTemplateTemplateParameter() 617 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater, in ParseTemplateTemplateParameter() 814 (Next.isOneOf(tok::greater, tok::greatergreater, in ParseGreaterThanInTemplateList() 1077 return Tok.isOneOf(tok::comma, tok::greater, tok::greatergreater); in isEndOfTemplateArgument() [all …]
|
| HD | ParseDeclCXX.cpp | 689 assert(Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert) && in ParseStaticAssertDeclaration() 757 assert(Tok.isOneOf(tok::kw_decltype, tok::annot_decltype) in ParseDecltypeSpecifier() 947 if (Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseBaseTypeSpecifier() 1062 while (Tok.isOneOf(tok::kw___single_inheritance, in ParseMicrosoftInheritanceClassAttributes() 1236 if (Tok.isOneOf(tok::kw___single_inheritance, in ParseClassSpecifier() 1254 Tok.isOneOf(tok::kw___is_abstract, in ParseClassSpecifier() 1480 if (Tok.isOneOf(tok::l_brace, tok::colon)) in ParseClassSpecifier() 2224 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) { in ParseCXXClassMemberDeclaration() 2277 Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert)) { in ParseCXXClassMemberDeclaration() 2389 if (!After.isOneOf(tok::semi, tok::comma) && in ParseCXXClassMemberDeclaration() [all …]
|
| HD | ParseExpr.cpp | 491 if (!NextToken.isOneOf(tok::equal, tok::arrow, tok::period)) in ValidateCandidate() 850 Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren, in ParseCastExpression() 949 if (Tok.isOneOf(tok::periodstar, tok::arrowstar)) { in ParseCastExpression() 1659 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof, in ParseExprAfterUnaryExprOrTypeTrait() 1670 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseExprAfterUnaryExprOrTypeTrait() 1745 assert(Tok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseUnaryExprOrTypeTraitExpression() 1798 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() 1813 if (OpTok.isOneOf(tok::kw_alignof, tok::kw___alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() 1827 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() 2128 Tok.isOneOf(tok::kw___bridge, in ParseParenExpression()
|
| HD | ParseCXXInlineMethods.cpp | 32 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) && in ParseCXXInlineMethodDef() 189 assert(Tok.isOneOf(tok::l_brace, tok::equal) && in ParseCXXNonStaticMemberInitializer() 509 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try) in ParseLexedMethodDef() 824 if (Tok.isOneOf(tok::identifier, tok::kw_template)) { in ConsumeAndStoreFunctionPrologue()
|
| HD | ParseDecl.cpp | 288 IsIdentifierArg = Next.isOneOf(tok::r_paren, tok::comma); in ParseAttributeArgsCommon() 1625 if (Tok.isOneOf(tok::comma, tok::l_brace, tok::kw_try)) { in SkipMalformedDecl() 1731 Fixit &= Tok.isOneOf(tok::semi, tok::l_brace, tok::kw_try); in ParseDeclGroup() 2201 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator() 2463 assert(Tok.isOneOf(tok::kw_alignas, tok::kw__Alignas) && in ParseAlignmentSpecifier() 2506 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype, in DiagnoseMissingSemiAfterTagDefinition() 2520 if (Tok.isOneOf(tok::kw_typename, tok::annot_typename)) { in DiagnoseMissingSemiAfterTagDefinition() 2535 if (Next.isOneOf(tok::star, tok::amp, tok::ampamp, tok::identifier, in DiagnoseMissingSemiAfterTagDefinition() 3730 if (Tok.isOneOf(tok::kw_class, tok::kw_struct)) { in ParseEnumSpecifier() 4574 if (Tok.isOneOf(tok::identifier, tok::annot_template_id)) { in isConstructorDeclarator() [all …]
|
| HD | ParseStmt.cpp | 122 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC() 125 nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period); in StatementFilterCCC() 127 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace); in StatementFilterCCC() 1427 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) { in isForRangeIdentifier()
|
| HD | ParseExprCXX.cpp | 257 Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseOptionalCXXScopeSpecifier() 490 assert(Tok.isOneOf(tok::coloncolon, tok::colon) && in ParseOptionalCXXScopeSpecifier() 895 } else if (Tok.isOneOf(tok::l_brace, tok::equal)) { in ParseLambdaIntroducer() 1162 } else if (Tok.isOneOf(tok::kw_mutable, tok::arrow, tok::kw___attribute) || in ParseLambdaExpressionAfterIntroducer()
|
| HD | ParseObjc.cpp | 631 if (Tok.isOneOf(tok::minus, tok::plus)) { in ParseObjCInterfaceDeclList() 1003 assert(Tok.isOneOf(tok::minus, tok::plus) && "expected +/-"); in ParseObjCMethodPrototype() 2839 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_typename, in ParseObjCXXMessageReceiver() 2934 if (AfterNext.isOneOf(tok::colon, tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket() 3575 assert(Tok.isOneOf(tok::l_brace, tok::kw_try, tok::colon) && in ParseLexedObjCMethodDefs()
|
| /NextBSD/contrib/llvm/tools/clang/include/clang/Lex/ |
| HD | Token.h | 97 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { in isOneOf() function 101 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, Ts... Ks) const { in isOneOf() function 102 return is(K1) || isOneOf(K2, Ks...); in isOneOf()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Lex/ |
| HD | TokenConcatenation.cpp | 181 if (Tok.isOneOf(tok::equal, tok::equalequal)) in AvoidConcat() 187 assert(Tok.isOneOf(tok::annot_module_include, tok::annot_module_begin, in AvoidConcat() 242 Tok.isOneOf(tok::wide_string_literal, tok::utf8_string_literal, in AvoidConcat()
|
| HD | PPMacroExpansion.cpp | 729 if (ContainsCodeCompletionTok && Tok.isOneOf(tok::eof, tok::eod)) in ReadFunctionLikeMacroArgs() 732 assert(Tok.isOneOf(tok::l_paren, tok::comma) && in ReadFunctionLikeMacroArgs() 747 if (Tok.isOneOf(tok::eof, tok::eod)) { // "#if f(<eof>" & "#if f(\n" in ReadFunctionLikeMacroArgs() 1759 if (Tok.isOneOf(tok::eof, tok::eod) || Tok.isAnnotation()) in ExpandBuiltinMacro()
|
| HD | TokenLexer.cpp | 188 if (CurTok.isOneOf(tok::hash, tok::hashat)) { in ExpandFunctionArguments()
|
| HD | PPDirectives.cpp | 2022 if (MacroName.isOneOf(tok::kw_extern, tok::kw_inline, tok::kw_static, in isConfigurationPattern()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Sema/ |
| HD | SemaDecl.cpp | 1010 bool NextIsOp = NextToken.isOneOf(tok::amp, tok::star); in ClassifyName()
|