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

/freebsd-current/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineParser.cpp173 FormatTok = nullptr;
216 pushToken(FormatTok);
290 switch (FormatTok->Tok.getKind()) {
294 if (FormatTok->is(Keywords.kw_where)) {
309 switch (FormatTok->Tok.getKind()) {
358 if (FormatTok->isAttribute()) {
362 tok::TokenKind kind = FormatTok->Tok.getKind();
363 if (FormatTok->getType() == TT_MacroBlockBegin)
365 else if (FormatTok->getType() == TT_MacroBlockEnd)
384 FormatTok
1241 mustBeJSIdent(const AdditionalKeywords &Keywords, const FormatToken *FormatTok) argument
1256 mustBeJSIdentOrValue(const AdditionalKeywords &Keywords, const FormatToken *FormatTok) argument
1265 isJSDeclOrStmt(const AdditionalKeywords &Keywords, const FormatToken *FormatTok) argument
4496 isOnNewLine(const FormatToken &FormatTok) argument
4504 continuesLineCommentSection(const FormatToken &FormatTok, const UnwrappedLine &Line, const llvm::Regex &CommentPragmasRegex) argument
4689 FormatToken *FormatTok = Comments[i]; local
[all...]
H A DFormatTokenLexer.cpp30 : FormatTok(nullptr), IsFirstToken(true), StateStack({LexerState::NORMAL}),
1035 Token Tok = FormatTok->Tok;
1036 StringRef TokenText = FormatTok->TokenText;
1038 unsigned OriginalColumn = FormatTok->OriginalColumn;
1039 FormatTok = new (Allocator.Allocate()) FormatToken;
1040 FormatTok->Tok = Tok;
1042 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1);
1043 FormatTok->Tok.setLocation(TokLocation);
1044 FormatTok->WhitespaceRange = SourceRange(TokLocation, TokLocation);
1045 FormatTok
[all...]
H A DFormatTokenLexer.h117 FormatToken *FormatTok; member in class:clang::format::FormatTokenLexer
H A DUnwrappedLineParser.h255 bool isOnNewLine(const FormatToken &FormatTok);
305 FormatToken *FormatTok = nullptr; member in class:clang::format::UnwrappedLineParser
H A DFormatToken.h1910 inline bool isLineComment(const FormatToken &FormatTok) { argument
1911 return FormatTok.is(tok::comment) && !FormatTok.TokenText.starts_with("/*");
1914 // Checks if \p FormatTok is a line comment that continues the line comment
1916 // whether \p FormatTok is indented enough to the right to continue \p Previous.
1917 inline bool continuesLineComment(const FormatToken &FormatTok, argument
1924 return isLineComment(FormatTok) && FormatTok.NewlinesBefore == 1 &&
1926 FormatTok.OriginalColumn >= MinContinueColumn;
H A DFormat.cpp2322 for (FormatToken *FormatTok = Line->First; FormatTok;
2323 FormatTok = FormatTok->Next) {
2324 StringRef Input = FormatTok->TokenText;
2325 if (FormatTok->Finalized || !FormatTok->isStringLiteral() ||
2337 SourceLocation Start = FormatTok->Tok.getLocation();
2350 Replace(FormatTok->Tok.getEndLoc().getLocWithOffset(-1), 1,
2552 for (FormatToken *FormatTok
[all...]

Completed in 222 milliseconds