Lines Matching refs:Tokens

126     else if (!Parser.Line->Tokens.empty())  in ScopedLineState()
127 Parser.CurrentLines = &Parser.Line->Tokens.back().Children; in ScopedLineState()
135 if (!Parser.Line->Tokens.empty()) { in ~ScopedLineState()
138 assert(Parser.Line->Tokens.empty()); in ~ScopedLineState()
175 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource() argument
176 : Tokens(Tokens), Position(-1) {} in IndexedTokenSource()
180 return Tokens[Position]; in getNextToken()
190 return Tokens[Position]; in setPosition()
196 ArrayRef<FormatToken *> Tokens; member in clang::format::__anon5fd511b60211::IndexedTokenSource
204 ArrayRef<FormatToken *> Tokens, in UnwrappedLineParser() argument
207 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr), in UnwrappedLineParser()
208 Callback(Callback), AllTokens(Tokens), PPBranchLevel(-1) {} in UnwrappedLineParser()
227 Tokens = &TokenSource; in parse()
316 unsigned StoredPosition = Tokens->getPosition(); in calculateBraceTypes()
328 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
398 FormatTok = Tokens->setPosition(StoredPosition); in calculateBraceTypes()
440 if (Line.Tokens.size() < 4) in isGoogScope()
442 auto I = Line.Tokens.begin(); in isGoogScope()
489 ScopedMacroState MacroState(*Line, Tokens, FormatTok); in parsePPDirective()
896 FormatTok->is(Keywords.kw_function) && Line->Tokens.size() > 0) { in parseStructuralElement()
910 if (Line->Tokens.size() == 1 && in parseStructuralElement()
973 if (!Line->Tokens.empty() && in tryToParseLambda()
974 (Line->Tokens.back().Tok->isOneOf(tok::identifier, tok::kw_operator, in tryToParseLambda()
976 Line->Tokens.back().Tok->closesScope() || in tryToParseLambda()
977 Line->Tokens.back().Tok->isSimpleTypeSpecifier())) { in tryToParseLambda()
1576 unsigned StoredPosition = Tokens->getPosition(); in parseJavaEnumBody()
1578 FormatToken *Tok = Tokens->getNextToken(); in parseJavaEnumBody()
1588 Tok = Tokens->getNextToken(); in parseJavaEnumBody()
1590 FormatTok = Tokens->setPosition(StoredPosition); in parseJavaEnumBody()
1798 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printDebugInfo()
1799 E = Line.Tokens.end(); in printDebugInfo()
1803 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printDebugInfo()
1804 E = Line.Tokens.end(); in printDebugInfo()
1818 if (Line->Tokens.empty()) in addUnwrappedLine()
1825 Line->Tokens.clear(); in addUnwrappedLine()
1842 bool JustComments = Line->Tokens.empty(); in flushComments()
1867 FormatTok = Tokens->getNextToken(); in readToken()
1873 bool SwitchToPreprocessorLines = !Line->Tokens.empty(); in readToken()
1891 FormatTok = Tokens->getNextToken(); in readToken()
1914 Line->Tokens.push_back(UnwrappedLineNode(Tok)); in pushToken()
1916 Line->Tokens.back().Tok->MustBreakBefore = true; in pushToken()