/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 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() [all …]
|
D | ContinuationIndenter.cpp | 111 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 165 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 198 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at) && in mustBreak() 199 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) && in mustBreak() 265 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak() 356 Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) && in addTokenOnCurrentLine() 359 !Previous.Previous->isOneOf(tok::kw_for, tok::kw_while, in addTokenOnCurrentLine() 399 Previous.Previous->isOneOf(tok::kw_if, tok::kw_for)) { in addTokenOnCurrentLine() 404 } else if (!Current.isOneOf(tok::comment, tok::caret) && in addTokenOnCurrentLine() 409 } else if ((Previous.isOneOf(TT_BinaryOperator, TT_ConditionalExpr, in addTokenOnCurrentLine() [all …]
|
D | UnwrappedLineParser.cpp | 350 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 354 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) && in calculateBraceTypes() 367 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in)) || in calculateBraceTypes() 368 NextTok->isOneOf(tok::comma, tok::period, tok::colon, in calculateBraceTypes() 414 assert(FormatTok->isOneOf(tok::l_brace, TT_MacroBlockBegin) && in parseBlock() 671 !FormatTok->isOneOf(Keywords.kw_in, Keywords.kw_of, Keywords.kw_as, in mustBeJSIdent() 690 return FormatTok->isOneOf( in isJSDeclOrStmt() 738 Previous->isOneOf(tok::r_square, tok::r_paren, in readTokenWithJavaScriptASI() 903 if (FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals, in parseStructuralElement() 944 if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS, in parseStructuralElement() [all …]
|
D | UnwrappedLineFormatter.cpp | 93 (RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) && in getIndentOffset() 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() 278 if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, tok::kw_while, in tryMergeSimpleControlStatement() 293 I[1]->First->isOneOf(tok::kw_case, tok::kw_default)) in tryMergeShortCaseLabels() 304 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels() 306 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() [all …]
|
D | FormatToken.h | 291 template <typename A, typename B> bool isOneOf(A K1, B K2) const { in isOneOf() function 295 bool isOneOf(A K1, B K2, Ts... Ks) const { in isOneOf() function 296 return is(K1) || isOneOf(K2, Ks...); in isOneOf() 321 return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) && 337 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope() 342 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope() 348 return isOneOf(tok::arrow, tok::period, tok::arrowstar) && in isMemberAccess() 349 !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow, in isMemberAccess()
|
D | FormatTokenLexer.cpp | 144 return Tok->isOneOf(tok::period, tok::l_paren, tok::comma, tok::l_brace, in precedesOperand() 147 Tok->isOneOf(tok::kw_return, tok::kw_do, tok::kw_case, tok::kw_throw, in precedesOperand() 161 if (Prev->isOneOf(tok::plusplus, tok::minusminus)) in canPrecedeRegexLiteral() 178 if (!RegexToken->isOneOf(tok::slash, tok::slashequal)) in tryParseJSRegexLiteral() 490 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, tok::kw_delete, in getNextToken() 495 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, in getNextToken()
|
D | FormatToken.cpp | 84 if (!LBrace || !LBrace->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in formatAfterToken() 149 !Token->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare)) in precomputeFormattingInfos()
|
D | TokenAnnotator.h | 103 return !Last->isOneOf(tok::semi, tok::comment); in mightBeFunctionDefinition()
|
D | SortJavaScriptImports.cpp | 330 if (!Current || !Current->isOneOf(Keywords.kw_import, tok::kw_export)) in parseModuleReference()
|
/external/apache-http/src/org/apache/http/impl/ |
D | DefaultHttpRequestFactory.java | 78 private static boolean isOneOf(final String[] methods, final String method) { in isOneOf() method in DefaultHttpRequestFactory 93 if (isOneOf(RFC2616_COMMON_METHODS, method)) { in newHttpRequest() 95 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) { in newHttpRequest() 97 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) { in newHttpRequest() 106 if (isOneOf(RFC2616_COMMON_METHODS, method)) { in newHttpRequest() 108 } else if (isOneOf(RFC2616_ENTITY_ENC_METHODS, method)) { in newHttpRequest() 110 } else if (isOneOf(RFC2616_SPECIAL_METHODS, method)) { in newHttpRequest()
|
/external/clang/lib/Parse/ |
D | ParseTentative.cpp | 183 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TryConsumeDeclarationSpecifier() 199 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype, in TryConsumeDeclarationSpecifier() 293 if (Tok.isOneOf(tok::kw_asm, tok::kw___attribute)) in TryParseInitDeclaratorList() 434 if (Tok.isOneOf(tok::equal, tok::kw_asm, tok::kw___attribute) || in isCXXConditionDeclarationOrInitStatement() 528 (Tok.isOneOf(tok::greater, tok::comma) || in isCXXTypeId() 695 if (Tok.isOneOf(tok::coloncolon, tok::identifier)) in TryParsePtrOperatorSeq() 699 if (Tok.isOneOf(tok::star, tok::amp, tok::caret, tok::ampamp) || in TryParsePtrOperatorSeq() 703 while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict, in TryParsePtrOperatorSeq() 873 if ((Tok.isOneOf(tok::identifier, tok::kw_operator) || in TryParseDeclarator() 903 if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec, tok::kw___cdecl, in TryParseDeclarator() [all …]
|
D | ParseTemplate.cpp | 65 assert(Tok.isOneOf(tok::kw_export, tok::kw_template) && in ParseTemplateDeclarationOrSpecialization() 147 } while (Tok.isOneOf(tok::kw_export, tok::kw_template)); in ParseTemplateDeclarationOrSpecialization() 386 } else if (Tok.isOneOf(tok::greater, tok::greatergreater)) { in ParseTemplateParameterList() 503 assert(Tok.isOneOf(tok::kw_class, tok::kw_typename) && in ParseTypeParameter() 525 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater, in ParseTypeParameter() 586 bool Replace = Tok.isOneOf(tok::kw_typename, tok::kw_struct); in ParseTemplateTemplateParameter() 596 } else if (Next.isOneOf(tok::identifier, tok::comma, tok::greater, in ParseTemplateTemplateParameter() 622 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater, in ParseTemplateTemplateParameter() 819 (Next.isOneOf(tok::greater, tok::greatergreater, in ParseGreaterThanInTemplateList() 1098 return Tok.isOneOf(tok::comma, tok::greater, tok::greatergreater); in isEndOfTemplateArgument() [all …]
|
D | ParseDeclCXX.cpp | 696 assert(Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert) && in ParseStaticAssertDeclaration() 764 assert(Tok.isOneOf(tok::kw_decltype, tok::annot_decltype) in ParseDecltypeSpecifier() 954 if (Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseBaseTypeSpecifier() 1068 while (Tok.isOneOf(tok::kw___single_inheritance, in ParseMicrosoftInheritanceClassAttributes() 1258 if (Tok.isOneOf(tok::kw___single_inheritance, in ParseClassSpecifier() 1276 Tok.isOneOf(tok::kw___is_abstract, in ParseClassSpecifier() 1531 if (Tok.isOneOf(tok::l_brace, tok::colon)) in ParseClassSpecifier() 2285 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) { in ParseCXXClassMemberDeclaration() 2335 Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert)) { in ParseCXXClassMemberDeclaration() 2451 if (!After.isOneOf(tok::semi, tok::comma) && in ParseCXXClassMemberDeclaration() [all …]
|
D | ParseExpr.cpp | 506 if (!NextToken.isOneOf(tok::equal, tok::arrow, tok::period)) in ValidateCandidate() 867 Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren, in ParseCastExpression() 966 if (Tok.isOneOf(tok::periodstar, tok::arrowstar)) { in ParseCastExpression() 1739 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof, in ParseExprAfterUnaryExprOrTypeTrait() 1750 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseExprAfterUnaryExprOrTypeTrait() 1825 assert(Tok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseUnaryExprOrTypeTraitExpression() 1878 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() 1893 if (OpTok.isOneOf(tok::kw_alignof, tok::kw___alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() 1907 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression() 2208 Tok.isOneOf(tok::kw___bridge, in ParseParenExpression()
|
D | ParseCXXInlineMethods.cpp | 32 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) && in ParseCXXInlineMethodDef() 198 assert(Tok.isOneOf(tok::l_brace, tok::equal) && in ParseCXXNonStaticMemberInitializer() 518 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try) in ParseLexedMethodDef() 835 if (Tok.isOneOf(tok::identifier, tok::kw_template)) { in ConsumeAndStoreFunctionPrologue()
|
D | ParseDecl.cpp | 290 IsIdentifierArg = Next.isOneOf(tok::r_paren, tok::comma); in ParseAttributeArgsCommon() 1656 if (Tok.isOneOf(tok::comma, tok::l_brace, tok::kw_try)) { in SkipMalformedDecl() 1762 Fixit &= Tok.isOneOf(tok::semi, tok::l_brace, tok::kw_try); in ParseDeclGroup() 2233 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator() 2512 assert(Tok.isOneOf(tok::kw_alignas, tok::kw__Alignas) && in ParseAlignmentSpecifier() 2555 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype, in DiagnoseMissingSemiAfterTagDefinition() 2569 if (Tok.isOneOf(tok::kw_typename, tok::annot_typename)) { in DiagnoseMissingSemiAfterTagDefinition() 2584 if (Next.isOneOf(tok::star, tok::amp, tok::ampamp, tok::identifier, in DiagnoseMissingSemiAfterTagDefinition() 3830 if (Tok.isOneOf(tok::kw_class, tok::kw_struct)) { in ParseEnumSpecifier() 4666 if (Tok.isOneOf(tok::identifier, tok::annot_template_id)) { in isConstructorDeclarator() [all …]
|
D | ParseStmt.cpp | 129 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC() 132 nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period); in StatementFilterCCC() 134 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace); in StatementFilterCCC() 1481 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) { in isForRangeIdentifier()
|
D | ParseObjc.cpp | 629 if (Tok.isOneOf(tok::minus, tok::plus)) { in ParseObjCInterfaceDeclList() 1000 assert(Tok.isOneOf(tok::minus, tok::plus) && "expected +/-"); in ParseObjCMethodPrototype() 2907 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_typename, in ParseObjCXXMessageReceiver() 3001 if (AfterNext.isOneOf(tok::colon, tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket() 3640 assert(Tok.isOneOf(tok::l_brace, tok::kw_try, tok::colon) && in ParseLexedObjCMethodDefs()
|
D | ParseExprCXX.cpp | 257 Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseOptionalCXXScopeSpecifier() 490 assert(Tok.isOneOf(tok::coloncolon, tok::colon) && in ParseOptionalCXXScopeSpecifier() 909 } else if (Tok.isOneOf(tok::l_brace, tok::equal)) { in ParseLambdaIntroducer() 1230 } else if (Tok.isOneOf(tok::kw_mutable, tok::arrow, tok::kw___attribute, in ParseLambdaExpressionAfterIntroducer()
|
/external/clang/include/clang/Lex/ |
D | Token.h | 96 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { in isOneOf() function 100 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, Ts... Ks) const { in isOneOf() function 101 return is(K1) || isOneOf(K2, Ks...); in isOneOf()
|
/external/apache-http/src/org/apache/http/message/ |
D | BasicHeaderValueParser.java | 309 private static boolean isOneOf(final char ch, final char[] chs) { in isOneOf() method in BasicHeaderValueParser 344 if (isOneOf(ch, delimiters)) { in parseNameValuePair() 375 if (!qouted && !escaped && isOneOf(ch, delimiters)) { in parseNameValuePair()
|
/external/clang/lib/Lex/ |
D | 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()
|
D | PPMacroExpansion.cpp | 732 if (ContainsCodeCompletionTok && Tok.isOneOf(tok::eof, tok::eod)) in ReadFunctionLikeMacroArgs() 735 assert(Tok.isOneOf(tok::l_paren, tok::comma) && in ReadFunctionLikeMacroArgs() 750 if (Tok.isOneOf(tok::eof, tok::eod)) { // "#if f(<eof>" & "#if f(\n" in ReadFunctionLikeMacroArgs() 1437 if (!Tok.isOneOf(tok::eof, tok::eod)) { in EvaluateFeatureLikeBuiltinMacro() 1833 if (Tok.isOneOf(tok::eof, tok::eod) || Tok.isAnnotation()) in ExpandBuiltinMacro()
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/ |
D | IsIn.java | 108 public static <T> Matcher<T> isOneOf(T... elements) { in isOneOf() method in IsIn
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/ |
D | Matchers.java | 1194 public static <T> org.hamcrest.Matcher<T> isOneOf(T... elements) { in isOneOf() method in Matchers 1195 return org.hamcrest.collection.IsIn.<T>isOneOf(elements); in isOneOf()
|