Lines Matching refs:FormatToken
29 const FormatToken *
30 processTokens(const FormatToken *Tok, tok::TokenKind StartTok, in processTokens()
32 llvm::function_ref<void(const FormatToken *)> Fn) { in processTokens()
48 const FormatToken *skipAttribute(const FormatToken *Tok) { in skipAttribute()
62 std::string computeName(const FormatToken *NamespaceTok) { in computeName()
67 const FormatToken *Tok = NamespaceTok->getNextNonComment(); in computeName()
87 const FormatToken *FirstNSTok = nullptr; in computeName()
101 auto AddToken = [&name](const FormatToken *Tok) { name += Tok->TokenText; }; in computeName()
131 const FormatToken *TokAfterAttr = skipAttribute(Tok); in computeName()
143 const FormatToken *NamespaceTok, in computeEndCommentText()
160 bool hasEndComment(const FormatToken *RBraceTok) { in hasEndComment()
164 bool validEndComment(const FormatToken *RBraceTok, StringRef NamespaceName, in validEndComment()
165 const FormatToken *NamespaceTok) { in validEndComment()
167 const FormatToken *Comment = RBraceTok->Next; in validEndComment()
220 void addEndComment(const FormatToken *RBraceTok, StringRef EndCommentText, in addEndComment()
232 void updateEndComment(const FormatToken *RBraceTok, StringRef EndCommentText, in updateEndComment()
236 const FormatToken *Comment = RBraceTok->Next; in updateEndComment()
247 const FormatToken *
256 const FormatToken *NamespaceTok = AnnotatedLines[StartLineIndex]->First; in getNamespaceToken()
273 const FormatToken *NamespaceTok = getNamespaceToken(Line, AnnotatedLines); in getNamespaceTokenText()
291 FormatToken *Tok = Line->First; in analyze()
309 const FormatToken *NamespaceTok = in analyze()
313 FormatToken *RBraceTok = EndLine->First; in analyze()
317 const FormatToken *EndCommentPrevTok = RBraceTok; in analyze()
350 const FormatToken *EndCommentNextTok = EndCommentPrevTok->Next; in analyze()