Home | History | Annotate | Download | only in AST

Lines Matching full:comments

1 //===--- RawCommentList.cpp - Processing raw comments -----------*- C++ -*-===//
149 comments::Lexer L(Allocator, Context.getDiagnostics(),
153 comments::BriefParser P(L, Context.getCommentCommandTraits());
165 comments::FullComment *RawComment::parse(const ASTContext &Context,
171 comments::Lexer L(Context.getAllocator(), Context.getDiagnostics(),
175 comments::Sema S(Context.getAllocator(), Context.getSourceManager(),
180 comments::Parser P(L, S, Context.getAllocator(), Context.getSourceManager(),
216 // Check if the comments are not in source order.
217 while (!Comments.empty() &&
219 Comments.back()->getSourceRange().getBegin(),
221 // If they are, just pop a few last comments that don't fit.
222 // This happens if an \#include directive contains comments.
223 Comments.pop_back();
235 // Ordinary comments are not interesting for us.
241 if (Comments.empty()) {
242 Comments.push_back(new (Allocator) RawComment(RC));
247 const RawComment &C1 = *Comments.back();
250 // Merge comments only if there is only whitespace between them.
251 // Can't merge trailing and non-trailing comments.
252 // Merge comments if they are on same or consecutive lines.
261 *Comments.back() = RawComment(SourceMgr, MergedRange, true,
267 Comments.push_back(new (Allocator) RawComment(RC));