Home | History | Annotate | Download | only in Format

Lines Matching refs:Comment

34     // Collects all the non-comment tokens between opening parenthesis
83 return RBraceTok->Next && RBraceTok->Next->is(tok::comment);
89 const FormatToken *Comment = RBraceTok->Next;
91 // Matches a valid namespace end comment.
104 NamespaceMacroCommentPattern.match(Comment->TokenText, &Groups)) {
110 !NamespaceCommentPattern.match(Comment->TokenText, &Groups)) {
111 // Comment does not match regex.
125 // Has namespace comment flowed onto the next line.
128 if (!(Comment->Next && Comment->Next->is(TT_LineComment)))
134 // Pull out just the comment text.
135 if (!CommentPattern.match(Comment->Next->TokenText, &Groups)) {
150 llvm::errs() << "Error while adding namespace end comment: "
159 const FormatToken *Comment = RBraceTok->Next;
160 auto Range = CharSourceRange::getCharRange(Comment->getStartOfNonWhitespace(),
161 Comment->Tok.getEndLoc());
164 llvm::errs() << "Error while updating namespace end comment: "
216 // Don't attempt to comment unbalanced braces or this can
256 // remove end comment, it will be merged in next one
267 // The next token in the token stream after the place where the end comment
271 if (EndCommentNextTok && EndCommentNextTok->is(tok::comment))