Home | History | Annotate | Download | only in AST

Lines Matching refs:Comments

1 //===--- RawCommentList.cpp - Processing raw comments -----------*- C++ -*-===//
146 comments::Lexer L(Allocator, Context.getCommentCommandTraits(),
149 comments::BriefParser P(L, Context.getCommentCommandTraits());
161 comments::FullComment *RawComment::parse(const ASTContext &Context,
167 comments::Lexer L(Context.getAllocator(), Context.getCommentCommandTraits(),
170 comments::Sema S(Context.getAllocator(), Context.getSourceManager(),
175 comments::Parser P(L, S, Context.getAllocator(), Context.getSourceManager(),
211 // Check if the comments are not in source order.
212 while (!Comments.empty() &&
214 Comments.back()->getSourceRange().getBegin(),
216 // If they are, just pop a few last comments that don't fit.
217 // This happens if an \#include directive contains comments.
218 Comments.pop_back();
230 // Ordinary comments are not interesting for us.
236 if (Comments.empty()) {
237 Comments.push_back(new (Allocator) RawComment(RC));
242 const RawComment &C1 = *Comments.back();
245 // Merge comments only if there is only whitespace between them.
246 // Can't merge trailing and non-trailing comments.
247 // Merge comments if they are on same or consecutive lines.
256 *Comments.back() = RawComment(SourceMgr, MergedRange, true);
261 Comments.push_back(new (Allocator) RawComment(RC));