HomeSort by: relevance | last modified time | path
    Searched refs:isOneOf (Results 1 - 25 of 35) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/clang/lib/Format/
TokenAnnotator.cpp 62 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch,
140 Left->Previous->isOneOf(TT_SelectorName, TT_DictLiteral)))
152 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) ||
153 (CurrentToken->isOneOf(tok::colon, tok::question) && InExprContext &&
163 if (CurrentToken->Previous->isOneOf(tok::pipepipe, tok::ampamp) &&
172 (CurrentToken->isOneOf(tok::l_brace, tok::less) &&
241 (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_while,
275 Left->Previous && Left->Previous->isOneOf(tok::kw_for, tok::kw_catch);
284 } else if (PrevNonComment->isOneOf(TT_TypenameMacro, tok::kw_decltype,
289 if (PrevNonComment->isOneOf(tok::kw_decltype, tok::kw_typeof)
    [all...]
ContinuationIndenter.cpp 97 End->Next->MatchingParen->isOneOf(
289 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma))
319 if (!Current.isOneOf(TT_BinaryOperator, tok::comma) &&
368 !Current.isOneOf(tok::r_paren, tok::r_brace))
440 !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at,
442 !Previous.isOneOf(TT_InlineASMColon, TT_ConditionalExpr) &&
507 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment))
631 (Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) ||
635 (!Previous.Previous || !Previous.Previous->isOneOf(
682 (P->isOneOf(TT_BinaryOperator, tok::comma) |
    [all...]
UnwrappedLineParser.cpp 465 if (PrevTok->isOneOf(tok::colon, tok::less))
490 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square);
494 bool NextIsObjCMethod = NextTok->isOneOf(tok::plus, tok::minus) &&
507 NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in,
510 NextTok->isOneOf(tok::comma, tok::period, tok::colon,
514 !PrevTok->isOneOf(tok::semi, tok::r_brace, tok::l_brace)) ||
585 assert(FormatTok->isOneOf(tok::l_brace, TT_MacroBlockBegin) &&
701 if (InitialToken.isOneOf(tok::kw_namespace, TT_NamespaceMacro))
888 if (!Line.Tokens.front().Tok->isOneOf(tok::comment, tok::hash)) {
957 !FormatTok->isOneOf(
    [all...]
UnwrappedLineFormatter.cpp 103 (RootToken.isOneOf(Keywords.kw_signals, Keywords.kw_qsignals) &&
251 if (Tok && Tok->isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union,
314 TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for)) {
321 (TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for,
325 TheLine->First->Next->isOneOf(tok::kw_else, tok::kw_catch))) &&
336 TheLine->First->isOneOf(tok::kw_if, tok::kw_while,
343 TheLine->First->isOneOf(tok::kw_else, tok::kw_catch) &&
366 I[-1]->First->isOneOf(tok::kw_case, tok::kw_default))
385 PreviousPrevious->isOneOf(tok::kw_class, tok::kw_struct))
439 if (TheLine->First->isOneOf(tok::kw_for, tok::kw_while, tok::kw_do))
    [all...]
FormatToken.h 454 template <typename A, typename B> bool isOneOf(A K1, B K2) const {
458 bool isOneOf(A K1, B K2, Ts... Ks) const {
459 return is(K1) || isOneOf(K2, Ks...);
501 return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) &&
506 return isOneOf(tok::kw_const, tok::kw_restrict, tok::kw_volatile,
530 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square,
540 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square,
546 return isOneOf(tok::arrow, tok::period, tok::arrowstar) &&
547 !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow,
669 } while (T && T->isOneOf(tok::kw_const, tok::kw_volatile, tok::amp
    [all...]
FormatToken.cpp 88 if (!LBrace || !LBrace->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) ||
156 !Token->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare))
SortJavaScriptImports.cpp 428 if (!Current || !Current->isOneOf(Keywords.kw_import, tok::kw_export))
510 if (!Current->isOneOf(tok::identifier, tok::kw_default))
522 if (!Current->isOneOf(tok::identifier, tok::kw_default))
530 if (!Current->isOneOf(tok::r_brace, tok::comma))
FormatTokenLexer.cpp 399 if (Next->isOneOf(tok::l_brace, tok::colon, tok::hash, tok::comment))
467 return Tok->isOneOf(tok::period, tok::l_paren, tok::comma, tok::l_brace,
470 Tok->isOneOf(tok::kw_return, tok::kw_do, tok::kw_case, tok::kw_throw,
486 if (Prev->isOneOf(tok::plusplus, tok::minusminus, tok::exclaim))
503 if (!RegexToken->isOneOf(tok::slash, tok::slashequal))
687 if (!HashToken->isOneOf(tok::hash, tok::hashhash))
964 FormatTok->isOneOf(tok::kw_struct, tok::kw_union, tok::kw_delete,
969 FormatTok->isOneOf(tok::kw_struct, tok::kw_union,
NamespaceEndCommentsFixer.cpp 29 NamespaceTok->isOneOf(tok::kw_namespace, TT_NamespaceMacro) &&
38 while (Tok && !Tok->isOneOf(tok::r_paren, tok::comma)) {
MacroExpander.cpp 93 if (!Current->isOneOf(tok::equal, tok::eof))
UsingDeclarationsSorter.cpp 109 if (HasIdentifier && Tok && Tok->isOneOf(tok::semi, tok::comma))
WhitespaceManager.cpp 742 if (C.Tok->isOneOf(TT_FunctionDeclarationName, tok::kw_operator))
757 if (Next->isOneOf(TT_StartOfName, TT_FunctionDeclarationName,
  /src/external/apache2/llvm/dist/clang/lib/Parse/
ParseTentative.cpp 287 if (Tok.isOneOf(tok::kw_asm, tok::kw___attribute))
505 if (Tok.isOneOf(tok::equal, tok::kw_asm, tok::kw___attribute) ||
608 (Tok.isOneOf(tok::greater, tok::comma) ||
610 (Tok.isOneOf(tok::greatergreater,
613 NextToken().isOneOf(tok::greater, tok::greatergreater,
804 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec,
834 if (Tok.isOneOf(tok::star, tok::amp, tok::caret, tok::ampamp) ||
843 while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict,
1015 if ((Tok.isOneOf(tok::identifier, tok::kw_operator) ||
1051 if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec, tok::kw___cdecl
    [all...]
ParseTemplate.cpp 77 assert(Tok.isOneOf(tok::kw_export, tok::kw_template) &&
160 } while (Tok.isOneOf(tok::kw_export, tok::kw_template));
498 } else if (Tok.isOneOf(tok::greater, tok::greatergreater)) {
557 .isOneOf(tok::kw_auto, tok::kw_decltype))
760 assert((Tok.isOneOf(tok::kw_class, tok::kw_typename) ||
803 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater,
876 bool Replace = Tok.isOneOf(tok::kw_typename, tok::kw_struct);
886 } else if (Next.isOneOf(tok::identifier, tok::comma, tok::greater,
912 } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater,
1112 (Next.isOneOf(tok::greater, tok::greatergreater
    [all...]
ParseCXXInlineMethods.cpp 29 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) &&
185 assert(Tok.isOneOf(tok::l_brace, tok::equal) &&
537 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try)
962 if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype)) {
1018 !PreviousToken.isOneOf(tok::identifier, tok::greater,
1027 !Tok.isOneOf(tok::comma, tok::ellipsis, tok::l_brace)) {
ParseDeclCXX.cpp 878 assert(Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert) &&
958 assert(Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)
1160 if (Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) {
1266 while (Tok.isOneOf(tok::kw___single_inheritance,
1461 if (Tok.isOneOf(tok::kw___single_inheritance,
1477 Tok.isOneOf(tok::kw___is_abstract,
1754 if (Tok.isOneOf(tok::l_brace, tok::colon))
2531 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) {
2584 Tok.isOneOf(tok::kw_static_assert, tok::kw__Static_assert)) {
2710 if (!After.isOneOf(tok::semi, tok::comma) &
    [all...]
ParseExpr.cpp 293 Tok.isOneOf(tok::period, tok::plusplus, tok::minusminus) ||
422 if (OpToken.isOneOf(tok::comma, tok::greater, tok::greatergreater,
454 Tok.isOneOf(tok::colon, tok::r_square) &&
711 if (!NextToken.isOneOf(tok::equal, tok::arrow, tok::period))
1133 Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren,
1243 if (Tok.isOneOf(tok::periodstar, tok::arrowstar)) {
2250 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof,
2261 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof,
2341 assert(Tok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof,
2395 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)
    [all...]
ParseExprCXX.cpp 213 Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) {
448 assert(Tok.isOneOf(tok::coloncolon, tok::colon) &&
764 After.isOneOf(tok::r_square, tok::comma)) ||
933 } else if (Tok.isOneOf(tok::amp, tok::equal) &&
934 NextToken().isOneOf(tok::comma, tok::r_square) &&
995 } else if (Tok.isOneOf(tok::l_brace, tok::equal)) {
1063 NextToken().isOneOf(tok::colon, tok::r_square)) {
1361 if (Tok.isOneOf(tok::kw___private, tok::kw___global, tok::kw___local,
1434 } else if (Tok.isOneOf(tok::kw_mutable, tok::arrow, tok::kw___attribute,
3275 if (Next.isOneOf(tok::l_brace, tok::less) |
    [all...]
ParseDecl.cpp 382 IsIdentifierArg = Next.isOneOf(tok::r_paren, tok::comma);
1881 if (Tok.isOneOf(tok::comma, tok::l_brace, tok::kw_try)) {
1990 Fixit &= Tok.isOneOf(tok::semi, tok::l_brace, tok::kw_try);
2534 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi,
2836 assert(Tok.isOneOf(tok::kw_alignas, tok::kw__Alignas) &&
2899 Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype,
2913 if (Tok.isOneOf(tok::kw_typename, tok::annot_typename)) {
2928 if (Next.isOneOf(tok::star, tok::amp, tok::ampamp, tok::identifier,
3222 GetLookAheadToken(2).isOneOf(tok::kw_auto, tok::kw_decltype)) {
3495 if (!NextToken().isOneOf(tok::kw_auto, tok::kw_decltype)
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/Lex/
Token.h 99 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const {
103 bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, Ts... Ks) const {
104 return is(K1) || isOneOf(K2, Ks...);
  /src/external/apache2/llvm/dist/clang/lib/Lex/
TokenConcatenation.cpp 189 if (Tok.isOneOf(tok::equal, tok::equalequal))
195 assert(Tok.isOneOf(tok::annot_module_include, tok::annot_module_begin,
250 Tok.isOneOf(tok::wide_string_literal, tok::utf8_string_literal,
PPMacroExpansion.cpp 787 if (ContainsCodeCompletionTok && Tok.isOneOf(tok::eof, tok::eod))
790 assert(Tok.isOneOf(tok::l_paren, tok::comma) &&
805 if (Tok.isOneOf(tok::eof, tok::eod)) { // "#if f(<eof>" & "#if f(\n"
1301 if (!Tok.isOneOf(tok::eof, tok::eod)) {
1828 if (Tok.isOneOf(tok::eof, tok::eod) || Tok.isAnnotation())
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
CheckerHelpers.cpp 126 if (!T.isOneOf(tok::l_paren, tok::r_paren))
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
RetainSummaryManager.cpp 27 constexpr static bool isOneOf() {
34 constexpr static bool isOneOf() {
35 return std::is_same<T, P>::value || isOneOf<T, ToCompare...>();
71 if (isOneOf<T, CFConsumedAttr, CFReturnsRetainedAttr,
77 } else if (isOneOf<T, NSConsumedAttr, NSConsumesSelfAttr,
84 if (isOneOf<T, NSReturnsRetainedAttr, NSReturnsAutoreleasedAttr,
89 } else if (isOneOf<T, OSConsumedAttr, OSConsumesThisAttr,
96 } else if (isOneOf<T, GeneralizedReturnsNotRetainedAttr,
  /src/external/apache2/llvm/dist/clang/include/clang/Parse/
Parser.h 543 return Tok.isOneOf(tok::l_paren, tok::r_paren);
547 return Tok.isOneOf(tok::l_square, tok::r_square);
551 return Tok.isOneOf(tok::l_brace, tok::r_brace);
2683 if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec) ||
2693 if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec) ||

Completed in 45 milliseconds

1 2