reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/include/clang/Lex/Token.h
  104     return is(K1) || isOneOf(K2, Ks...);
tools/clang/lib/Lex/PPDirectives.cpp
 2442   return MacroName.isOneOf(tok::kw_extern, tok::kw_inline, tok::kw_static,
 2555       if (!Tok.isOneOf(tok::hash, tok::hashat, tok::hashhash)) {
tools/clang/lib/Lex/TokenConcatenation.cpp
  195     assert(Tok.isOneOf(tok::annot_module_include, tok::annot_module_begin,
  250         Tok.isOneOf(tok::wide_string_literal, tok::utf8_string_literal,
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
   29   assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) &&
  510   assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try)
  824       if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype)) {
  880           !PreviousToken.isOneOf(tok::identifier, tok::greater,
  889             !Tok.isOneOf(tok::comma, tok::ellipsis, tok::l_brace)) {
tools/clang/lib/Parse/ParseDecl.cpp
 1930       if (Tok.isOneOf(tok::comma, tok::l_brace, tok::kw_try)) {
 2036       Fixit &= Tok.isOneOf(tok::semi, tok::l_brace, tok::kw_try);
 2544   return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi,
 2890       Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype,
 2919     if (Next.isOneOf(tok::star, tok::amp, tok::ampamp, tok::identifier,
 5809     if (Tok.isOneOf(tok::identifier, tok::kw_operator, tok::annot_template_id,
 5886           NextToken().isOneOf(tok::comma, tok::greater, tok::greatergreater);
 5894       DiagnoseIdentifier = NextToken().isOneOf(
tools/clang/lib/Parse/ParseDeclCXX.cpp
 1242   while (Tok.isOneOf(tok::kw___single_inheritance,
 1436   if (Tok.isOneOf(tok::kw___single_inheritance,
 1454       Tok.isOneOf(tok::kw___is_abstract,
 2485       Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw___super)) {
 2662           After.isOneOf(tok::l_brace, tok::colon, tok::kw_try)))
 2697       if (Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try)) {
 2971       if (IsFunction || Next.isOneOf(tok::semi, tok::comma, tok::eof)) {
tools/clang/lib/Parse/ParseExpr.cpp
  293     if (OpToken.isOneOf(tok::comma, tok::greater, tok::greatergreater,
  562     if (!NextToken.isOneOf(tok::equal, tok::arrow, tok::period))
  958           Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren,
 1895   assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof,
 1906     if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof,
 1981   assert(Tok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof,
 2401                      Tok.isOneOf(tok::kw___bridge,
tools/clang/lib/Parse/ParseExprCXX.cpp
 1385   } else if (Tok.isOneOf(tok::kw_mutable, tok::arrow, tok::kw___attribute,
tools/clang/lib/Parse/ParseObjc.cpp
 2896   if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_typename,
 3658   assert(Tok.isOneOf(tok::l_brace, tok::kw_try, tok::colon) &&
tools/clang/lib/Parse/ParseStmt.cpp
  122     WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square,
  125         nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period);
  127         nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace);
tools/clang/lib/Parse/ParseTemplate.cpp
  638   } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater,
  709     } else if (Next.isOneOf(tok::identifier, tok::comma, tok::greater,
  735   } else if (Tok.isOneOf(tok::equal, tok::comma, tok::greater,
  933       (Next.isOneOf(tok::greater, tok::greatergreater,
 1049     if (!Tok.isOneOf(tok::greater, tok::greatergreater,
 1242   return Tok.isOneOf(tok::comma, tok::greater, tok::greatergreater);
 1503   assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try) &&
tools/clang/lib/Parse/ParseTentative.cpp
  189     while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec,
  205     if (Tok.isOneOf(tok::identifier, tok::coloncolon, tok::kw_decltype,
  488     if (Tok.isOneOf(tok::equal, tok::kw_asm, tok::kw___attribute) ||
  596                    NextToken().isOneOf(tok::greater, tok::greatergreater,
  792     if (Tok.isOneOf(tok::star, tok::amp, tok::caret, tok::ampamp) ||
  796       while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict,
  997       if (Tok.isOneOf(tok::kw___attribute, tok::kw___declspec, tok::kw___cdecl,
 1180     WantTypeSpecifiers = Next.isOneOf(tok::l_paren, tok::r_paren, tok::greater,
 1856       if (Next.isOneOf(tok::amp, tok::ampamp, tok::kw_const, tok::kw_volatile,
 2032   while (Tok.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw___unaligned,
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp
   44   return T.isOneOf(tok::l_paren, tok::l_brace, tok::l_square, tok::comma,
   50   return T.isOneOf(tok::r_paren, tok::r_brace, tok::r_square, tok::comma,
   57   return T.isOneOf(tok::kw_case, tok::kw_const, tok::kw_struct);
   64   return T.isOneOf(tok::plus, tok::minus, tok::star, tok::slash, tok::percent,
   70   return T.isOneOf(tok::kw_bool, tok::kw_char, tok::kw_short, tok::kw_int,
   87   if (!Tok->isOneOf(tok::identifier, tok::raw_identifier, tok::coloncolon))
   92          Tok->isOneOf(tok::identifier, tok::raw_identifier, tok::coloncolon,
   99          Tok->isOneOf(tok::equal, tok::semi, tok::l_square, tok::l_paren) ||
  123     if (Tok.isOneOf(tok::l_paren, tok::l_brace, tok::l_square)) {
  125     } else if (Tok.isOneOf(tok::r_paren, tok::r_brace, tok::r_square)) {
  177       if (Tok.isOneOf(tok::equal, tok::semi, tok::l_square, tok::l_paren))
  199     if (Prev.isOneOf(tok::period, tok::arrow, tok::coloncolon, tok::arrowstar,
tools/clang/tools/extra/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.cpp
   53             return T.isOneOf(tok::kw_if, tok::kw_else, tok::kw_switch,
   98     if (FoundBuiltin && T.isOneOf(tok::question, tok::ampamp, tok::pipepipe))
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.cpp
   94   if (!Tok.isOneOf(tok::kw_short, tok::kw_long, tok::kw_unsigned,
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  146     if (T.isOneOf(tok::amp, tok::ampamp, tok::kw_const, tok::kw_volatile,
  157   return T.isOneOf(tok::kw_const, tok::kw_volatile, tok::kw_restrict);
  161   return T.isOneOf(tok::kw_constexpr, tok::kw_inline, tok::kw_extern,
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
   86   if (!Peek().isOneOf(kinds...))