Home | History | Annotate | Download | only in Format

Lines Matching refs:Tok

42       : First(Line.Tokens.front().Tok), Level(Line.Level),
58 Current->Next = I->Tok;
59 I->Tok->Previous = Current;
93 // FIXME: Line.Last points to other characters than tok::semi
94 // and tok::lbrace.
95 return !Last->isOneOf(tok::semi, tok::comment);
127 bool startsWith(FormatToken *Tok, A K1) const {
128 while (Tok && Tok->is(tok::comment))
129 Tok = Tok->Next;
130 return Tok && Tok->is(K1);
134 bool startsWith(FormatToken *Tok, A K1, Ts... Tokens) const {
135 return startsWith(Tok, K1) && startsWith(Tok->Next, Tokens...);
155 /// \brief Calculate the penalty for splitting before \c Tok.
156 unsigned splitPenalty(const AnnotatedLine &Line, const FormatToken &Tok,
162 bool spaceRequiredBefore(const AnnotatedLine &Line, const FormatToken &Tok);