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

References

tools/clang/lib/Format/ContinuationIndenter.cpp
   97         End->Next->MatchingParen->isOneOf(
  289       Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma))
  421       !Previous.isOneOf(tok::kw_return, tok::lessless, tok::at,
  612       (Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) ||
  616       (!Previous.Previous || !Previous.Previous->isOneOf(
  699   } else if ((Previous.isOneOf(TT_BinaryOperator, TT_ConditionalExpr,
  871       !PreviousNonComment->isOneOf(tok::comma, tok::colon, tok::semi) &&
  874       !PreviousNonComment->isOneOf(
  895     if (!(Previous.isOneOf(tok::l_paren, tok::l_brace, TT_BinaryOperator) ||
  974        Current.Next->isOneOf(tok::semi, tok::kw_const, tok::l_brace)))
 1006         PreviousNonComment->isOneOf(
 1053       Previous.isOneOf(tok::coloncolon, tok::equal, TT_JsTypeColon))
 1066   if (NextNonComment->isOneOf(TT_CtorInitializerColon, TT_InheritanceColon,
 1180       (Previous->isOneOf(tok::l_paren, tok::comma, tok::colon) ||
 1201   else if (!Current.isOneOf(tok::comment, tok::identifier, tok::hash) &&
 1435       (Current.isOneOf(tok::r_paren, tok::r_square, TT_TemplateString) ||
tools/clang/lib/Format/Format.cpp
 1776               FormatTok->isOneOf(tok::numeric_constant, tok::l_square,
 1783             FormatTok->isOneOf(Keywords.kw_NS_CLOSED_ENUM, Keywords.kw_NS_ENUM,
tools/clang/lib/Format/FormatToken.h
  326     return is(K1) || isOneOf(K2, Ks...);
  368     return isOneOf(tok::kw_public, tok::kw_protected, tok::kw_private) &&
  390     return isOneOf(tok::l_paren, tok::l_brace, tok::l_square,
  400     return isOneOf(tok::r_paren, tok::r_brace, tok::r_square,
  406     return isOneOf(tok::arrow, tok::period, tok::arrowstar) &&
  407            !isOneOf(TT_DesignatedInitializerPeriod, TT_TrailingReturnArrow,
  523     } while (T && T->isOneOf(tok::kw_const, tok::kw_volatile, tok::amp,
tools/clang/lib/Format/FormatTokenLexer.cpp
  329   return Tok->isOneOf(tok::period, tok::l_paren, tok::comma, tok::l_brace,
  332          Tok->isOneOf(tok::kw_return, tok::kw_do, tok::kw_case, tok::kw_throw,
  348   if (Prev->isOneOf(tok::plusplus, tok::minusminus, tok::exclaim))
  764         FormatTok->isOneOf(tok::kw_struct, tok::kw_union, tok::kw_delete,
  769                FormatTok->isOneOf(tok::kw_struct, tok::kw_union,
tools/clang/lib/Format/TokenAnnotator.cpp
  132       if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) ||
  193                (Left->Previous->isOneOf(tok::kw_static_assert, tok::kw_decltype,
  248         CurrentToken->isOneOf(tok::star, tok::amp, tok::caret);
  265               Prev->isOneOf(tok::star, tok::amp, tok::ampamp) &&
  297                 Tok->isOneOf(tok::star, tok::amp, tok::ampamp))
  394     if (AttrTok->isOneOf(tok::kw_public, tok::kw_private, tok::kw_protected,
  475          Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren,
  542                  Parent->isOneOf(TT_BinaryOperator, TT_TemplateCloser, tok::at,
  683         if (CurrentToken->isOneOf(tok::colon, tok::l_brace, tok::less)) {
  890            !Tok->Previous->isOneOf(tok::kw_decltype, tok::kw___attribute,
  949              !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) {
  954             CurrentToken->Previous->isOneOf(TT_BinaryOperator, TT_UnaryOperator,
  966           Tok->Next->isOneOf(tok::semi, tok::comma, tok::colon, tok::r_paren,
 1137          CurrentToken->Next->isOneOf(tok::string_literal, tok::identifier,
 1226     if (!CurrentToken->isOneOf(
 1296         !Line.First->isOneOf(tok::kw_template, tok::kw_using, tok::kw_return) &&
 1318               Previous->isOneOf(tok::star, tok::amp, tok::ampamp) &&
 1338     } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) {
 1361             (Current.Previous->isOneOf(tok::identifier, tok::kw_namespace,
 1400     } else if (Current.isOneOf(tok::star, tok::amp, tok::ampamp)) {
 1405     } else if (Current.isOneOf(tok::minus, tok::plus, tok::caret)) {
 1443           !Current.Next->isOneOf(tok::semi, tok::colon, tok::l_brace,
 1497     } else if (Current.isOneOf(tok::identifier, tok::kw_const,
 1533     if (Tok.Previous->isOneOf(TT_LeadingJavaAnnotation, Keywords.kw_instanceof,
 1593           !LeftOfParens->isOneOf(Keywords.kw_in, tok::kw_return, tok::kw_case,
 1599       if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator,
 1609     if (Tok.Next->isOneOf(tok::kw_noexcept, tok::kw_volatile, tok::kw_const,
 1632         Tok.Next->isOneOf(tok::equal, tok::semi, tok::l_brace, tok::greater);
 1668       if (!Prev->isOneOf(tok::kw_const, tok::identifier, tok::coloncolon))
 1686         NextToken->isOneOf(tok::arrow, tok::equal, tok::kw_const,
 1694     if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace,
 1698         PrevToken->isOneOf(TT_BinaryOperator, TT_ConditionalExpr,
 1713           TokenBeforeMatchingParen->isOneOf(tok::kw_typeof, tok::kw_decltype,
 1719         PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true,
 1758     if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square,
 1776     if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier))
 1914       if (Current->isOneOf(tok::semi, TT_InlineASMColon, TT_SelectorName) ||
 1933           Current->isOneOf(Keywords.kw_extends, Keywords.kw_implements,
 2150         Tok->isOneOf(TT_PointerOrReference, TT_StartOfName, tok::ellipsis))
 2152     if (Tok->isOneOf(tok::l_brace, tok::string_literal, TT_ObjCMethodExpr) ||
 2352     if (!Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare,
 2384   if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon,
 2547       Right.isOneOf(tok::identifier, tok::string_literal, tok::char_constant,
 2578           !TokenBeforeMatchingParen->isOneOf(tok::kw_typeof, tok::kw_decltype,
 2599            (!Right.isOneOf(TT_PointerOrReference, TT_ArraySubscriptLSquare,
 2604             !Left.Previous->isOneOf(tok::l_paren, tok::coloncolon,
 2620            (Left.isOneOf(TT_ArraySubscriptLSquare, TT_StructuredBindingLSquare,
 2629              Right.MatchingParen->isOneOf(TT_ArraySubscriptLSquare,
 2634       !Right.isOneOf(TT_ObjCMethodExpr, TT_LambdaLSquare,
 2655             (Left.isOneOf(tok::pp_elif, tok::kw_for, tok::kw_while,
 2659              (Left.isOneOf(tok::kw_try, Keywords.kw___except, tok::kw_catch,
 2672     return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) &&
 2674   if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square,
 2726         Left.isOneOf(Keywords.kw_optional, Keywords.kw_required,
 2784         Left.isOneOf(Keywords.kw_function, Keywords.kw_yield,
 2797       if (Left.isOneOf(tok::kw_throw, Keywords.kw_await, Keywords.kw_typeof,
 2805     if ((Left.isOneOf(Keywords.kw_let, Keywords.kw_var, Keywords.kw_in,
 2819         Right.isOneOf(tok::l_square, tok::l_brace, tok::l_paren))
 2836         !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square,
 2852     if ((Left.isOneOf(tok::kw_static, tok::kw_public, tok::kw_private,
 2854          Left.isOneOf(Keywords.kw_final, Keywords.kw_abstract,
 2935   if (Right.isOneOf(tok::arrow, tok::arrowstar, tok::periodstar) ||
 2936       Left.isOneOf(tok::arrow, tok::period, tok::arrowstar, tok::periodstar) ||
 2953            !(Left.isOneOf(tok::l_paren, tok::r_paren, tok::l_square,
 2990          !Tok.isOneOf(TT_ObjCBlockLBrace, TT_LambdaLBrace, TT_DictLiteral);
 3006         Line.First->isOneOf(tok::identifier, Keywords.kw_import, tok::kw_export,
 3231     if (Left.isOneOf(tok::r_brace, tok::greater, tok::r_square))
 3255     if (!Next->isOneOf(TT_LambdaLSquare, tok::l_brace, tok::caret))
 3268     if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3271     if (Right.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3277         NonComment->isOneOf(
 3328         Right.isOneOf(Keywords.kw_module, tok::kw_namespace,
 3436   if (Right.isOneOf(TT_RangeBasedForLoopColon, TT_OverloadedOperatorLParen,
 3476     return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal, tok::l_paren,
 3526   return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace,
 3529          Right.isOneOf(TT_TrailingReturnArrow, TT_LambdaArrow, tok::lessless,
tools/clang/lib/Format/UnwrappedLineFormatter.cpp
  244       if (Tok && Tok->isOneOf(tok::kw_class, tok::kw_struct, tok::kw_union,
  302         TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for)) {
  309         (TheLine->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for,
  323                TheLine->First->isOneOf(tok::kw_if, tok::kw_while,
  334         I[-1]->First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_for)) {
  443     if (I[1]->First->isOneOf(tok::semi, tok::kw_if, tok::kw_for, tok::kw_while,
  475       if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace))
  477       if (Line->First->isOneOf(tok::kw_if, tok::kw_for, tok::kw_switch,
  489           if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace))
  515         Line.First->isOneOf(tok::at, tok::minus, tok::plus))
  529     if (Line.First->isOneOf(tok::kw_if, tok::kw_while, tok::kw_do, tok::kw_try,
  548           Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for) &&
  553           Line.First->isOneOf(tok::kw_while, tok::kw_do, tok::kw_for) &&
  563       if (Line.First->isOneOf(tok::kw_try, tok::kw___try, tok::kw_catch,
  583                RecordTok->isOneOf(tok::kw_typedef, tok::kw_export,
  588             RecordTok->isOneOf(tok::kw_class, tok::kw_union, tok::kw_struct,
 1228     if (RootToken.isOneOf(tok::l_brace, tok::r_brace, tok::kw_case))
tools/clang/lib/Format/UnwrappedLineParser.cpp
  458                NextTok->isOneOf(Keywords.kw_of, Keywords.kw_in,
  461               NextTok->isOneOf(tok::comma, tok::period, tok::colon,
  465                !PrevTok->isOneOf(tok::semi, tok::r_brace, tok::l_brace)) ||
  888           !FormatTok->isOneOf(
  909   return FormatTok->isOneOf(
  965        Previous->isOneOf(tok::r_square, tok::r_paren, tok::plusplus,
 1111         FormatTok->isOneOf(Keywords.kw_signals, Keywords.kw_qsignals,
 1218       if (FormatTok->isOneOf(Keywords.kw_NS_ENUM, Keywords.kw_NS_OPTIONS,
 1511       (Previous->isOneOf(tok::identifier, tok::kw_operator, tok::kw_new,
 1845     if (!(FormatTok->isOneOf(tok::kw_catch, Keywords.kw___except,
 1859       if (FormatTok->isOneOf(tok::semi, tok::r_brace, tok::eof))
 1884     while (FormatTok->isOneOf(tok::identifier, tok::coloncolon, tok::kw_inline,
 1918     if (FormatTok->isOneOf(tok::semi, tok::l_brace, tok::r_brace))
 1935   assert(FormatTok->isOneOf(tok::kw_for, tok::kw_while, TT_ForEachMacro) &&
 2070          FormatTok->isOneOf(tok::colon, tok::coloncolon, tok::less,
 2184   while (FormatTok->isOneOf(tok::identifier, tok::coloncolon, tok::hashhash,
tools/clang/lib/Format/WhitespaceManager.cpp
  601           if (Next->isOneOf(TT_StartOfName, TT_FunctionDeclarationName,