clang 20.0.0git
Public Member Functions | Friends | List of all members
clang::RawCommentList Class Reference

This class represents all comments included in the translation unit, sorted in order of appearance in the translation unit. More...

#include "clang/AST/RawCommentList.h"

Public Member Functions

 RawCommentList (SourceManager &SourceMgr)
 
void addComment (const RawComment &RC, const CommentOptions &CommentOpts, llvm::BumpPtrAllocator &Allocator)
 
const std::map< unsigned, RawComment * > * getCommentsInFile (FileID File) const
 
bool empty () const
 
unsigned getCommentBeginLine (RawComment *C, FileID File, unsigned Offset) const
 
unsigned getCommentEndOffset (RawComment *C) const
 

Friends

class ASTReader
 
class ASTWriter
 

Detailed Description

This class represents all comments included in the translation unit, sorted in order of appearance in the translation unit.

Definition at line 212 of file RawCommentList.h.

Constructor & Destructor Documentation

◆ RawCommentList()

clang::RawCommentList::RawCommentList ( SourceManager SourceMgr)
inline

Definition at line 214 of file RawCommentList.h.

Member Function Documentation

◆ addComment()

void RawCommentList::addComment ( const RawComment RC,
const CommentOptions CommentOpts,
llvm::BumpPtrAllocator &  Allocator 
)