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

References

tools/clang/lib/Format/BreakableToken.cpp
  187   assert((Token.is(TT_BlockComment) || Token.is(TT_LineComment)) &&
  187   assert((Token.is(TT_BlockComment) || Token.is(TT_LineComment)) &&
  340   assert(Tok.is(TT_BlockComment) &&
  727   assert(Tok.is(TT_LineComment) &&
  731        CurrentTok && CurrentTok->is(TT_LineComment);
tools/clang/lib/Format/ContinuationIndenter.cpp
  123   if (Current.is(TT_CtorInitializerComma) &&
  126   if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName))
  312   if (Current.is(TT_FunctionDeclarationName) && State.Column < 6) {
  323   if (Previous.is(tok::l_square) && Previous.is(TT_ObjCMethodExpr))
  332   if (Current.MustBreakBefore || Current.is(TT_InlineASMColon))
  345        (Previous.is(TT_TemplateCloser) && Current.is(TT_StartOfName) &&
  345        (Previous.is(TT_TemplateCloser) && Current.is(TT_StartOfName) &&
  352        (Style.BreakBeforeTernaryOperators && Current.is(TT_ConditionalExpr) &&
  355         Previous.is(TT_ConditionalExpr))) &&
  359   if (((Previous.is(TT_DictLiteral) && Previous.is(tok::l_brace)) ||
  360        (Previous.is(TT_ArrayInitializerLSquare) &&
  372   if (BreakConstructorInitializersToken.is(TT_CtorInitializerColon) &&
  381   if (Current.is(TT_ObjCMethodExpr) && !Previous.is(TT_SelectorName) &&
  381   if (Current.is(TT_ObjCMethodExpr) && !Previous.is(TT_SelectorName) &&
  384   if (Current.is(TT_SelectorName) && !Previous.is(tok::at) &&
  430   if (Previous.is(TT_BinaryOperator) && Current.CanBreakBefore) {
  451   } else if (Current.is(TT_BinaryOperator) && Current.CanBreakBefore &&
  468     if (Previous.is(TT_FunctionAnnotationRParen))
  470     if (Previous.is(TT_LeadingJavaAnnotation) && Current.isNot(tok::l_paren) &&
  476   if (((Current.is(TT_FunctionDeclarationName) &&
  497   if (Previous.is(TT_BlockComment) && Previous.IsMultiline)
  514   if ((Current.is(TT_ImplicitStringLiteral) &&
  588       Current.is(TT_InheritanceColon))
  591       Previous.is(TT_InheritanceColon))
  594   if (Current.is(TT_SelectorName) &&
  628   if (Previous.is(TT_TemplateString) && Previous.opensScope())
  641   if (Current.is(TT_LambdaArrow) && Style.Language == FormatStyle::LK_Java)
  661        (P->is(TT_ConditionalExpr) && P->is(tok::colon))) &&
  668         (P->is(TT_BinaryOperator) &&
  670         (P->is(TT_ConditionalExpr) && Style.BreakBeforeTernaryOperators);
  675         P->OperatorIndex == 0 && !P->NextOperator && !P->is(TT_ConditionalExpr);
  691                !Previous.is(TT_OverloadedOperator)) ||
  692               (Previous.is(tok::colon) && Previous.is(TT_ObjCMethodExpr)))) {
  694   } else if (Previous.is(TT_CtorInitializerColon) &&
  710   } else if (Previous.is(TT_InheritanceColon)) {
  772   if (!Current.is(TT_LambdaArrow) &&
  782   } else if (NextNonComment->is(TT_SelectorName)) {
  819       Previous.is(TT_BinaryOperator))
  828   if (Current.is(TT_BinaryOperator) && Current.CanBreakBefore)
  893         Previous.is(TT_CtorInitializerColon) &&
  903         Previous.is(TT_DictLiteral))
  976   if (NextNonComment->is(TT_TemplateString) && NextNonComment->closesScope())
  979       (Current.Next->is(TT_DictLiteral) ||
  984   if (NextNonComment->is(TT_ObjCStringLiteral) &&
  999         NextNonComment->is(TT_ConditionalExpr)) ||
 1000        Previous.is(TT_ConditionalExpr)))
 1012   if (NextNonComment->is(TT_SelectorName)) {
 1038   if (NextNonComment->is(tok::colon) && NextNonComment->is(TT_ObjCMethodExpr))
 1040   if (NextNonComment->is(TT_ArraySubscriptLSquare)) {
 1049       NextNonComment->Next && NextNonComment->Next->is(TT_ObjCMethodExpr))
 1058   if (NextNonComment->is(TT_CtorInitializerComma))
 1060   if (PreviousNonComment && PreviousNonComment->is(TT_CtorInitializerColon) &&
 1063   if (PreviousNonComment && PreviousNonComment->is(TT_InheritanceColon) &&
 1072   if (Current.is(TT_ProtoExtensionLSquare))
 1089   if (Current.is(TT_InheritanceColon))
 1097   if (Current.is(TT_BinaryOperator) && Current.isNot(tok::lessless))
 1099   if (Current.is(TT_ConditionalExpr) && Current.Previous &&
 1100       !Current.Previous->is(TT_ConditionalExpr))
 1102   if (Current.is(TT_ArraySubscriptLSquare) &&
 1115       !Current.is(TT_PointerOrReference))
 1121   if (Current.is(TT_SelectorName))
 1123   if (Current.is(TT_CtorInitializerColon) &&
 1144   if (Current.is(TT_CtorInitializerColon) &&
 1152   if (Current.is(TT_InheritanceColon))
 1172       !Previous->is(TT_DictLiteral) && State.Stack.size() > 1 &&
 1195   if (Current.is(TT_ObjCStringLiteral) && State.StartOfStringLiteral == 0)
 1197   if (Current.is(TT_CSharpStringLiteral) && State.StartOfStringLiteral == 0)
 1237                     Previous->is(TT_ObjCMethodExpr)));
 1274     if (*I != prec::Conditional && !Current.is(TT_UnaryOperator) &&
 1334     AvoidBinPacking = EndsInComma || Current.is(TT_DictLiteral) ||
 1383     if (Current.is(TT_ObjCMethodExpr) && Current.MatchingParen) {
 1415        (Current.is(TT_TemplateOpener) &&
 1423       Current.is(TT_ArrayInitializerLSquare) && Current.Previous &&
 1437        State.NextToken->is(TT_TemplateCloser) ||
 1438        (Current.is(tok::greater) && Current.is(TT_DictLiteral))))
 1454     if (CurrentScopeOpener.is(TT_ObjCMethodExpr) &&
 1477       NestedBlockIndent + (State.NextToken->is(TT_ObjCBlockLBrace)
 1730   if (Tok->is(TT_TemplateCloser)) {
 1812   } else if (Current.is(TT_BlockComment)) {
 1823   } else if (Current.is(TT_LineComment) &&
 1847   if (Current.is(TT_LineComment)) {
 2200     if (Current.is(TT_BlockComment))
 2218   if (!Current.isStringLiteral() || Current.is(TT_ImplicitStringLiteral))
tools/clang/lib/Format/Format.cpp
 1383           if (Tok->is(tok::coloncolon) && Tok->Previous->is(TT_TemplateOpener))
 1385           if (Tok->is(TT_TemplateCloser) &&
 1386               Tok->Previous->is(TT_TemplateCloser))
 1399         if (!Tok->is(TT_PointerOrReference))
 1596       if (Left->is(LK) && Right->is(RK)) {
 1782             FormatTok->is(TT_ObjCStringLiteral) ||
tools/clang/lib/Format/FormatToken.cpp
  167   if (Token->is(TT_ArrayInitializerLSquare) && Commas.size() < 19)
tools/clang/lib/Format/FormatToken.h
  322     return is(K1) || is(K2);
  322     return is(K1) || is(K2);
  326     return is(K1) || isOneOf(K2, Ks...);
  328   template <typename T> bool isNot(T Kind) const { return !is(Kind); }
  386     if (is(TT_TemplateString) && TokenText.endswith("${"))
  388     if (is(TT_DictLiteral) && is(tok::less))
  396     if (is(TT_TemplateString) && TokenText.startswith("}"))
  398     if (is(TT_DictLiteral) && is(tok::greater))
  434            (is(TT_LineComment) || !Next || Next->NewlinesBefore > 0);
  505     if (is(TT_TemplateString) && opensScope())
  507     return is(TT_ArrayInitializerLSquare) || is(TT_ProtoExtensionLSquare) ||
  507     return is(TT_ArrayInitializerLSquare) || is(TT_ProtoExtensionLSquare) ||
  509             (BlockKind == BK_Block || is(TT_DictLiteral) ||
  530     if (is(TT_TemplateString) && closesScope())
  559     return is(K1) && Next && Next->startsSequenceInternal(Tokens...);
  565     return is(K1);
  571     return is(K1);
  578     return is(K1) && Previous && Previous->endsSequenceInternal(Tokens...);
tools/clang/lib/Format/FormatTokenLexer.cpp
  692     if (FormatTok->is(TT_ImplicitStringLiteral))
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp
   37   if (NamespaceTok->is(TT_NamespaceMacro)) {
   72   if (NamespaceTok->is(TT_NamespaceMacro))
   77   if (NamespaceTok->is(TT_NamespaceMacro))
  105   if (NamespaceTok->is(TT_NamespaceMacro) &&
tools/clang/lib/Format/TokenAnnotator.cpp
   50       Left->Previous->MatchingParen->is(TT_TemplateOpener))
   56          Left->Previous->MatchingParen->is(TT_LambdaLSquare);
   87            !Previous.Previous->MatchingParen->is(TT_OverloadedOperatorLParen)))
  144           CurrentToken->Previous->is(TT_BinaryOperator) &&
  183     if (Left->is(TT_OverloadedOperatorLParen)) {
  197                 Left->Previous->is(TT_BinaryOperator))) {
  207                Left->Previous->is(TT_JsTypeColon)) {
  221     } else if (Left->Previous && Left->Previous->is(TT_ForEachMacro)) {
  226                Left->Previous->MatchingParen->is(TT_ObjCBlockLParen)) {
  273       if (CurrentToken->Previous->is(TT_PointerOrReference) &&
  279       if (CurrentToken->Previous->is(TT_BinaryOperator))
  296             if (Tok->is(TT_BinaryOperator) &&
  310         if (Left->is(TT_AttributeParen))
  312         if (Left->Previous && Left->Previous->is(TT_JavaAnnotation))
  314         if (Left->Previous && Left->Previous->is(TT_LeadingJavaAnnotation))
  316         if (Left->Previous && Left->Previous->is(TT_AttributeSquare))
  455         Style.isCpp() && Parent && Parent->is(TT_TemplateCloser) &&
  487     } else if (Left->is(TT_Unknown)) {
  502                  Parent->is(TT_TemplateCloser)) {
  557         Parent->is(TT_JsTypeColon))
  574                  Left->is(TT_ObjCMethodExpr)) {
  587               CurrentToken->Previous->is(TT_Unknown) &&
  593           if (Parent && Parent->is(TT_PointerOrReference))
  598             CurrentToken->Next->is(TT_LambdaArrow))
  608           if (Previous && Previous->is(TT_SelectorName)) {
  645       if (CurrentToken->is(tok::comma) && Left->is(TT_ObjCMethodExpr) &&
  670           Left->Previous->is(TT_JsTypeColon))
  685           if (Previous->is(TT_JsTypeOptionalQuestion))
  796             Tok->Previous->is(tok::identifier) && Tok->Previous->is(TT_Unknown);
  799             !(BeforePrevious->is(TT_CastRParen) ||
  800               (BeforePrevious->is(TT_ObjCMethodExpr) &&
  879           Tok->Previous->MatchingParen->is(TT_OverloadedOperatorLParen)) {
  941       if (Tok->Previous && Tok->Previous->is(TT_TemplateCloser))
  960         if (CurrentToken->Previous->is(TT_BinaryOperator))
 1043         if (IsMark || CurrentToken->Previous->is(TT_BinaryOperator))
 1328     } else if (Current.is(TT_TrailingReturnArrow)) {
 1330     } else if (Current.is(TT_LambdaArrow) || Current.is(Keywords.kw_assert)) {
 1333                Current.Previous->is(TT_CtorInitializerColon)) {
 1336     } else if (Current.Previous && Current.Previous->is(TT_InheritanceColon)) {
 1354     if (!Current.is(TT_Unknown))
 1407       if (Current.is(TT_UnaryOperator) && Current.is(tok::caret))
 1451                   !BeforeParen->is(TT_TypenameMacro) &&
 1488                Current.Previous && Current.Previous->is(TT_CastRParen) &&
 1491                Current.Previous->MatchingParen->Previous->is(
 1512         if (!Previous || Previous->is(TT_LeadingJavaAnnotation))
 1552     if (PreviousNotConst->is(TT_TemplateCloser))
 1565            PreviousNotConst->is(TT_PointerOrReference) ||
 1646       if (Token->is(TT_BinaryOperator))
 1764     if (PrevToken->is(TT_BinaryOperator))
 1774     if (!PrevToken || PrevToken->is(TT_CastRParen))
 1843       if (Current && Current->is(TT_SelectorName) &&
 1854            (Current->MatchingParen || Current->is(TT_TemplateString))) ||
 1900       if (Current->is(TT_ConditionalExpr))
 1902       if (NextNonComment && Current->is(TT_SelectorName) &&
 1908       if (Current->is(TT_JsComputedPropertyName))
 1910       if (Current->is(TT_LambdaArrow))
 1912       if (Current->is(TT_JsFatArrow))
 1916            NextNonComment->is(TT_SelectorName)))
 1918       if (Current->is(TT_RangeBasedForLoopColon))
 1927       if (Current->is(TT_BinaryOperator) || Current->is(tok::comma))
 1958     while (Current && Current->is(TT_UnaryOperator)) {
 2084       if (Next->is(TT_OverloadedOperatorLParen))
 2086       if (Next->is(TT_OverloadedOperator))
 2108     if (!Current.is(TT_StartOfName) || Current.NestingLevel != 0)
 2111       if (Next->is(TT_TemplateOpener)) {
 2141       Next->MatchingParen->Next->is(TT_PointerOrReference))
 2197     if (Current->is(TT_LineComment)) {
 2218             if (!Parameter->Previous->is(TT_CtorInitializerComma) &&
 2234         Current->is(TT_FunctionDeclarationName))
 2255     if (Current->is(TT_CtorInitializerColon))
 2269         Current->is(TT_SelectorName) && Current->ParameterIndex > 0) {
 2332     if (Left.is(TT_JsTypeColon))
 2334     if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) ||
 2335         (Right.is(TT_TemplateString) && Right.TokenText.startswith("}")))
 2342   if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral))
 2350     if (Right.is(TT_LambdaLSquare) && Left.is(tok::equal))
 2365     if (Left.is(TT_StartOfName))
 2371   if (Right.is(TT_PointerOrReference))
 2373   if (Right.is(TT_LambdaArrow))
 2377   if (Left.is(TT_CastRParen))
 2413   if (Right.is(TT_TrailingAnnotation) &&
 2434   if (Right.is(TT_SelectorName))
 2436   if (Left.is(tok::colon) && Left.is(TT_ObjCMethodExpr))
 2456   if (Left.is(TT_TemplateOpener))
 2466   if (Left.is(TT_JavaAnnotation))
 2469   if (Left.is(TT_UnaryOperator))
 2492   if (Left.is(TT_ConditionalExpr))
 2530     return (Right.is(TT_CastRParen) ||
 2531             (Left.MatchingParen && Left.MatchingParen->is(TT_CastRParen)))
 2552     return !Left.is(TT_ObjCMethodExpr);
 2558          (Left.is(TT_DictLiteral) || Right.is(TT_DictLiteral)))) {
 2558          (Left.is(TT_DictLiteral) || Right.is(TT_DictLiteral)))) {
 2571   if (Right.is(TT_PointerOrReference)) {
 2589   if (Right.is(TT_FunctionTypeLParen) && Left.isNot(tok::l_paren) &&
 2590       (!Left.is(TT_PointerOrReference) ||
 2594   if (Left.is(TT_PointerOrReference))
 2595     return Right.Tok.isLiteral() || Right.is(TT_BlockComment) ||
 2597             !Right.is(TT_StartOfName)) ||
 2618     return (Left.is(TT_ArrayInitializerLSquare) && Right.isNot(tok::r_square) &&
 2625            ((Right.MatchingParen->is(TT_ArrayInitializerLSquare) &&
 2632             Right.MatchingParen->is(TT_AttributeParen));
 2645   if (Left.is(TT_BlockComment))
 2650     if ((Left.is(tok::r_paren) && Left.is(TT_AttributeParen)) ||
 2651         (Left.is(tok::r_square) && Left.is(TT_AttributeSquare)))
 2666               Left.MatchingParen->is(TT_LambdaLSquare))) &&
 2671   if (Right.is(TT_UnaryOperator))
 2684   if (Left.is(TT_TemplateCloser) && Left.MatchingParen &&
 2692   if (Left.is(TT_TemplateCloser) && Right.is(tok::l_square))
 2732     if (Right.isOneOf(tok::l_brace, tok::less) && Left.is(TT_SelectorName))
 2738         Left.MatchingParen->is(TT_ProtoExtensionLSquare) &&
 2750     if (Left.is(TT_TemplateCloser) && Right.is(TT_StartOfName))
 2750     if (Left.is(TT_TemplateCloser) && Right.is(TT_StartOfName))
 2757     if (Left.is(TT_JsFatArrow))
 2768       if (Next && Next->is(TT_JsFatArrow))
 2771     if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) ||
 2772         (Right.is(TT_TemplateString) && Right.TokenText.startswith("}")))
 2778         Right.is(TT_TemplateString))
 2828     if (Left.is(TT_JsTypeOperator) || Right.is(TT_JsTypeOperator))
 2828     if (Left.is(TT_JsTypeOperator) || Right.is(TT_JsTypeOperator))
 2835     if (Left.is(TT_TemplateCloser) &&
 2842     if (Right.is(TT_JsNonNullAssertion))
 2844     if (Left.is(TT_JsNonNullAssertion) &&
 2856         Right.is(TT_TemplateOpener))
 2859   if (Left.is(TT_ImplicitStringLiteral))
 2862     if (Left.is(TT_ObjCMethodSpecifier))
 2877   if (Right.is(TT_OverloadedOperatorLParen))
 2883   if (Right.is(TT_ObjCBlockLParen))
 2885   if (Right.is(TT_CtorInitializerColon))
 2887   if (Right.is(TT_InheritanceColon) && !Style.SpaceBeforeInheritanceColon)
 2889   if (Right.is(TT_RangeBasedForLoopColon) &&
 2896     if (Right.is(TT_ObjCMethodExpr))
 2900     if (Right.is(TT_InlineASMColon) && Left.is(tok::coloncolon))
 2902     if (Right.is(TT_DictLiteral))
 2904     if (Right.is(TT_AttributeColon))
 2908   if (Left.is(TT_UnaryOperator)) {
 2919            Right.is(TT_BinaryOperator);
 2924   if (Left.is(TT_CastRParen))
 2930         (Style.Language == FormatStyle::LK_Proto && Left.is(TT_DictLiteral)))
 2932     return Right.is(TT_TemplateCloser) && Left.is(TT_TemplateCloser) &&
 2932     return Right.is(TT_TemplateCloser) && Left.is(TT_TemplateCloser) &&
 2951     return (Left.is(TT_TemplateOpener) &&
 2957   if ((Left.is(TT_TemplateOpener)) != (Right.is(TT_TemplateCloser)))
 2957   if ((Left.is(TT_TemplateOpener)) != (Right.is(TT_TemplateCloser)))
 2960   if (Right.is(TT_StructuredBindingLSquare))
 2964   if (Right.Next && Right.Next->is(TT_StructuredBindingLSquare) &&
 2967   if ((Right.is(TT_BinaryOperator) && !Left.is(tok::l_paren)) ||
 2971   if (Left.is(TT_TemplateCloser) && Right.is(tok::l_paren) &&
 2974   if (Right.is(TT_TemplateOpener) && Left.is(tok::r_paren) &&
 2975       Left.MatchingParen && Left.MatchingParen->is(TT_OverloadedOperatorLParen))
 2980   if (Right.is(TT_TrailingUnaryOperator))
 2982   if (Left.is(TT_RegexLiteral))
 3004     if (Left.is(TT_DictLiteral) && Left.is(tok::l_brace) && Line.Level == 0 &&
 3082   if (Right.is(TT_CtorInitializerComma) &&
 3086   if (Right.is(TT_CtorInitializerColon) &&
 3092       Right.is(TT_InheritanceComma))
 3107   if (Right.is(TT_InlineASMBrace))
 3115   if (Left.is(TT_ObjCBlockLBrace) &&
 3119   if (Left.is(TT_LambdaLBrace)) {
 3134       ((Left.is(TT_AttributeSquare) && Left.is(tok::r_square)) ||
 3135        (Left.is(tok::r_square) && Right.is(TT_AttributeSquare) &&
 3142       Left.is(TT_LeadingJavaAnnotation) &&
 3147   if (Right.is(TT_ProtoExtensionLSquare))
 3179       Right.is(TT_SelectorName) && !Right.is(tok::r_square) && Right.Next) {
 3207           (LBrace->is(TT_DictLiteral) ||
 3209          LBrace->is(TT_ArrayInitializerLSquare) || LBrace->is(tok::less))) {
 3289     if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace))
 3291     if (Left.is(TT_JsTypeColon))
 3325     if (Left.is(TT_JsNonNullAssertion))
 3338     if (Right.is(TT_TemplateString) && Right.closesScope())
 3342     if (Left.is(tok::identifier) && Right.is(TT_TemplateString)) {
 3345     if (Left.is(TT_TemplateString) && Left.opensScope())
 3355   if (Right.is(TT_PointerOrReference))
 3362   if (Left.is(TT_PointerOrReference))
 3371            (Left.is(TT_CtorInitializerColon) &&
 3375   if (Right.is(TT_ConditionalExpr) || Right.is(tok::question))
 3377   if (Left.is(TT_ConditionalExpr) || Left.is(tok::question))
 3379   if (Left.is(TT_InheritanceColon))
 3381   if (Right.is(TT_InheritanceColon))
 3383   if (Right.is(TT_ObjCMethodExpr) && !Right.is(tok::r_square) &&
 3420            Right.is(TT_DictLiteral)) ||
 3421           Right.is(TT_ArrayInitializerLSquare))
 3427       Right.MatchingParen->is(TT_ProtoExtensionLSquare))
 3429   if (Right.is(TT_SelectorName) || (Right.is(tok::identifier) && Right.Next &&
 3430                                     Right.Next->is(TT_ObjCMethodExpr)))
 3434   if (Left.ClosesTemplateDeclaration || Left.is(TT_FunctionAnnotationRParen))
 3439   if (Left.is(TT_RangeBasedForLoopColon))
 3441   if (Right.is(TT_RangeBasedForLoopColon))
 3443   if (Left.is(TT_TemplateCloser) && Right.is(TT_TemplateOpener))
 3443   if (Left.is(TT_TemplateCloser) && Right.is(TT_TemplateOpener))
 3454   if (Left.is(tok::l_paren) && Left.is(TT_AttributeParen))
 3459   if (Right.is(TT_ImplicitStringLiteral))
 3462   if (Right.is(tok::r_paren) || Right.is(TT_TemplateCloser))
 3465       Right.MatchingParen->is(TT_LambdaLSquare))
 3475   if (Left.is(TT_TrailingAnnotation))
 3480       (Right.is(tok::l_square) && Right.is(TT_AttributeSquare)))
 3486   if (Right.is(tok::identifier) && Right.Next && Right.Next->is(TT_DictLiteral))
 3489   if (Left.is(TT_CtorInitializerColon))
 3491   if (Right.is(TT_CtorInitializerColon))
 3493   if (Left.is(TT_CtorInitializerComma) &&
 3496   if (Right.is(TT_CtorInitializerComma) &&
 3499   if (Left.is(TT_InheritanceComma) &&
 3502   if (Right.is(TT_InheritanceComma) &&
 3508   if (Right.is(TT_BinaryOperator) &&
 3513   if (Left.is(TT_ArrayInitializerLSquare))
 3517   if ((Left.isBinaryOperator() || Left.is(TT_BinaryOperator)) &&
 3523   if ((Left.is(TT_AttributeSquare) && Right.is(tok::l_square)) ||
 3524       (Left.is(tok::r_square) && Right.is(TT_AttributeSquare)))
 3534          (Left.is(TT_TemplateOpener) && !Right.is(TT_TemplateCloser));
 3534          (Left.is(TT_TemplateOpener) && !Right.is(TT_TemplateCloser));
tools/clang/lib/Format/UnwrappedLineFormatter.cpp
  203     if (TheLine->Last->is(TT_LineComment))
  222     if (TheLine->Last->is(TT_FunctionLBrace) &&
  296     if (TheLine->Last->is(TT_FunctionLBrace) &&
  366     if (I[1]->First->is(TT_FunctionLBrace) &&
  368       if (I[1]->Last->is(TT_LineComment))
  602         if (I[1]->Last->is(TT_LineComment))
  633       if (I[1]->Last->is(TT_LineComment))
tools/clang/lib/Format/UnwrappedLineParser.cpp
  344       if (!FormatTok->is(TT_MacroBlockBegin) && tryToParseBracedList())
  488       if (!Tok->is(TT_StatementMacro))
  537   const bool MacroBlock = FormatTok->is(TT_MacroBlockBegin);
  565   if (MacroBlock ? !FormatTok->is(TT_MacroBlockEnd)
  947       Previous->is(TT_TemplateString) && Previous->TokenText.endswith("${");
  962       Next->is(TT_TemplateString) && Next->TokenText.startswith("}");
 1083     if (FormatTok->is(TT_ForEachMacro)) {
 1087     if (FormatTok->is(TT_MacroBlockBegin)) {
 1120     if (Style.isCpp() && FormatTok->is(TT_StatementMacro)) {
 1124     if (Style.isCpp() && FormatTok->is(TT_NamespaceMacro)) {
 1299       if (FormatTok->is(TT_MacroBlockEnd)) {
 1337       if (Style.isCpp() && FormatTok->is(TT_StatementMacro)) {
 1382       if (FormatTok->is(TT_JsFatArrow)) {
 1593       if (FormatTok->is(TT_JsFatArrow)) {
 1881   if (InitialToken.is(TT_NamespaceMacro)) {
tools/clang/lib/Format/WhitespaceManager.cpp
  217       if (Change.Tok->is(TT_LineComment) || !Change.IsInsideToken)
  288       if (Changes[ScopeStart - 1].Tok->is(TT_FunctionDeclarationName) ||
  290            Changes[ScopeStart - 2].Tok->is(TT_FunctionDeclarationName)))