enum TokenType
Description
Determines the semantic type of a syntactic token, e.g. whether "<" is a template opener or binary operator.
Declared at: clang/lib/Format/FormatToken.h:142
Enumerators
| Name | Value | Comment |
|---|---|---|
| TT_ArrayInitializerLSquare | 0 | |
| TT_ArraySubscriptLSquare | 1 | |
| TT_AttributeColon | 2 | |
| TT_AttributeMacro | 3 | |
| TT_AttributeParen | 4 | |
| TT_AttributeSquare | 5 | |
| TT_BinaryOperator | 6 | |
| TT_BitFieldColon | 7 | |
| TT_BlockComment | 8 | |
| TT_BracedListLBrace | 9 | |
| TT_CastRParen | 10 | |
| TT_ClassLBrace | 11 | |
| TT_CompoundRequirementLBrace | 12 | |
| TT_ConditionalExpr | 13 | |
| TT_ConflictAlternative | 14 | |
| TT_ConflictEnd | 15 | |
| TT_ConflictStart | 16 | |
| TT_ControlStatementLBrace | 17 | |
| TT_CppCastLParen | 18 | |
| TT_CSharpGenericTypeConstraint | 19 | |
| TT_CSharpGenericTypeConstraintColon | 20 | |
| TT_CSharpGenericTypeConstraintComma | 21 | |
| TT_CSharpNamedArgumentColon | 22 | |
| TT_CSharpNullable | 23 | |
| TT_CSharpNullConditionalLSquare | 24 | |
| TT_CSharpStringLiteral | 25 | |
| TT_CtorInitializerColon | 26 | |
| TT_CtorInitializerComma | 27 | |
| TT_DesignatedInitializerLSquare | 28 | |
| TT_DesignatedInitializerPeriod | 29 | |
| TT_DictLiteral | 30 | |
| TT_ElseLBrace | 31 | |
| TT_EnumLBrace | 32 | |
| TT_FatArrow | 33 | |
| TT_ForEachMacro | 34 | |
| TT_FunctionAnnotationRParen | 35 | |
| TT_FunctionDeclarationName | 36 | |
| TT_FunctionLBrace | 37 | |
| TT_FunctionLikeOrFreestandingMacro | 38 | |
| TT_FunctionTypeLParen | 39 | |
| TT_IfMacro | 40 | |
| TT_ImplicitStringLiteral | 41 | |
| TT_InheritanceColon | 42 | |
| TT_InheritanceComma | 43 | |
| TT_InlineASMBrace | 44 | |
| TT_InlineASMColon | 45 | |
| TT_InlineASMSymbolicNameLSquare | 46 | |
| TT_JavaAnnotation | 47 | |
| TT_JsAndAndEqual | 48 | |
| TT_JsComputedPropertyName | 49 | |
| TT_JsExponentiation | 50 | |
| TT_JsExponentiationEqual | 51 | |
| TT_JsPipePipeEqual | 52 | |
| TT_JsPrivateIdentifier | 53 | |
| TT_JsTypeColon | 54 | |
| TT_JsTypeOperator | 55 | |
| TT_JsTypeOptionalQuestion | 56 | |
| TT_LambdaArrow | 57 | |
| TT_LambdaLBrace | 58 | |
| TT_LambdaLSquare | 59 | |
| TT_LeadingJavaAnnotation | 60 | |
| TT_LineComment | 61 | |
| TT_MacroBlockBegin | 62 | |
| TT_MacroBlockEnd | 63 | |
| TT_ModulePartitionColon | 64 | |
| TT_NamespaceMacro | 65 | |
| TT_NonNullAssertion | 66 | |
| TT_NullCoalescingEqual | 67 | |
| TT_NullCoalescingOperator | 68 | |
| TT_NullPropagatingOperator | 69 | |
| TT_ObjCBlockLBrace | 70 | |
| TT_ObjCBlockLParen | 71 | |
| TT_ObjCDecl | 72 | |
| TT_ObjCForIn | 73 | |
| TT_ObjCMethodExpr | 74 | |
| TT_ObjCMethodSpecifier | 75 | |
| TT_ObjCProperty | 76 | |
| TT_ObjCStringLiteral | 77 | |
| TT_OverloadedOperator | 78 | |
| TT_OverloadedOperatorLParen | 79 | |
| TT_PointerOrReference | 80 | |
| TT_ProtoExtensionLSquare | 81 | |
| TT_PureVirtualSpecifier | 82 | |
| TT_RangeBasedForLoopColon | 83 | |
| TT_RecordLBrace | 84 | |
| TT_RegexLiteral | 85 | |
| TT_RequiresClause | 86 | |
| TT_RequiresClauseInARequiresExpression | 87 | |
| TT_RequiresExpression | 88 | |
| TT_RequiresExpressionLBrace | 89 | |
| TT_RequiresExpressionLParen | 90 | |
| TT_SelectorName | 91 | |
| TT_StartOfName | 92 | |
| TT_StatementAttributeLikeMacro | 93 | |
| TT_StatementMacro | 94 | |
| TT_StructLBrace | 95 | |
| TT_StructuredBindingLSquare | 96 | |
| TT_TemplateCloser | 97 | |
| TT_TemplateOpener | 98 | |
| TT_TemplateString | 99 | |
| TT_TrailingAnnotation | 100 | |
| TT_TrailingReturnArrow | 101 | |
| TT_TrailingUnaryOperator | 102 | |
| TT_TypeDeclarationParen | 103 | |
| TT_TypenameMacro | 104 | |
| TT_UnaryOperator | 105 | |
| TT_UnionLBrace | 106 | |
| TT_UntouchableMacroFunc | 107 | |
| TT_Unknown | 108 | |
| NUM_TOKEN_TYPES | 109 |