Home | History | Annotate | Download | only in Format

Lines Matching defs:Tokens

12 /// which turns a stream of tokens into UnwrappedLines.
135 if (!Parser.Line->Tokens.empty()) {
138 assert(Parser.Line->Tokens.empty());
156 IndexedTokenSource(ArrayRef<FormatToken *> Tokens)
157 : Tokens(Tokens), Position(-1) {}
161 return Tokens[Position];
171 return Tokens[Position];
175 ArrayRef<FormatToken *> Tokens;
182 ArrayRef<FormatToken *> Tokens,
185 CurrentLines(&Lines), StructuralError(false), Style(Style), Tokens(NULL),
186 Callback(Callback), AllTokens(Tokens) {}
191 Tokens = &TokenSource;
210 // Make sure to format the remaining tokens.
251 // We'll parse forward through the tokens until we hit
255 unsigned StoredPosition = Tokens->getPosition();
258 // Keep a stack of positions of lbrace tokens. We will
268 NextTok = Tokens->getNextToken();
319 FormatTok = Tokens->setPosition(StoredPosition);
347 ScopedMacroState MacroState(*Line, Tokens, FormatTok, StructuralError);
452 // Here we blacklist certain tokens that are not usually the first token in an
460 // Tokens that can only be used as binary operators and a part of
610 if (Line->Tokens.size() == 1) {
1073 if (Line->Tokens.empty())
1078 for (std::list<FormatToken *>::iterator I = Line->Tokens.begin(),
1079 E = Line->Tokens.end();
1086 Line->Tokens.clear();
1101 bool JustComments = Line->Tokens.empty();
1128 FormatTok = Tokens->getNextToken();
1134 !Line->Tokens.empty() && CurrentLines == &Lines;
1162 Line->Tokens.push_back(Tok);
1164 Line->Tokens.back()->MustBreakBefore = true;