Lines Matching refs:FormatToken
41 static bool shouldUnindentNextOperator(const FormatToken &Tok) { in shouldUnindentNextOperator()
42 const FormatToken *Previous = Tok.getPreviousNonComment(); in shouldUnindentNextOperator()
49 static unsigned getLengthToMatchingParen(const FormatToken &Tok, in getLengthToMatchingParen()
91 FormatToken *End = Tok.MatchingParen; in getLengthToMatchingParen()
98 auto FindParenState = [&](const FormatToken *LBrace) -> const ParenState * { in getLengthToMatchingParen()
119 static unsigned getLengthToNextOperator(const FormatToken &Tok) { in getLengthToNextOperator()
127 static bool startsSegmentOfBuilderTypeCall(const FormatToken &Tok) { in startsSegmentOfBuilderTypeCall()
132 static bool startsNextParameter(const FormatToken &Current, in startsNextParameter()
134 const FormatToken &Previous = *Current.Previous; in startsNextParameter()
149 static bool opensProtoMessageField(const FormatToken &LessTok, in opensProtoMessageField()
291 const FormatToken &Current = *State.NextToken; in canBreak()
292 const FormatToken &Previous = *Current.Previous; in canBreak()
372 const FormatToken &Current = *State.NextToken; in mustBreak()
373 const FormatToken &Previous = *Current.Previous; in mustBreak()
440 const FormatToken &BreakConstructorInitializersToken = in mustBreak()
636 const FormatToken &Current = *State.NextToken; in addTokenToState()
638 const FormatToken &Previous = *State.NextToken->Previous; in addTokenToState()
674 FormatToken &Current = *State.NextToken; in addTokenOnCurrentLine()
676 const FormatToken &Previous = *State.NextToken->Previous; in addTokenOnCurrentLine()
727 const FormatToken *Tok = &Previous; in addTokenOnCurrentLine()
790 auto IsOpeningBracket = [&](const FormatToken &Tok) { in addTokenOnCurrentLine()
863 const FormatToken *P = Current.getPreviousNonComment(); in addTokenOnCurrentLine()
931 const FormatToken *Next = Previous.MatchingParen->getNextNonComment(); in addTokenOnCurrentLine()
942 FormatToken &Current = *State.NextToken; in addTokenOnNewLine()
944 const FormatToken &Previous = *State.NextToken->Previous; in addTokenOnNewLine()
951 const FormatToken *PreviousNonComment = Current.getPreviousNonComment(); in addTokenOnNewLine()
952 const FormatToken *NextNonComment = Previous.getNextNonComment(); in addTokenOnNewLine()
1211 FormatToken &Current = *State.NextToken; in getNewLineColumn()
1219 const FormatToken &Previous = *Current.Previous; in getNewLineColumn()
1224 const FormatToken *PreviousNonComment = Current.getPreviousNonComment(); in getNewLineColumn()
1225 const FormatToken *NextNonComment = Previous.getNextNonComment(); in getNewLineColumn()
1427 FormatToken *PragmaType = State.Line->First->Next->Next; in getNewLineColumn()
1483 static bool hasNestedBlockInlined(const FormatToken *Previous, in hasNestedBlockInlined()
1484 const FormatToken &Current, in hasNestedBlockInlined()
1498 const FormatToken &Current = *State.NextToken; in moveStateToNextToken()
1524 auto IsWrappedConditional = [](const FormatToken &Tok) { in moveStateToNextToken()
1530 const FormatToken *Next = Tok.getNextNonComment(); in moveStateToNextToken()
1538 const FormatToken *Previous = Current.Previous; in moveStateToNextToken()
1599 const FormatToken *Previous = Current.getPreviousNonComment(); in moveStateToNextToken()
1677 const FormatToken &Current = *State.NextToken; in moveStatePastFakeLParens()
1681 const FormatToken *Previous = Current.getPreviousNonComment(); in moveStatePastFakeLParens()
1806 const FormatToken &Current = *State.NextToken; in moveStatePastScopeOpener()
1841 const FormatToken *NextNonComment = Current.getNextNonComment(); in moveStatePastScopeOpener()
1864 const FormatToken *Next = Current.Next; in moveStatePastScopeOpener()
1919 for (const FormatToken *Tok = &Current; in moveStatePastScopeOpener()
1952 FormatToken const *next = Current.Next; in moveStatePastScopeOpener()
1968 const FormatToken &Current = *State.NextToken; in moveStatePastScopeCloser()
1997 const FormatToken &CurrentScopeOpener = *Current.MatchingParen->Previous; in moveStatePastScopeCloser()
2012 const FormatToken *NextNonComment = Current.getNextNonComment(); in moveStatePastScopeCloser()
2060 const FormatToken &Current, LineState &State, in reformatRawStringLiteral()
2207 unsigned ContinuationIndenter::addMultilineToken(const FormatToken &Current, in addMultilineToken()
2223 unsigned ContinuationIndenter::handleEndOfLine(const FormatToken &Current, in handleEndOfLine()
2279 static StringRef getEnclosingFunctionName(const FormatToken &Current) { in getEnclosingFunctionName()
2298 ContinuationIndenter::getRawStringStyle(const FormatToken &Current, in getRawStringStyle()
2317 ContinuationIndenter::createBreakableToken(const FormatToken &Current, in createBreakableToken()
2415 for (const FormatToken *T = &Current; T && T->is(TT_LineComment); in createBreakableToken()
2434 ContinuationIndenter::breakProtrudingToken(const FormatToken &Current, in breakProtrudingToken()
2823 const FormatToken &Current = *State.NextToken; in nextIsMultilineString()