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

/freebsd-13-stable/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineParser.cpp60 static bool isLineComment(const FormatToken &FormatTok) { argument
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, argument
74 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 &&
76 FormatTok.OriginalColumn >= MinContinueColumn;
247 FormatTok
932 mustBeJSIdent(const AdditionalKeywords &Keywords, const FormatToken *FormatTok) argument
947 mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, const FormatToken *FormatTok) argument
956 isJSDeclOrStmt(const AdditionalKeywords &Keywords, const FormatToken *FormatTok) argument
2796 isOnNewLine(const FormatToken &FormatTok) argument
2804 continuesLineCommentSection(const FormatToken &FormatTok, const UnwrappedLine &Line, const llvm::Regex &CommentPragmasRegex) argument
2983 FormatToken *FormatTok = Comments[i]; local
[all...]
H A DFormatTokenLexer.cpp30 : FormatTok(nullptr), IsFirstToken(true), StateStack({LexerState::NORMAL}),
810 Token Tok = FormatTok->Tok;
811 StringRef TokenText = FormatTok->TokenText;
813 unsigned OriginalColumn = FormatTok->OriginalColumn;
814 FormatTok = new (Allocator.Allocate()) FormatToken;
815 FormatTok->Tok = Tok;
817 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1);
818 FormatTok->Tok.setLocation(TokLocation);
819 FormatTok->WhitespaceRange = SourceRange(TokLocation, TokLocation);
820 FormatTok
[all...]
H A DFormatTokenLexer.h99 FormatToken *FormatTok; member in class:clang::format::FormatTokenLexer
H A DUnwrappedLineParser.h174 bool isOnNewLine(const FormatToken &FormatTok);
191 FormatToken *FormatTok; member in class:clang::format::UnwrappedLineParser
H A DFormat.cpp1404 for (FormatToken *FormatTok = Line->First; FormatTok;
1405 FormatTok = FormatTok->Next) {
1406 StringRef Input = FormatTok->TokenText;
1407 if (FormatTok->Finalized || !FormatTok->isStringLiteral() ||
1418 SourceLocation Start = FormatTok->Tok.getLocation();
1431 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
1624 for (FormatToken *FormatTok
[all...]

Completed in 118 milliseconds