Lines Matching refs:Contexts

39     Contexts.push_back(Context(tok::unknown, 1, /*IsExpression=*/false));  in AnnotatingParser()
48 Left->ParentBracket = Contexts.back().ContextKind; in parseAngle()
53 bool InExprContext = Contexts.back().IsExpression; in parseAngle()
55 Contexts.back().IsExpression = false; in parseAngle()
58 Contexts.back().InTemplateArgument = in parseAngle()
89 Contexts[Contexts.size() - 2].IsExpression && in parseAngle()
103 Left->ParentBracket = Contexts.back().ContextKind; in parseParens()
107 Contexts.back().ColonIsForRangeExpr = in parseParens()
108 Contexts.size() == 2 && Contexts[0].ColonIsForRangeExpr; in parseParens()
128 Contexts.back().IsExpression = true; in parseParens()
133 Contexts.back().IsExpression = false; in parseParens()
138 Contexts.back().IsExpression = true; in parseParens()
139 } else if (Contexts[Contexts.size() - 2].CaretFound) { in parseParens()
141 Contexts.back().IsExpression = false; in parseParens()
146 Contexts.back().IsForEachMacro = true; in parseParens()
147 Contexts.back().IsExpression = false; in parseParens()
150 Contexts.back().IsExpression = false; in parseParens()
154 Contexts.back().ColonIsObjCMethodExpr = true; in parseParens()
187 Contexts.back().IsExpression = true; in parseParens()
192 !Contexts.back().IsExpression))) in parseParens()
199 if (Contexts.back().FirstObjCSelectorName) { in parseParens()
200 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = in parseParens()
201 Contexts.back().LongestObjCSelectorName; in parseParens()
233 Contexts.back().IsExpression = false; in parseParens()
241 Contexts.back().CanBeExpression = true; in parseParens()
261 Left->ParentBracket = Contexts.back().ContextKind; in parseSquare()
265 Contexts.back().CanBeExpression && Left->isNot(TT_LambdaLSquare) && in parseSquare()
280 Contexts.back().ContextKind == tok::l_brace && in parseSquare()
295 Contexts.back().IsExpression = true; in parseSquare()
296 Contexts.back().ColonIsObjCMethodExpr = StartsObjCMethodExpr; in parseSquare()
317 if (Contexts.back().FirstObjCSelectorName) { in parseSquare()
318 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = in parseSquare()
319 Contexts.back().LongestObjCSelectorName; in parseSquare()
321 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = 0; in parseSquare()
332 Contexts.back().ColonIsObjCMethodExpr = true; in parseSquare()
352 Left->ParentBracket = Contexts.back().ContextKind; in parseBrace()
354 if (Contexts.back().CaretFound) in parseBrace()
356 Contexts.back().CaretFound = false; in parseBrace()
359 Contexts.back().ColonIsDictLiteral = true; in parseBrace()
361 Contexts.back().IsExpression = true; in parseBrace()
376 (!Contexts.back().ColonIsDictLiteral || in parseBrace()
445 if (Contexts.back().ColonIsForRangeExpr || // colon in for loop in consumeToken()
446 (Contexts.size() == 1 && // switch/case labels in consumeToken()
448 Contexts.back().ContextKind == tok::l_paren || // function params in consumeToken()
449 Contexts.back().ContextKind == tok::l_square || // array type in consumeToken()
450 (Contexts.size() == 1 && in consumeToken()
456 if (Contexts.back().ColonIsDictLiteral) { in consumeToken()
458 } else if (Contexts.back().ColonIsObjCMethodExpr || in consumeToken()
463 Contexts.back().LongestObjCSelectorName) { in consumeToken()
464 Contexts.back().LongestObjCSelectorName = Tok->Previous->ColumnWidth; in consumeToken()
466 if (!Contexts.back().FirstObjCSelectorName) in consumeToken()
467 Contexts.back().FirstObjCSelectorName = Tok->Previous; in consumeToken()
468 } else if (Contexts.back().ColonIsForRangeExpr) { in consumeToken()
472 } else if (Contexts.size() == 1 && in consumeToken()
483 } else if (Contexts.back().ContextKind == tok::l_paren) { in consumeToken()
496 Contexts.back().ColonIsForRangeExpr = true; in consumeToken()
517 if (Line.MustBeDeclaration && Contexts.size() == 1 && in consumeToken()
518 !Contexts.back().IsExpression && !Line.startsWith(TT_ObjCProperty) && in consumeToken()
536 !(Tok->Previous->is(tok::r_paren) && Contexts.size() > 1))) && in consumeToken()
594 if (Contexts.back().InCtorInitializer) in consumeToken()
596 else if (Contexts.back().FirstStartOfName && in consumeToken()
597 (Contexts.size() == 1 || Line.startsWith(tok::kw_for))) { in consumeToken()
598 Contexts.back().FirstStartOfName->PartOfMultiVariableDeclStmt = true; in consumeToken()
601 if (Contexts.back().IsForEachMacro) in consumeToken()
602 Contexts.back().IsExpression = true; in consumeToken()
677 Contexts.back().IsExpression = true; in parsePreprocessorDirective()
741 if (Contexts.back().FirstObjCSelectorName) in parseLine()
742 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = in parseLine()
743 Contexts.back().LongestObjCSelectorName; in parseLine()
782 CurrentToken->NestingLevel = Contexts.size() - 1; in next()
783 CurrentToken->BindingStrength = Contexts.back().BindingStrength; in next()
824 P.Contexts.push_back(Context(ContextKind, in ScopedContextCreator()
825 P.Contexts.back().BindingStrength + Increase, in ScopedContextCreator()
826 P.Contexts.back().IsExpression)); in ScopedContextCreator()
829 ~ScopedContextCreator() { P.Contexts.pop_back(); } in ~ScopedContextCreator()
836 Contexts.back().IsExpression = true; in modifyContext()
857 Contexts.back().IsExpression = true; in modifyContext()
859 Contexts.back().IsExpression = true; in modifyContext()
861 Contexts.back().IsExpression = false; in modifyContext()
863 Contexts.back().IsExpression = Style.Language == FormatStyle::LK_Java; in modifyContext()
874 Contexts.back().IsExpression = !ParametersOfFunctionType && !IsForOrCatch; in modifyContext()
881 Contexts.back().IsExpression = Contexts.front().InCtorInitializer; in modifyContext()
884 Contexts.back().IsExpression = true; in modifyContext()
885 Contexts.back().InCtorInitializer = true; in modifyContext()
887 Contexts.back().CanBeExpression = false; in modifyContext()
890 Contexts.back().IsExpression = true; in modifyContext()
906 Contexts.back().FirstStartOfName = &Current; in determineTokenType()
918 determineStarAmpUsage(Current, Contexts.back().CanBeExpression && in determineTokenType()
919 Contexts.back().IsExpression, in determineTokenType()
920 Contexts.back().InTemplateArgument); in determineTokenType()
924 Contexts.back().CaretFound = true; in determineTokenType()
994 Line.MightBeFunctionDecl && Contexts.size() == 1) { in determineTokenType()
1116 (Contexts.size() > 1 && Contexts[Contexts.size() - 2].IsExpression)) in rParenEndsCast()
1214 if (IsExpression && !Contexts.back().CaretFound) in determineStarAmpUsage()
1250 SmallVector<Context, 8> Contexts; member in clang::format::__anon7c513deb0111::AnnotatingParser