• Home
  • Raw
  • Download

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()
173 IndexedTokenSource(ArrayRef<FormatToken *> Tokens) in IndexedTokenSource() argument
174 : Tokens(Tokens), Position(-1) {} in IndexedTokenSource()
178 return Tokens[Position]; in getNextToken()
188 return Tokens[Position]; in setPosition()
194 ArrayRef<FormatToken *> Tokens; member in clang::format::__anon630c81280211::IndexedTokenSource
202 ArrayRef<FormatToken *> Tokens, in UnwrappedLineParser() argument
205 CurrentLines(&Lines), Style(Style), Keywords(Keywords), Tokens(nullptr), in UnwrappedLineParser()
206 Callback(Callback), AllTokens(Tokens), PPBranchLevel(-1) {} in UnwrappedLineParser()
225 Tokens = &TokenSource; in parse()
316 unsigned StoredPosition = Tokens->getPosition(); in calculateBraceTypes()
329 NextTok = Tokens->getNextToken(); in calculateBraceTypes()
409 FormatTok = Tokens->setPosition(StoredPosition); in calculateBraceTypes()
456 if (Line.Tokens.size() < 4) in isGoogScope()
458 auto I = Line.Tokens.begin(); in isGoogScope()
503 ScopedMacroState MacroState(*Line, Tokens, FormatTok); in parsePPDirective()
727 if (PreviousMustBeValue && Line && Line->Tokens.size() > 1) { in readTokenWithJavaScriptASI()
730 const FormatToken *PrePrevious = std::prev(Line->Tokens.end(), 2)->Tok; in readTokenWithJavaScriptASI()
1032 Line->Tokens.size() > 0) { in parseStructuralElement()
1044 unsigned StoredPosition = Tokens->getPosition(); in parseStructuralElement()
1045 FormatToken *Next = Tokens->getNextToken(); in parseStructuralElement()
1046 FormatTok = Tokens->setPosition(StoredPosition); in parseStructuralElement()
1060 if (Line->Tokens.size() == 1 && in parseStructuralElement()
1065 Line->Tokens.begin()->Tok->MustBreakBefore = true; in parseStructuralElement()
1750 unsigned StoredPosition = Tokens->getPosition(); in parseJavaEnumBody()
1752 FormatToken *Tok = Tokens->getNextToken(); in parseJavaEnumBody()
1762 Tok = Tokens->getNextToken(); in parseJavaEnumBody()
1764 FormatTok = Tokens->setPosition(StoredPosition); in parseJavaEnumBody()
1978 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printDebugInfo()
1979 E = Line.Tokens.end(); in printDebugInfo()
1983 for (std::list<UnwrappedLineNode>::const_iterator I = Line.Tokens.begin(), in printDebugInfo()
1984 E = Line.Tokens.end(); in printDebugInfo()
1998 if (Line->Tokens.empty()) in addUnwrappedLine()
2005 Line->Tokens.clear(); in addUnwrappedLine()
2022 bool JustComments = Line->Tokens.empty(); in flushComments()
2050 if (!Line || Line->Tokens.empty()) in getPreviousToken()
2052 return Line->Tokens.back().Tok; in getPreviousToken()
2058 FormatTok = Tokens->getNextToken(); in readToken()
2064 bool SwitchToPreprocessorLines = !Line->Tokens.empty(); in readToken()
2082 FormatTok = Tokens->getNextToken(); in readToken()
2105 Line->Tokens.push_back(UnwrappedLineNode(Tok)); in pushToken()
2107 Line->Tokens.back().Tok->MustBreakBefore = true; in pushToken()