Searched refs:FormatTok (Results 1 – 5 of 5) sorted by relevance
61 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*"); in isLineComment()74 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 && in continuesLineComment()247 FormatTok = nullptr; in reset()276 pushToken(FormatTok); in parse()1105 while (FormatTok && FormatTok->isNot(tok::eof)) { in parseStructuralElement()2519 if (FormatTok->Previous && FormatTok->Previous->is(tok::greater)) { in parseRequires()2699 while (FormatTok) { in parseJavaEnumBody()2754 FormatTok->TokenText != FormatTok->TokenText.upper(); in parseRecord()2763 if (FormatTok->Next && FormatTok->is(TT_AttributeSquare)) in parseRecord()3275 (isOnNewLine(*FormatTok) || FormatTok->IsFirst)) { in distributeComments()[all …]
814 FormatTok->Tok = Tok; in getStashedToken()823 return FormatTok; in getStashedToken()910 FormatTok->is(tok::comment) && FormatTok->TokenText.startswith("//")) { in getNextToken()921 FormatTok->TokenText, FormatTok->OriginalColumn, Style.TabWidth, in getNextToken()933 while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\') { in getNextToken()936 (FormatTok->TokenText[1] == '\r' && FormatTok->TokenText[2] == '\n')) in getNextToken()947 FormatTok->TokenText = FormatTok->TokenText.substr(SkippedWhitespace); in getNextToken()959 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f"); in getNextToken()978 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()983 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()[all …]
1605 for (FormatToken *FormatTok = Line->First; FormatTok; in requoteJSStringLiteral() local1606 FormatTok = FormatTok->Next) { in requoteJSStringLiteral()1607 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral()1608 if (FormatTok->Finalized || !FormatTok->isStringLiteral() || in requoteJSStringLiteral()1827 for (FormatToken *FormatTok = Line->First; FormatTok; in insertTrailingCommas() local1828 FormatTok = FormatTok->Next) { in insertTrailingCommas()1829 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()1834 if (!(FormatTok->is(tok::r_square) && in insertTrailingCommas()2190 for (const FormatToken *FormatTok = Line->First; FormatTok; in guessIsObjC() local2191 FormatTok = FormatTok->Next) { in guessIsObjC()[all …]
186 bool isOnNewLine(const FormatToken &FormatTok);203 FormatToken *FormatTok; variable
98 FormatToken *FormatTok; variable