Lines Matching refs:Tokens

130     else if (!Parser.Line->Tokens.empty())  in ScopedLineState()
131 Parser.CurrentLines = &Parser.Line->Tokens.back().Children; in ScopedLineState()
139 if (!Parser.Line->Tokens.empty()) { in ~ScopedLineState()
142 assert(Parser.Line->Tokens.empty()); in ~ScopedLineState()
179 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource() argument
180 : Tokens(Tokens), Position(-1) {} in IndexedTokenSource()
184 return Tokens[Position]; in getNextToken()
194 return Tokens[Position]; in setPosition()
200 ArrayRef<FormatToken *> Tokens; member in clang::format::__anon6af56abf0211::IndexedTokenSource
208 ArrayRef<FormatToken *> Tokens, in UnwrappedLineParser() argument
212 Keywords(Keywords), Tokens(nullptr), Callback(Callback), in UnwrappedLineParser()
213 AllTokens(Tokens), PPBranchLevel(-1) {} in UnwrappedLineParser()
233 Tokens = &TokenSource; in parse()
315 unsigned StoredPosition = Tokens->getPosition(); in calculateBraceTypes()
327 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
394 FormatTok = Tokens->setPosition(StoredPosition); in calculateBraceTypes()
426 if (Line.Tokens.size() < 4) in isGoogScope()
428 auto I = Line.Tokens.begin(); in isGoogScope()
473 ScopedMacroState MacroState(*Line, Tokens, FormatTok, StructuralError); in parsePPDirective()
840 Line->Tokens.size() > 0) { in parseStructuralElement()
845 if (Line->Tokens.size() == 1 && in parseStructuralElement()
889 if (!Line->Tokens.empty() && in tryToParseLambda()
890 (Line->Tokens.back().Tok->isOneOf(tok::identifier, tok::kw_operator, in tryToParseLambda()
892 Line->Tokens.back().Tok->closesScope() || in tryToParseLambda()
893 Line->Tokens.back().Tok->isSimpleTypeSpecifier())) { in tryToParseLambda()
1472 unsigned StoredPosition = Tokens->getPosition(); in parseJavaEnumBody()
1474 FormatToken *Tok = Tokens->getNextToken(); in parseJavaEnumBody()
1484 Tok = Tokens->getNextToken(); in parseJavaEnumBody()
1486 FormatTok = Tokens->setPosition(StoredPosition); in parseJavaEnumBody()
1686 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printDebugInfo()
1687 E = Line.Tokens.end(); in printDebugInfo()
1691 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printDebugInfo()
1692 E = Line.Tokens.end(); in printDebugInfo()
1706 if (Line->Tokens.empty()) in addUnwrappedLine()
1713 Line->Tokens.clear(); in addUnwrappedLine()
1733 bool JustComments = Line->Tokens.empty(); in flushComments()
1760 FormatTok = Tokens->getNextToken(); in readToken()
1766 bool SwitchToPreprocessorLines = !Line->Tokens.empty(); in readToken()
1784 FormatTok = Tokens->getNextToken(); in readToken()
1807 Line->Tokens.push_back(UnwrappedLineNode(Tok)); in pushToken()
1809 Line->Tokens.back().Tok->MustBreakBefore = true; in pushToken()