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

References

tools/clang/lib/Format/Format.cpp
 1793                      << getTokenTypeName(FormatTok->Type) << "\n");
tools/clang/lib/Format/FormatToken.cpp
   87       LBrace->BlockKind == BK_Block || LBrace->Type == TT_DictLiteral ||
   88       LBrace->Next->Type == TT_DesignatedInitializerPeriod)
tools/clang/lib/Format/FormatToken.h
  313   bool is(TokenType TT) const { return Type == TT; }
tools/clang/lib/Format/FormatTokenLexer.cpp
  142   At->Type = TT_ObjCStringLiteral;
  161   Hash->Type = TT_JsPrivateIdentifier;
  189       Dollar->Type = TT_CSharpStringLiteral;
  201   At->Type = TT_CSharpStringLiteral;
  218   FirstQuestion->Type = TT_CSharpNullCoalescing;
  237   At->Type = Keyword->Type;
  237   At->Type = Keyword->Type;
  269   Identifier->Type = TT_ForEachMacro;
  320   First[0]->Type = NewType;
  409   RegexToken->Type = TT_RegexLiteral;
  459   BacktickToken->Type = TT_TemplateString;
  497   HashToken->Type = TT_LineComment;
  595     Tokens.back()->Type = Type;
  682           FormatTok->Type = TT_ImplicitStringLiteral;
  685         FormatTok->Type = TT_ImplicitStringLiteral;
  688       if (FormatTok->Type == TT_ImplicitStringLiteral)
  816       FormatTok->Type = it->second;
  819         FormatTok->Type = TT_MacroBlockBegin;
  821         FormatTok->Type = TT_MacroBlockEnd;
tools/clang/lib/Format/TokenAnnotator.cpp
  121           CurrentToken->Type = TT_DictLiteral;
  123           CurrentToken->Type = TT_TemplateCloser;
  154             Previous->Type = TT_SelectorName;
  220       Left->Type = TT_AttributeParen;
  236       Left->Type = TT_ObjCMethodExpr;
  267             Prev->Type = TT_BinaryOperator;
  285           Left->Type = Left->Next->is(tok::caret) ? TT_ObjCBlockLParen
  298               Tok->Type = TT_PointerOrReference;
  303           CurrentToken->Type = TT_ObjCMethodExpr;
  311           CurrentToken->Type = TT_AttributeParen;
  313           CurrentToken->Type = TT_JavaAnnotation;
  315           CurrentToken->Type = TT_LeadingJavaAnnotation;
  317           CurrentToken->Type = TT_AttributeSquare;
  333         Left->Type = TT_Unknown; // Not TT_ObjCBlockLParen
  345           PossibleObjCForInToken->Type = TT_Unknown;
  351         PossibleObjCForInToken->Type = TT_ObjCForIn;
  486       Left->Type = TT_StructuredBindingLSquare;
  489         Left->Type = TT_ObjCMethodExpr;
  491         Left->Type = TT_AttributeSquare;
  495         Left->Type = TT_JsComputedPropertyName;
  498         Left->Type = TT_DesignatedInitializerLSquare;
  500         Left->Type = TT_AttributeSquare;
  503         Left->Type = TT_ArraySubscriptLSquare;
  532         Left->Type = TT_ArrayInitializerLSquare;
  538           Left->Type = TT_ProtoExtensionLSquare;
  547         Left->Type = TT_ArrayInitializerLSquare;
  550         Left->Type = TT_ArraySubscriptLSquare;
  567           CurrentToken->Type = TT_AttributeSquare;
  569           CurrentToken->Type = TT_AttributeSquare;
  580           Left->Type = TT_Unknown;
  583           CurrentToken->Type = TT_ObjCMethodExpr;
  589             CurrentToken->Previous->Type = TT_SelectorName;
  594             Parent->Type = TT_BinaryOperator;
  597         if (CurrentToken->Type == TT_ObjCMethodExpr && CurrentToken->Next &&
  599           CurrentToken->Next->Type = TT_Unknown;
  633           CurrentToken->Type = TT_AttributeColon;
  636           Left->Type = TT_ObjCMethodExpr;
  641             Parent->Type = TT_CastRParen;
  647         Left->Type = TT_ArrayInitializerLSquare;
  662         Left->Type = TT_ObjCBlockLBrace;
  691             Left->Type = TT_DictLiteral;
  694               Previous->Type = TT_SelectorName;
  698             Left->Type = TT_DictLiteral;
  702           Left->Type = TT_DictLiteral;
  729         CurrentToken->Type = TT_ConditionalExpr;
  741       CurrentToken->Type = TT_TemplateOpener;
  759         Tok->Type = TT_ObjCMethodSpecifier;
  776           Tok->Type = TT_JsTypeColon;
  783         Tok->Type = TT_DictLiteral;
  786             Previous->Type = TT_SelectorName;
  790         Tok->Type = TT_ObjCMethodExpr;
  805           Tok->Previous->Type = TT_SelectorName;
  817         Tok->Type = TT_RangeBasedForLoopColon;
  819         Tok->Type = TT_BitFieldColon;
  824           Tok->Type = TT_CtorInitializerColon;
  826           Tok->Type = TT_InheritanceColon;
  833         Tok->Type = TT_ObjCMethodExpr;
  835         Tok->Type = TT_InlineASMColon;
  844         Tok->Type = TT_JsTypeOperator;
  880         Tok->Previous->Type = TT_OverloadedOperator;
  881         Tok->Previous->MatchingParen->Type = TT_OverloadedOperator;
  882         Tok->Type = TT_OverloadedOperatorLParen;
  901         if (Previous && Previous->Type != TT_DictLiteral)
  902           Previous->Type = TT_SelectorName;
  909         Tok->Type = TT_TemplateOpener;
  918           Tok->Type = TT_DictLiteral;
  920           if (Previous && Previous->Type != TT_DictLiteral)
  921             Previous->Type = TT_SelectorName;
  924         Tok->Type = TT_BinaryOperator;
  940         Tok->Type = TT_BinaryOperator;
  951           CurrentToken->Type = TT_PointerOrReference;
  956           CurrentToken->Previous->Type = TT_OverloadedOperator;
  959         CurrentToken->Type = TT_OverloadedOperatorLParen;
  961           CurrentToken->Previous->Type = TT_OverloadedOperator;
  972         Tok->Type = TT_JsTypeOptionalQuestion;
  987         Tok->Type = TT_CtorInitializerComma;
  989         Tok->Type = TT_InheritanceComma;
 1018           CurrentToken->Type = TT_ImplicitStringLiteral;
 1030       CurrentToken->Type = TT_ImplicitStringLiteral;
 1044           CurrentToken->Type = TT_ImplicitStringLiteral;
 1071         CurrentToken->Type = TT_ImplicitStringLiteral;
 1232       CurrentToken->Type = TT_Unknown;
 1320             Previous->Type = TT_PointerOrReference;
 1342         Previous->Type = TT_PointerOrReference;
 1365           Current.Type = TT_JsNonNullAssertion;
 1370           Current.Type = TT_JsNonNullAssertion;
 1380       Current.Type = TT_BinaryOperator;
 1384       Current.Type = TT_StartOfName;
 1394       Current.Type = TT_LambdaArrow;
 1399       Current.Type = TT_TrailingReturnArrow;
 1401       Current.Type = determineStarAmpUsage(Current,
 1406       Current.Type = determinePlusMinusCaretUsage(Current);
 1410       Current.Type = determineIncrementUsage(Current);
 1412       Current.Type = TT_UnaryOperator;
 1418         Current.Type = TT_JsTypeOptionalQuestion;
 1420         Current.Type = TT_ConditionalExpr;
 1426       Current.Type = TT_BinaryOperator;
 1430           Current.Type = TT_BlockComment;
 1436         Current.Type = TT_LineComment;
 1440         Current.Type = TT_CastRParen;
 1455                 Current.Type = TT_FunctionAnnotationRParen;
 1467         Current.Type = TT_ObjCDecl;
 1470         Current.Type = TT_ObjCProperty;
 1479         Current.Type = TT_DesignatedInitializerPeriod;
 1483         Current.Type = Current.Previous->Type;
 1483         Current.Type = Current.Previous->Type;
 1496       Current.Type = TT_SelectorName;
 1504       Current.Type = TT_TrailingAnnotation;
 1513           Current.Type = TT_LeadingJavaAnnotation;
 1515           Current.Type = TT_JavaAnnotation;
 1519         Current.Type = Current.Previous->Type;
 1519         Current.Type = Current.Previous->Type;
 2196       Current->Type = TT_FunctionDeclarationName;
 2701   if (Right.Type == TT_TrailingAnnotation &&
 3543                  << " T=" << getTokenTypeName(Tok->Type)
tools/clang/lib/Format/UnwrappedLineParser.cpp
  330     if (FormatTok->Type == TT_MacroBlockBegin) {
  332     } else if (FormatTok->Type == TT_MacroBlockEnd) {
  987       FormatTok->Type = TT_InlineASMBrace;
  991           FormatTok->Type = TT_InlineASMBrace;
 1284         FormatTok->Type = TT_FunctionLBrace;
 1494       FormatTok->Type = TT_LambdaArrow;
 1502   FormatTok->Type = TT_LambdaLBrace;
 1503   LSquare.Type = TT_LambdaLSquare;
 1536     FormatTok->Type = TT_OverloadedOperator;
 2454                  << "T=" << I->Tok->Type << ", OC=" << I->Tok->OriginalColumn
 2725     while (FormatTok->Type == TT_ConflictStart ||
 2726            FormatTok->Type == TT_ConflictEnd ||
 2727            FormatTok->Type == TT_ConflictAlternative) {
 2728       if (FormatTok->Type == TT_ConflictStart) {
 2730       } else if (FormatTok->Type == TT_ConflictAlternative) {
 2732       } else if (FormatTok->Type == TT_ConflictEnd) {