Home
last modified time | relevance | path

Searched refs:FormatTok (Results 1 – 5 of 5) sorted by relevance

/netbsd/external/apache2/llvm/dist/clang/lib/Format/
H A DUnwrappedLineParser.cpp61 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()
1058 while (FormatTok && FormatTok->isNot(tok::eof)) { in parseStructuralElement()
2441 if (FormatTok->Previous && FormatTok->Previous->is(tok::greater)) { in parseRequires()
2621 while (FormatTok) { in parseJavaEnumBody()
2676 FormatTok->TokenText != FormatTok->TokenText.upper(); in parseRecord()
2685 if (FormatTok->Next && FormatTok->is(TT_AttributeSquare)) in parseRecord()
3197 (isOnNewLine(*FormatTok) || FormatTok->IsFirst)) { in distributeComments()
[all …]
H A DFormatTokenLexer.cpp812 FormatTok->Tok = Tok; in getStashedToken()
821 return FormatTok; in getStashedToken()
908 FormatTok->is(tok::comment) && FormatTok->TokenText.startswith("//")) { in getNextToken()
919 FormatTok->TokenText, FormatTok->OriginalColumn, Style.TabWidth, in getNextToken()
931 while (FormatTok->TokenText.size() > 1 && FormatTok->TokenText[0] == '\\') { in getNextToken()
934 (FormatTok->TokenText[1] == '\r' && FormatTok->TokenText[2] == '\n')) in getNextToken()
945 FormatTok->TokenText = FormatTok->TokenText.substr(SkippedWhitespace); in getNextToken()
957 FormatTok->TokenText = FormatTok->TokenText.rtrim(" \t\v\f"); in getNextToken()
976 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()
981 FormatTok->TokenText = FormatTok->TokenText.substr(0, 1); in getNextToken()
[all …]
H A DFormat.cpp1558 for (FormatToken *FormatTok = Line->First; FormatTok; in requoteJSStringLiteral() local
1559 FormatTok = FormatTok->Next) { in requoteJSStringLiteral()
1560 StringRef Input = FormatTok->TokenText; in requoteJSStringLiteral()
1561 if (FormatTok->Finalized || !FormatTok->isStringLiteral() || in requoteJSStringLiteral()
1778 for (FormatToken *FormatTok = Line->First; FormatTok; in insertTrailingCommas() local
1779 FormatTok = FormatTok->Next) { in insertTrailingCommas()
1780 if (FormatTok->NewlinesBefore == 0) in insertTrailingCommas()
1785 if (!(FormatTok->is(tok::r_square) && in insertTrailingCommas()
2141 for (const FormatToken *FormatTok = Line->First; FormatTok; in guessIsObjC() local
2142 FormatTok = FormatTok->Next) { in guessIsObjC()
[all …]
H A DUnwrappedLineParser.h186 bool isOnNewLine(const FormatToken &FormatTok);
203 FormatToken *FormatTok; variable
H A DFormatTokenLexer.h98 FormatToken *FormatTok; variable