Searched refs:FormatTok (Results 1 – 5 of 5) sorted by relevance
115 static bool isLineComment(const FormatToken &FormatTok) { in isLineComment() argument116 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*"); in isLineComment()122 static bool continuesLineComment(const FormatToken &FormatTok, in continuesLineComment() argument129 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()131 FormatTok.OriginalColumn >= MinContinueColumn; in continuesLineComment()355 FormatTok = nullptr; in reset()386 pushToken(FormatTok); in parse()437 switch (FormatTok->Tok.getKind()) { in parseCSharpGenericTypeConstraint()441 if (FormatTok->is(Keywords.kw_where)) { in parseCSharpGenericTypeConstraint()456 switch (FormatTok->Tok.getKind()) { in parseCSharpAttribute()[all …]
30 : FormatTok(nullptr), IsFirstToken(true), StateStack({LexerState::NORMAL}), in FormatTokenLexer()924 Token Tok = FormatTok->Tok; in getStashedToken()925 StringRef TokenText = FormatTok->TokenText; in getStashedToken()927 unsigned OriginalColumn = FormatTok->OriginalColumn; in getStashedToken()928 FormatTok = new (Allocator.Allocate()) FormatToken; in getStashedToken()929 FormatTok->Tok = Tok; in getStashedToken()931 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1); in getStashedToken()932 FormatTok->Tok.setLocation(TokLocation); in getStashedToken()933 FormatTok->WhitespaceRange = SourceRange(TokLocation, TokLocation); in getStashedToken()934 FormatTok->TokenText = TokenText; in getStashedToken()[all …]
2150 for (FormatToken *FormatTok = Line->First; FormatTok; in requoteJSStringLiteral() local2151 FormatTok = FormatTok->Next) { in requoteJSStringLiteral()2152 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral()2153 if (FormatTok->Finalized || !FormatTok->isStringLiteral() || in requoteJSStringLiteral()2165 SourceLocation Start = FormatTok->Tok.getLocation(); in requoteJSStringLiteral()2178 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1, in requoteJSStringLiteral()2380 for (FormatToken *FormatTok = Line->First; FormatTok; in insertTrailingCommas() local2381 FormatTok = FormatTok->Next) { in insertTrailingCommas()2382 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()2384 FormatToken *Matching = FormatTok->MatchingParen; in insertTrailingCommas()[all …]
237 bool isOnNewLine(const FormatToken &FormatTok);254 FormatToken *FormatTok; variable
108 FormatToken *FormatTok; variable