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

References

tools/clang/lib/Format/TokenAnnotator.cpp
 3268     if (Left.isOneOf(Keywords.kw_throws, Keywords.kw_extends,
 3285         (Left.Tok.getIdentifierInfo() ||
 3286          Left.isOneOf(tok::r_square, tok::r_paren)) &&
 3289     if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace))
 3291     if (Left.is(TT_JsTypeColon))
 3294     if (Left.is(tok::exclaim) && Right.is(tok::colon))
 3311     if (Left.is(Keywords.kw_in))
 3323     if (Left.is(Keywords.kw_as))
 3325     if (Left.is(TT_JsNonNullAssertion))
 3327     if (Left.is(Keywords.kw_declare) &&
 3335     if (Left.isOneOf(Keywords.kw_module, tok::kw_namespace) &&
 3342     if (Left.is(tok::identifier) && Right.is(TT_TemplateString)) {
 3345     if (Left.is(TT_TemplateString) && Left.opensScope())
 3345     if (Left.is(TT_TemplateString) && Left.opensScope())
 3349   if (Left.is(tok::at))
 3351   if (Left.Tok.getObjCKeywordID() == tok::objc_interface)
 3353   if (Left.isOneOf(TT_JavaAnnotation, TT_LeadingJavaAnnotation))
 3362   if (Left.is(TT_PointerOrReference))
 3370     return Left.BlockKind == BK_BracedInit ||
 3371            (Left.is(TT_CtorInitializerColon) &&
 3373   if (Left.is(tok::question) && Right.is(tok::colon))
 3377   if (Left.is(TT_ConditionalExpr) || Left.is(tok::question))
 3377   if (Left.is(TT_ConditionalExpr) || Left.is(tok::question))
 3379   if (Left.is(TT_InheritanceColon))
 3384       Left.isNot(TT_SelectorName))
 3390   if (Left.is(tok::colon) && Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) {
 3390   if (Left.is(tok::colon) && Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) {
 3431     return Left.isNot(tok::period); // FIXME: Properly parse ObjC calls.
 3432   if (Left.is(tok::r_paren) && Line.Type == LT_ObjCProperty)
 3434   if (Left.ClosesTemplateDeclaration || Left.is(TT_FunctionAnnotationRParen))
 3434   if (Left.ClosesTemplateDeclaration || Left.is(TT_FunctionAnnotationRParen))
 3439   if (Left.is(TT_RangeBasedForLoopColon))
 3443   if (Left.is(TT_TemplateCloser) && Right.is(TT_TemplateOpener))
 3445   if (Left.isOneOf(TT_TemplateCloser, TT_UnaryOperator) ||
 3446       Left.is(tok::kw_operator))
 3448   if (Left.is(tok::equal) && !Right.isOneOf(tok::kw_default, tok::kw_delete) &&
 3449       Line.Type == LT_VirtualFunctionDecl && Left.NestingLevel == 0)
 3451   if (Left.is(tok::equal) && Right.is(tok::l_brace) &&
 3454   if (Left.is(tok::l_paren) && Left.is(TT_AttributeParen))
 3454   if (Left.is(tok::l_paren) && Left.is(TT_AttributeParen))
 3456   if (Left.is(tok::l_paren) && Left.Previous &&
 3456   if (Left.is(tok::l_paren) && Left.Previous &&
 3457       (Left.Previous->isOneOf(TT_BinaryOperator, TT_CastRParen)))
 3475   if (Left.is(TT_TrailingAnnotation))
 3483   if (Left.is(tok::identifier) && Right.is(tok::string_literal))
 3489   if (Left.is(TT_CtorInitializerColon))
 3493   if (Left.is(TT_CtorInitializerComma) &&
 3499   if (Left.is(TT_InheritanceComma) &&
 3505   if ((Left.is(tok::greater) && Right.is(tok::greater)) ||
 3506       (Left.is(tok::less) && Right.is(tok::less)))
 3513   if (Left.is(TT_ArrayInitializerLSquare))
 3515   if (Right.is(tok::kw_typename) && Left.isNot(tok::kw_const))
 3517   if ((Left.isBinaryOperator() || Left.is(TT_BinaryOperator)) &&
 3517   if ((Left.isBinaryOperator() || Left.is(TT_BinaryOperator)) &&
 3518       !Left.isOneOf(tok::arrowstar, tok::lessless) &&
 3521        Left.getPrecedence() == prec::Assignment))
 3523   if ((Left.is(TT_AttributeSquare) && Right.is(tok::l_square)) ||
 3524       (Left.is(tok::r_square) && Right.is(TT_AttributeSquare)))
 3526   return Left.isOneOf(tok::comma, tok::coloncolon, tok::semi, tok::l_brace,
 3531          (Left.is(tok::r_paren) &&
 3533          (Left.is(tok::l_paren) && !Right.is(tok::r_paren)) ||
 3534          (Left.is(TT_TemplateOpener) && !Right.is(TT_TemplateCloser));