Lines Matching refs:Contexts
38 Contexts.push_back(Context(tok::unknown, 1, /*IsExpression=*/false)); in AnnotatingParser()
48 Contexts.back().IsExpression = false; in parseAngle()
51 Contexts.back().InTemplateArgument = in parseAngle()
82 Contexts[Contexts.size() - 2].IsExpression && in parseAngle()
98 Contexts.back().ColonIsForRangeExpr = in parseParens()
99 Contexts.size() == 2 && Contexts[0].ColonIsForRangeExpr; in parseParens()
119 Contexts.back().IsExpression = true; in parseParens()
124 Contexts.back().IsExpression = true; in parseParens()
129 Contexts.back().IsExpression = false; in parseParens()
130 } else if (Contexts[Contexts.size() - 2].CaretFound) { in parseParens()
132 Contexts.back().IsExpression = false; in parseParens()
137 Contexts.back().IsForEachMacro = true; in parseParens()
138 Contexts.back().IsExpression = false; in parseParens()
141 Contexts.back().IsExpression = false; in parseParens()
145 Contexts.back().ColonIsObjCMethodExpr = true; in parseParens()
178 Contexts.back().IsExpression = true; in parseParens()
183 !Contexts.back().IsExpression))) in parseParens()
190 if (Contexts.back().FirstObjCSelectorName) { in parseParens()
191 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = in parseParens()
192 Contexts.back().LongestObjCSelectorName; in parseParens()
224 Contexts.back().IsExpression = false; in parseParens()
250 Contexts.back().CanBeExpression && Left->isNot(TT_LambdaLSquare) && in parseSquare()
259 Contexts.back().IsExpression = true; in parseSquare()
263 Contexts.back().ColonIsObjCMethodExpr = true; in parseSquare()
290 if (Contexts.back().FirstObjCSelectorName) { in parseSquare()
291 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = in parseSquare()
292 Contexts.back().LongestObjCSelectorName; in parseSquare()
294 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = 0; in parseSquare()
305 Contexts.back().ColonIsObjCMethodExpr = true; in parseSquare()
328 if (Contexts.back().CaretFound) in parseBrace()
330 Contexts.back().CaretFound = false; in parseBrace()
333 Contexts.back().ColonIsDictLiteral = true; in parseBrace()
335 Contexts.back().IsExpression = true; in parseBrace()
421 if (Contexts.back().ColonIsForRangeExpr || in consumeToken()
422 (Contexts.size() == 1 && in consumeToken()
424 Contexts.back().ContextKind == tok::l_paren || in consumeToken()
425 Contexts.back().ContextKind == tok::l_square) { in consumeToken()
430 if (Contexts.back().ColonIsDictLiteral) { in consumeToken()
432 } else if (Contexts.back().ColonIsObjCMethodExpr || in consumeToken()
437 Contexts.back().LongestObjCSelectorName) { in consumeToken()
438 Contexts.back().LongestObjCSelectorName = Tok->Previous->ColumnWidth; in consumeToken()
440 if (!Contexts.back().FirstObjCSelectorName) in consumeToken()
441 Contexts.back().FirstObjCSelectorName = Tok->Previous; in consumeToken()
442 } else if (Contexts.back().ColonIsForRangeExpr) { in consumeToken()
446 } else if (Contexts.size() == 1 && in consumeToken()
457 } else if (Contexts.back().ContextKind == tok::l_paren) { in consumeToken()
470 Contexts.back().ColonIsForRangeExpr = true; in consumeToken()
478 if (Line.MustBeDeclaration && Contexts.size() == 1 && in consumeToken()
479 !Contexts.back().IsExpression && Line.First->isNot(TT_ObjCProperty) && in consumeToken()
495 !(Tok->Previous->is(tok::r_paren) && Contexts.size() > 1))) && in consumeToken()
546 if (Contexts.back().FirstStartOfName && Contexts.size() == 1) { in consumeToken()
547 Contexts.back().FirstStartOfName->PartOfMultiVariableDeclStmt = true; in consumeToken()
550 if (Contexts.back().InCtorInitializer) in consumeToken()
552 if (Contexts.back().IsForEachMacro) in consumeToken()
553 Contexts.back().IsExpression = true; in consumeToken()
624 Contexts.back().IsExpression = true; in parsePreprocessorDirective()
679 if (Contexts.back().FirstObjCSelectorName) in parseLine()
680 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = in parseLine()
681 Contexts.back().LongestObjCSelectorName; in parseLine()
718 CurrentToken->NestingLevel = Contexts.size() - 1; in next()
719 CurrentToken->BindingStrength = Contexts.back().BindingStrength; in next()
760 P.Contexts.push_back(Context(ContextKind, in ScopedContextCreator()
761 P.Contexts.back().BindingStrength + Increase, in ScopedContextCreator()
762 P.Contexts.back().IsExpression)); in ScopedContextCreator()
765 ~ScopedContextCreator() { P.Contexts.pop_back(); } in ~ScopedContextCreator()
772 Contexts.back().IsExpression = true; in modifyContext()
791 Contexts.back().IsExpression = true; in modifyContext()
793 Contexts.back().IsExpression = false; in modifyContext()
804 Contexts.back().IsExpression = !ParametersOfFunctionType && !IsForOrCatch; in modifyContext()
811 Contexts.back().IsExpression = Contexts.front().InCtorInitializer; in modifyContext()
814 Contexts.back().IsExpression = true; in modifyContext()
815 Contexts.back().InCtorInitializer = true; in modifyContext()
817 Contexts.back().CanBeExpression = false; in modifyContext()
820 Contexts.back().IsExpression = true; in modifyContext()
836 Contexts.back().FirstStartOfName = &Current; in determineTokenType()
848 determineStarAmpUsage(Current, Contexts.back().CanBeExpression && in determineTokenType()
849 Contexts.back().IsExpression, in determineTokenType()
850 Contexts.back().InTemplateArgument); in determineTokenType()
854 Contexts.back().CaretFound = true; in determineTokenType()
896 Line.MightBeFunctionDecl && Contexts.size() == 1) { in determineTokenType()
991 (Contexts.size() > 1 && Contexts[Contexts.size() - 2].IsExpression)) in rParenEndsCast()
1091 if (IsExpression && !Contexts.back().CaretFound) in determineStarAmpUsage()
1127 SmallVector<Context, 8> Contexts; member in clang::format::__anon7c513deb0111::AnnotatingParser