Lines Matching defs:Contexts
38 Contexts.push_back(Context(tok::unknown, 1, /*IsExpression=*/false));
48 Contexts.back().IsExpression = false;
51 Contexts.back().InTemplateArgument =
76 Contexts.size() > 2) ||
77 Contexts[Contexts.size() - 2].IsExpression) &&
93 Contexts.back().ColonIsForRangeExpr =
94 Contexts.size() == 2 && Contexts[0].ColonIsForRangeExpr;
114 Contexts.back().IsExpression = true;
119 Contexts.back().IsExpression = true;
124 Contexts.back().IsExpression = false;
125 } else if (Contexts[Contexts.size() - 2].CaretFound) {
127 Contexts.back().IsExpression = false;
132 Contexts.back().IsForEachMacro = true;
133 Contexts.back().IsExpression = false;
137 Contexts.back().ColonIsObjCMethodExpr = true;
168 Contexts.back().IsExpression = true;
173 !Contexts.back().IsExpression)))
180 if (Contexts.back().FirstObjCSelectorName) {
181 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName =
182 Contexts.back().LongestObjCSelectorName;
209 Contexts.back().IsExpression = false;
230 Contexts.back().CanBeExpression && Left->Type != TT_LambdaLSquare &&
238 Contexts.back().IsExpression = true;
242 Contexts.back().ColonIsObjCMethodExpr = true;
269 if (Contexts.back().FirstObjCSelectorName) {
270 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName =
271 Contexts.back().LongestObjCSelectorName;
273 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName = 0;
299 if (Contexts.back().CaretFound)
301 Contexts.back().CaretFound = false;
304 Contexts.back().ColonIsDictLiteral = true;
306 Contexts.back().IsExpression = true;
387 if (Tok->Previous->is(tok::r_paren) && Contexts.size() == 1 &&
390 } else if (Contexts.back().ColonIsDictLiteral) {
392 } else if (Contexts.back().ColonIsObjCMethodExpr ||
397 Contexts.back().LongestObjCSelectorName) {
398 Contexts.back().LongestObjCSelectorName = Tok->Previous->ColumnWidth;
400 if (!Contexts.back().FirstObjCSelectorName)
401 Contexts.back().FirstObjCSelectorName = Tok->Previous;
402 } else if (Contexts.back().ColonIsForRangeExpr) {
406 } else if (Contexts.size() == 1 &&
409 } else if (Contexts.back().ContextKind == tok::l_paren) {
422 Contexts.back().ColonIsForRangeExpr = true;
430 if (Line.MustBeDeclaration && Contexts.size() == 1 &&
431 !Contexts.back().IsExpression &&
491 if (Contexts.back().FirstStartOfName)
492 Contexts.back().FirstStartOfName->PartOfMultiVariableDeclStmt = true;
493 if (Contexts.back().InCtorInitializer)
495 if (Contexts.back().IsForEachMacro)
496 Contexts.back().IsExpression = true;
573 Contexts.back().IsExpression = true;
608 if (Contexts.back().FirstObjCSelectorName)
609 Contexts.back().FirstObjCSelectorName->LongestObjCSelectorName =
610 Contexts.back().LongestObjCSelectorName;
639 CurrentToken->BindingStrength = Contexts.back().BindingStrength;
640 CurrentToken->NestingLevel = Contexts.size() - 1;
676 /// \brief Puts a new \c Context onto the stack \c Contexts for the lifetime
684 P.Contexts.push_back(Context(ContextKind,
685 P.Contexts.back().BindingStrength + Increase,
686 P.Contexts.back().IsExpression));
689 ~ScopedContextCreator() { P.Contexts.pop_back(); }
696 Contexts.back().IsExpression = true;
708 Contexts.back().IsExpression = true;
719 Contexts.back().IsExpression = !ParametersOfFunctionType && !IsForOrCatch;
727 Contexts.back().IsExpression = true;
728 Contexts.back().InCtorInitializer = true;
730 Contexts.back().CanBeExpression = false;
733 Contexts.back().IsExpression = true;
741 Contexts.back().FirstStartOfName = &Current;
750 determineStarAmpUsage(Current, Contexts.back().CanBeExpression &&
751 Contexts.back().IsExpression,
752 Contexts.back().InTemplateArgument);
756 Contexts.back().CaretFound = true;
795 Line.MightBeFunctionDecl && Contexts.size() == 1) {
855 ((Contexts.size() > 1 && Contexts[Contexts.size() - 2].IsExpression) ||
986 SmallVector<Context, 8> Contexts;