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()242 FormatTok = nullptr; in reset()271 pushToken(FormatTok); in parse()747 if (!IfDef && (FormatTok->is(tok::kw_false) || FormatTok->TokenText == "0")) in parsePPIf()984 while (FormatTok && FormatTok->isNot(tok::eof)) { in parseStructuralElement()2063 while (FormatTok) { in parseJavaEnumBody()2117 FormatTok->TokenText != FormatTok->TokenText.upper(); in parseRecord()2603 (isOnNewLine(*FormatTok) || FormatTok->IsFirst)) { in distributeComments()2618 assert(FormatTok); in readToken()[all …]
463 FormatTok->Tok = Tok; in getStashedToken()472 return FormatTok; in getStashedToken()558 FormatTok->is(tok::comment) && FormatTok->TokenText.startswith("//")) { in getNextToken()569 FormatTok->TokenText, FormatTok->OriginalColumn, Style.TabWidth, in getNextToken()581 while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\') { in getNextToken()584 (FormatTok->TokenText[1] == '\r' && FormatTok->TokenText[2] == '\n')) in getNextToken()595 FormatTok->TokenText = FormatTok->TokenText.substr(SkippedWhitespace); in getNextToken()607 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f"); in getNextToken()626 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()631 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()[all …]
1098 for (FormatToken *FormatTok = Line->First; FormatTok; in requoteJSStringLiteral() local1099 FormatTok = FormatTok->Next) { in requoteJSStringLiteral()1100 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral()1101 if (FormatTok->Finalized || !FormatTok->isStringLiteral() || in requoteJSStringLiteral()1112 SourceLocation Start = FormatTok->Tok.getLocation(); in requoteJSStringLiteral()1595 for (const FormatToken *FormatTok = Line->First; FormatTok; in guessIsObjC() local1596 FormatTok = FormatTok->Next) { in guessIsObjC()1597 if ((FormatTok->Previous && FormatTok->Previous->is(tok::at) && in guessIsObjC()1601 (FormatTok->Tok.isAnyIdentifier() && in guessIsObjC()1604 FormatTok->TokenText)) || in guessIsObjC()[all …]
169 bool isOnNewLine(const FormatToken &FormatTok);186 FormatToken *FormatTok; variable
87 FormatToken *FormatTok; variable