Home
last modified time | relevance | path

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

/external/clang/lib/Format/
DUnwrappedLineParser.cpp99 static FormatToken FormatTok; in getFakeEOF() local
101 FormatTok.Tok.startToken(); in getFakeEOF()
102 FormatTok.Tok.setKind(tok::eof); in getFakeEOF()
105 return &FormatTok; in getFakeEOF()
212 FormatTok = nullptr; in reset()
231 pushToken(FormatTok); in parse()
270 tok::TokenKind kind = FormatTok->Tok.getKind(); in parseLevel()
271 if (FormatTok->Type == TT_MacroBlockBegin) { in parseLevel()
273 } else if (FormatTok->Type == TT_MacroBlockEnd) { in parseLevel()
285 if (!FormatTok->is(TT_MacroBlockBegin) && tryToParseBracedList()) in parseLevel()
[all …]
DFormat.cpp763 : FormatTok(nullptr), IsFirstToken(true), GreaterStashed(false), in FormatTokenLexer()
1158 Token Tok = FormatTok->Tok; in getStashedToken()
1159 StringRef TokenText = FormatTok->TokenText; in getStashedToken()
1161 unsigned OriginalColumn = FormatTok->OriginalColumn; in getStashedToken()
1162 FormatTok = new (Allocator.Allocate()) FormatToken; in getStashedToken()
1163 FormatTok->Tok = Tok; in getStashedToken()
1165 FormatTok->Tok.getLocation().getLocWithOffset(Tok.getLength() - 1); in getStashedToken()
1166 FormatTok->Tok.setLocation(TokLocation); in getStashedToken()
1167 FormatTok->WhitespaceRange = SourceRange(TokLocation, TokLocation); in getStashedToken()
1168 FormatTok->TokenText = TokenText; in getStashedToken()
[all …]
DUnwrappedLineParser.h127 bool isOnNewLine(const FormatToken &FormatTok);
139 FormatToken *FormatTok; variable