HomeSort by: relevance | last modified time | path
    Searched refs:FormatTok (Results 1 - 5 of 5) sorted by relevancy

  /src/external/apache2/llvm/dist/clang/lib/Format/
UnwrappedLineParser.cpp 60 static bool isLineComment(const FormatToken &FormatTok) {
61 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*");
64 // Checks if \p FormatTok is a line comment that continues the line comment
66 // whether \p FormatTok is indented enough to the right to continue \p Previous.
67 static bool continuesLineComment(const FormatToken &FormatTok,
74 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 &&
76 FormatTok.OriginalColumn >= MinContinueColumn;
247 FormatTok = nullptr
    [all...]
FormatTokenLexer.cpp 30 : FormatTok(nullptr), IsFirstToken(true), StateStack({LexerState::NORMAL}),
807 Token Tok = FormatTok->Tok;
808 StringRef TokenText = FormatTok->TokenText;
810 unsigned OriginalColumn = FormatTok->OriginalColumn;
811 FormatTok = new (Allocator.Allocate()) FormatToken;
812 FormatTok->Tok = Tok;
814 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1);
815 FormatTok->Tok.setLocation(TokLocation);
816 FormatTok->WhitespaceRange = SourceRange(TokLocation, TokLocation);
817 FormatTok->TokenText = TokenText
    [all...]
FormatTokenLexer.h 98 FormatToken *FormatTok;
UnwrappedLineParser.h 186 bool isOnNewLine(const FormatToken &FormatTok);
203 FormatToken *FormatTok;
Format.cpp 1558 for (FormatToken *FormatTok = Line->First; FormatTok;
1559 FormatTok = FormatTok->Next) {
1560 StringRef Input = FormatTok->TokenText;
1561 if (FormatTok->Finalized || !FormatTok->isStringLiteral() ||
1572 SourceLocation Start = FormatTok->Tok.getLocation();
1585 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
1778 for (FormatToken *FormatTok = Line->First; FormatTok
    [all...]

Completed in 92 milliseconds