Searched refs:FormatTok (Results 1 – 5 of 5) sorted by relevance
60 static bool isLineComment(const FormatToken &FormatTok) { in isLineComment() argument61 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*"); in isLineComment()67 static bool continuesLineComment(const FormatToken &FormatTok, in continuesLineComment() argument74 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()76 FormatTok.OriginalColumn >= MinContinueColumn; in continuesLineComment()247 FormatTok = nullptr; in reset()276 pushToken(FormatTok); in parse()329 switch (FormatTok->Tok.getKind()) { in parseCSharpGenericTypeConstraint()333 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()348 switch (FormatTok->Tok.getKind()) { in parseCSharpAttribute()[all …]
30 : FormatTok(nullptr), IsFirstToken(true), StateStack({LexerState::NORMAL}), in FormatTokenLexer()807 Token Tok = FormatTok->Tok; in getStashedToken()808 StringRef TokenText = FormatTok->TokenText; in getStashedToken()810 unsigned OriginalColumn = FormatTok->OriginalColumn; in getStashedToken()811 FormatTok = new (Allocator.Allocate()) FormatToken; in getStashedToken()812 FormatTok->Tok = Tok; in getStashedToken()814 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1); in getStashedToken()815 FormatTok->Tok.setLocation(TokLocation); in getStashedToken()816 FormatTok->WhitespaceRange = SourceRange(TokLocation, TokLocation); in getStashedToken()817 FormatTok->TokenText = TokenText; in getStashedToken()[all …]
1558 for (FormatToken *FormatTok = Line->First; FormatTok; in requoteJSStringLiteral() local1559 FormatTok = FormatTok->Next) { in requoteJSStringLiteral()1560 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral()1561 if (FormatTok->Finalized || !FormatTok->isStringLiteral() || in requoteJSStringLiteral()1572 SourceLocation Start = FormatTok->Tok.getLocation(); in requoteJSStringLiteral()1585 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1, in requoteJSStringLiteral()1778 for (FormatToken *FormatTok = Line->First; FormatTok; in insertTrailingCommas() local1779 FormatTok = FormatTok->Next) { in insertTrailingCommas()1780 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()1782 FormatToken *Matching = FormatTok->MatchingParen; in insertTrailingCommas()[all …]
186 bool isOnNewLine(const FormatToken &FormatTok);203 FormatToken *FormatTok; variable
98 FormatToken *FormatTok; variable