| /netbsd-src/external/apache2/llvm/dist/clang/lib/Format/ |
| H A D | TokenAnnotator.cpp | 62 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch, in isKeywordWithCondition() 140 Left->Previous->isOneOf(TT_SelectorName, TT_DictLiteral))) in parseAngle() 152 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle() 153 (CurrentToken->isOneOf(tok::colon, tok::question) && InExprContext && in parseAngle() 163 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) && in parseAngle() 172 (CurrentToken->isOneOf(tok::l_brace, tok::less) && in parseAngle() 241 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_while, in parseParens() 275 Left->Previous && Left->Previous->isOneOf(tok::kw_for, tok::kw_catch); in parseParens() 284 } else if (PrevNonComment->isOneOf(TT_TypenameMacro, tok::kw_decltype, in parseParens() 289 if (PrevNonComment->isOneOf(tok::kw_decltype, tok::kw_typeof)) in parseParens() [all …]
|
| H A D | ContinuationIndenter.cpp | 97 End->Next->MatchingParen->isOneOf( in getLengthToMatchingParen() 289 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 319 if (!Current.isOneOf(TT_BinaryOperator, tok::comma) && in canBreak() 368 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 440 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at, in mustBreak() 442 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) && in mustBreak() 507 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak() 631 (Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) || in addTokenOnCurrentLine() 635 (!Previous.Previous || !Previous.Previous->isOneOf( in addTokenOnCurrentLine() 682 (P->isOneOf(TT_BinaryOperator, tok::comma) || in addTokenOnCurrentLine() [all …]
|
| H A D | UnwrappedLineParser.cpp | 465 if (PrevTok->isOneOf(tok::colon, tok::less)) in calculateBraceTypes() 490 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 494 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes() 507 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in, in calculateBraceTypes() 510 NextTok->isOneOf(tok::comma, tok::period, tok::colon, in calculateBraceTypes() 514 !PrevTok->isOneOf(tok::semi, tok::r_brace, tok::l_brace)) || in calculateBraceTypes() 585 assert(FormatTok->isOneOf(tok::l_brace, TT_MacroBlockBegin) && in parseBlock() 701 if (InitialToken.isOneOf(tok::kw_namespace, TT_NamespaceMacro)) in ShouldBreakBeforeBrace() 888 if (!Line.Tokens.front().Tok->isOneOf(tok::comment, tok::hash)) { in parsePPDefine() 957 !FormatTok->isOneOf( in mustBeJSIdent() [all …]
|
| H A D | UnwrappedLineFormatter.cpp | 103 (RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) && in getIndentOffset() 251 if (Tok && Tok->isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union, in tryFitMultipleLinesInOne() 314 TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for)) { in tryFitMultipleLinesInOne() 321 (TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for, in tryFitMultipleLinesInOne() 325 TheLine->First->Next->isOneOf(tok::kw_else, tok::kw_catch))) && in tryFitMultipleLinesInOne() 336 TheLine->First->isOneOf(tok::kw_if, tok::kw_while, in tryFitMultipleLinesInOne() 343 TheLine->First->isOneOf(tok::kw_else, tok::kw_catch) && in tryFitMultipleLinesInOne() 366 I[-1]->First->isOneOf(tok::kw_case, tok::kw_default)) in tryFitMultipleLinesInOne() 385 PreviousPrevious->isOneOf(tok::kw_class, tok::kw_struct)) in tryFitMultipleLinesInOne() 439 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while, tok::kw_do)) { in tryFitMultipleLinesInOne() [all …]
|
| H A D | FormatToken.h | 454 template <typename A, typename B> bool isOneOf(A K1, B K2) const { in isOneOf() function 458 bool isOneOf(A K1, B K2, Ts... Ks) const { in isOneOf() function 459 return is(K1) || isOneOf(K2, Ks...); in isOneOf() 501 return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) && 506 return isOneOf(tok::kw_const, tok::kw_restrict, tok::kw_volatile, in canBePointerOrReferenceQualifier() 530 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope() 540 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope() 546 return isOneOf(tok::arrow, tok::period, tok::arrowstar) && in isMemberAccess() 547 !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow, in isMemberAccess() 669 } while (T && T->isOneOf(tok::kw_const, tok::kw_volatile, tok::amp, in isCppStructuredBinding() [all …]
|
| H A D | SortJavaScriptImports.cpp | 428 if (!Current || !Current->isOneOf(Keywords.kw_import, tok::kw_export)) in parseModuleReference() 510 if (!Current->isOneOf(tok::identifier, tok::kw_default)) in parseNamedBindings() 522 if (!Current->isOneOf(tok::identifier, tok::kw_default)) in parseNamedBindings() 530 if (!Current->isOneOf(tok::r_brace, tok::comma)) in parseNamedBindings()
|
| H A D | FormatTokenLexer.cpp | 399 if (Next->isOneOf(tok::l_brace, tok::colon, tok::hash, tok::comment)) in tryTransformTryUsageForC() 467 return Tok->isOneOf(tok::period, tok::l_paren, tok::comma, tok::l_brace, in precedesOperand() 470 Tok->isOneOf(tok::kw_return, tok::kw_do, tok::kw_case, tok::kw_throw, in precedesOperand() 486 if (Prev->isOneOf(tok::plusplus, tok::minusminus, tok::exclaim)) in canPrecedeRegexLiteral() 503 if (!RegexToken->isOneOf(tok::slash, tok::slashequal)) in tryParseJSRegexLiteral() 687 if (!HashToken->isOneOf(tok::hash, tok::hashhash)) in tryParsePythonComment() 964 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, tok::kw_delete, in getNextToken() 969 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, in getNextToken()
|
| H A D | FormatToken.cpp | 88 if (!LBrace || !LBrace->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in formatAfterToken() 156 !Token->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare)) in precomputeFormattingInfos()
|
| H A D | NamespaceEndCommentsFixer.cpp | 29 NamespaceTok->isOneOf(tok::kw_namespace, TT_NamespaceMacro) && in computeName() 38 while (Tok && !Tok->isOneOf(tok::r_paren, tok::comma)) { in computeName()
|
| H A D | MacroExpander.cpp | 93 if (!Current->isOneOf(tok::equal, tok::eof)) in parseExpansion()
|
| H A D | UsingDeclarationsSorter.cpp | 109 if (HasIdentifier && Tok && Tok->isOneOf(tok::semi, tok::comma)) in computeUsingDeclarationLabel()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/ |
| H A D | ParseTentative.cpp | 287 if (Tok.isOneOf(tok::kw_asm, tok::kw___attribute)) in TryParseInitDeclaratorList() 505 if (Tok.isOneOf(tok::equal, tok::kw_asm, tok::kw___attribute) || in isCXXConditionDeclarationOrInitStatement() 608 (Tok.isOneOf(tok::greater, tok::comma) || in isCXXTypeId() 610 (Tok.isOneOf(tok::greatergreater, in isCXXTypeId() 613 NextToken().isOneOf(tok::greater, tok::greatergreater, in isCXXTypeId() 804 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TrySkipAttributes() 834 if (Tok.isOneOf(tok::star, tok::amp, tok::caret, tok::ampamp) || in TryParsePtrOperatorSeq() 843 while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict, in TryParsePtrOperatorSeq() 1015 if ((Tok.isOneOf(tok::identifier, tok::kw_operator) || in TryParseDeclarator() 1051 if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec, tok::kw___cdecl, in TryParseDeclarator() [all …]
|
| H A D | ParseTemplate.cpp | 77 assert(Tok.isOneOf(tok::kw_export, tok::kw_template) && in ParseTemplateDeclarationOrSpecialization() 160 } while (Tok.isOneOf(tok::kw_export, tok::kw_template)); in ParseTemplateDeclarationOrSpecialization() 498 } else if (Tok.isOneOf(tok::greater, tok::greatergreater)) { in ParseTemplateParameterList() 557 .isOneOf(tok::kw_auto, tok::kw_decltype)) in isStartOfTemplateTypeParameter() 760 assert((Tok.isOneOf(tok::kw_class, tok::kw_typename) || in ParseTypeParameter() 803 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater, in ParseTypeParameter() 876 bool Replace = Tok.isOneOf(tok::kw_typename, tok::kw_struct); in ParseTemplateTemplateParameter() 886 } else if (Next.isOneOf(tok::identifier, tok::comma, tok::greater, in ParseTemplateTemplateParameter() 912 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater, in ParseTemplateTemplateParameter() 1112 (Next.isOneOf(tok::greater, tok::greatergreater, in ParseGreaterThanInTemplateList() [all …]
|
| H A D | ParseCXXInlineMethods.cpp | 29 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) && in ParseCXXInlineMethodDef() 185 assert(Tok.isOneOf(tok::l_brace, tok::equal) && in ParseCXXNonStaticMemberInitializer() 537 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try) in ParseLexedMethodDef() 962 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype)) { in ConsumeAndStoreFunctionPrologue() 1018 !PreviousToken.isOneOf(tok::identifier, tok::greater, in ConsumeAndStoreFunctionPrologue() 1027 !Tok.isOneOf(tok::comma, tok::ellipsis, tok::l_brace)) { in ConsumeAndStoreFunctionPrologue()
|
| H A D | ParseDeclCXX.cpp | 878 assert(Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert) && in ParseStaticAssertDeclaration() 958 assert(Tok.isOneOf(tok::kw_decltype, tok::annot_decltype) in ParseDecltypeSpecifier() 1160 if (Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseBaseTypeSpecifier() 1266 while (Tok.isOneOf(tok::kw___single_inheritance, in ParseMicrosoftInheritanceClassAttributes() 1461 if (Tok.isOneOf(tok::kw___single_inheritance, in ParseClassSpecifier() 1477 Tok.isOneOf(tok::kw___is_abstract, in ParseClassSpecifier() 1754 if (Tok.isOneOf(tok::l_brace, tok::colon)) in ParseClassSpecifier() 2531 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) { in ParseCXXClassMemberDeclaration() 2584 Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert)) { in ParseCXXClassMemberDeclaration() 2710 if (!After.isOneOf(tok::semi, tok::comma) && in ParseCXXClassMemberDeclaration() [all …]
|
| H A D | ParseExpr.cpp | 293 Tok.isOneOf(tok::period, tok::plusplus, tok::minusminus) || in ParseConstraintLogicalAndExpression() 422 if (OpToken.isOneOf(tok::comma, tok::greater, tok::greatergreater, in ParseRHSOfBinaryExpression() 454 Tok.isOneOf(tok::colon, tok::r_square) && in ParseRHSOfBinaryExpression() 711 if (!NextToken.isOneOf(tok::equal, tok::arrow, tok::period)) in ValidateCandidate() 1133 Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren, in ParseCastExpression() 1243 if (Tok.isOneOf(tok::periodstar, tok::arrowstar)) { in ParseCastExpression() 2250 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof, in ParseExprAfterUnaryExprOrTypeTrait() 2261 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseExprAfterUnaryExprOrTypeTrait() 2341 assert(Tok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseUnaryExprOrTypeTraitExpression() 2395 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() [all …]
|
| H A D | ParseExprCXX.cpp | 213 Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseOptionalCXXScopeSpecifier() 448 assert(Tok.isOneOf(tok::coloncolon, tok::colon) && in ParseOptionalCXXScopeSpecifier() 764 After.isOneOf(tok::r_square, tok::comma)) || in TryParseLambdaExpression() 933 } else if (Tok.isOneOf(tok::amp, tok::equal) && in ParseLambdaIntroducer() 934 NextToken().isOneOf(tok::comma, tok::r_square) && in ParseLambdaIntroducer() 995 } else if (Tok.isOneOf(tok::l_brace, tok::equal)) { in ParseLambdaIntroducer() 1063 NextToken().isOneOf(tok::colon, tok::r_square)) { in ParseLambdaIntroducer() 1361 if (Tok.isOneOf(tok::kw___private, tok::kw___global, tok::kw___local, in ParseLambdaExpressionAfterIntroducer() 1434 } else if (Tok.isOneOf(tok::kw_mutable, tok::arrow, tok::kw___attribute, in ParseLambdaExpressionAfterIntroducer() 3275 if (Next.isOneOf(tok::l_brace, tok::less) || in ParseCXXDeleteExpression() [all …]
|
| H A D | ParseDecl.cpp | 382 IsIdentifierArg = Next.isOneOf(tok::r_paren, tok::comma); in ParseAttributeArgsCommon() 1881 if (Tok.isOneOf(tok::comma, tok::l_brace, tok::kw_try)) { in SkipMalformedDecl() 1990 Fixit &= Tok.isOneOf(tok::semi, tok::l_brace, tok::kw_try); in ParseDeclGroup() 2534 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator() 2836 assert(Tok.isOneOf(tok::kw_alignas, tok::kw__Alignas) && in ParseAlignmentSpecifier() 2899 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype, in DiagnoseMissingSemiAfterTagDefinition() 2913 if (Tok.isOneOf(tok::kw_typename, tok::annot_typename)) { in DiagnoseMissingSemiAfterTagDefinition() 2928 if (Next.isOneOf(tok::star, tok::amp, tok::ampamp, tok::identifier, in DiagnoseMissingSemiAfterTagDefinition() 3222 GetLookAheadToken(2).isOneOf(tok::kw_auto, tok::kw_decltype)) { in ParseDeclarationSpecifiers() 3495 if (!NextToken().isOneOf(tok::kw_auto, tok::kw_decltype)) in ParseDeclarationSpecifiers() [all …]
|
| H A D | ParseStmt.cpp | 130 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC() 133 nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period); in StatementFilterCCC() 135 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace); in StatementFilterCCC() 1300 Tok.isOneOf(tok::semi, tok::r_brace) || Tok.isAnnotation() || in Check() 1737 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) { in isForRangeIdentifier()
|
| H A D | ParseObjc.cpp | 603 if (Tok.isOneOf(tok::minus, tok::plus)) { in ParseObjCInterfaceDeclList() 658 if (Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert)) { in ParseObjCInterfaceDeclList() 993 assert(Tok.isOneOf(tok::minus, tok::plus) && "expected +/-"); in ParseObjCMethodPrototype() 1969 if (Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert)) { in ParseObjCClassInstanceVariables() 2903 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_typename, in ParseObjCXXMessageReceiver() 2998 if (AfterNext.isOneOf(tok::colon, tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket() 3666 assert(Tok.isOneOf(tok::l_brace, tok::kw_try, tok::colon) && in ParseLexedObjCMethodDefs()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Lex/ |
| H A D | Token.h | 99 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { in isOneOf() function 103 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, Ts... Ks) const { in isOneOf() function 104 return is(K1) || isOneOf(K2, Ks...); in isOneOf()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Lex/ |
| H A D | TokenConcatenation.cpp | 189 if (Tok.isOneOf(tok::equal, tok::equalequal)) in AvoidConcat() 195 assert(Tok.isOneOf(tok::annot_module_include, tok::annot_module_begin, in AvoidConcat() 250 Tok.isOneOf(tok::wide_string_literal, tok::utf8_string_literal, in AvoidConcat()
|
| H A D | PPMacroExpansion.cpp | 787 if (ContainsCodeCompletionTok && Tok.isOneOf(tok::eof, tok::eod)) in ReadMacroCallArgumentList() 790 assert(Tok.isOneOf(tok::l_paren, tok::comma) && in ReadMacroCallArgumentList() 805 if (Tok.isOneOf(tok::eof, tok::eod)) { // "#if f(<eof>" & "#if f(\n" in ReadMacroCallArgumentList() 1301 if (!Tok.isOneOf(tok::eof, tok::eod)) { in EvaluateFeatureLikeBuiltinMacro() 1828 if (Tok.isOneOf(tok::eof, tok::eod) || Tok.isAnnotation()) in ExpandBuiltinMacro()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/ |
| H A D | RetainSummaryManager.cpp | 27 constexpr static bool isOneOf() { in isOneOf() function 34 constexpr static bool isOneOf() { in isOneOf() function 35 return std::is_same<T, P>::value || isOneOf<T, ToCompare...>(); in isOneOf() 71 if (isOneOf<T, CFConsumedAttr, CFReturnsRetainedAttr, in hasAnyEnabledAttrOf() 77 } else if (isOneOf<T, NSConsumedAttr, NSConsumesSelfAttr, in hasAnyEnabledAttrOf() 84 if (isOneOf<T, NSReturnsRetainedAttr, NSReturnsAutoreleasedAttr, in hasAnyEnabledAttrOf() 89 } else if (isOneOf<T, OSConsumedAttr, OSConsumesThisAttr, in hasAnyEnabledAttrOf() 96 } else if (isOneOf<T, GeneralizedReturnsNotRetainedAttr, in hasAnyEnabledAttrOf()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerHelpers.cpp | 126 if (!T.isOneOf(tok::l_paren, tok::r_paren)) in tryExpandAsInteger()
|