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

References

tools/clang/lib/Format/TokenAnnotator.cpp
 2319   if (Left.is(tok::semi))
 2327     if (Left.is(tok::comma) && Left.NestingLevel == 0)
 2327     if (Left.is(tok::comma) && Left.NestingLevel == 0)
 2330     if (Right.is(Keywords.kw_function) && Left.isNot(tok::comma))
 2332     if (Left.is(TT_JsTypeColon))
 2334     if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) ||
 2334     if ((Left.is(TT_TemplateString) && Left.TokenText.endswith("${")) ||
 2338     if (Left.opensScope() && Right.closesScope())
 2347     if (Left.is(tok::r_square))
 2350     if (Right.is(TT_LambdaLSquare) && Left.is(tok::equal))
 2358   if (Left.is(tok::coloncolon) ||
 2365     if (Left.is(TT_StartOfName))
 2375   if (Left.is(tok::equal) && Right.is(tok::l_brace))
 2377   if (Left.is(TT_CastRParen))
 2379   if (Left.isOneOf(tok::kw_class, tok::kw_struct))
 2381   if (Left.is(tok::comment))
 2384   if (Left.isOneOf(TT_RangeBasedForLoopColon, TT_InheritanceColon,
 2425     return (Left.is(tok::r_paren) ? 100 : 120) + (is_short_annotation ? 50 : 0);
 2429   if (Line.startsWith(tok::kw_for) && Left.is(tok::equal))
 2436   if (Left.is(tok::colon) && Left.is(TT_ObjCMethodExpr))
 2436   if (Left.is(tok::colon) && Left.is(TT_ObjCMethodExpr))
 2442   if (Line.Type == LT_ObjCDecl && Left.is(tok::l_paren) && Left.Previous &&
 2442   if (Line.Type == LT_ObjCDecl && Left.is(tok::l_paren) && Left.Previous &&
 2443       Left.Previous->isOneOf(tok::identifier, tok::greater))
 2446   if (Left.is(tok::l_paren) && InFunctionDecl &&
 2449   if (Left.is(tok::l_paren) && Left.Previous &&
 2449   if (Left.is(tok::l_paren) && Left.Previous &&
 2450       (Left.Previous->is(tok::kw_for) || Left.Previous->isIf()))
 2450       (Left.Previous->is(tok::kw_for) || Left.Previous->isIf()))
 2452   if (Left.is(tok::equal) && InFunctionDecl)
 2456   if (Left.is(TT_TemplateOpener))
 2458   if (Left.opensScope()) {
 2461     if (Left.is(tok::l_brace) && !Style.Cpp11BracedListStyle)
 2463     return Left.ParameterCount > 1 ? Style.PenaltyBreakBeforeFirstCallParameter
 2466   if (Left.is(TT_JavaAnnotation))
 2469   if (Left.is(TT_UnaryOperator))
 2471   if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous &&
 2471   if (Left.isOneOf(tok::plus, tok::comma) && Left.Previous &&
 2472       Left.Previous->isLabelString() &&
 2473       (Left.NextOperator || Left.OperatorIndex != 0))
 2473       (Left.NextOperator || Left.OperatorIndex != 0))
 2475   if (Right.is(tok::plus) && Left.isLabelString() &&
 2478   if (Left.is(tok::comma))
 2480   if (Right.is(tok::lessless) && Left.isLabelString() &&
 2485     if (!Left.is(tok::r_paren) || Right.OperatorIndex > 0)
 2490   if (Left.ClosesTemplateDeclaration)
 2492   if (Left.is(TT_ConditionalExpr))
 2494   prec::Level Level = Left.getPrecedence();