clang 20.0.0git
|
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 |
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.
|
inline |
Definition at line 214 of file RawCommentList.h.
void RawCommentList::addComment | ( | const RawComment & | RC, |
const CommentOptions & | CommentOpts, | ||
llvm::BumpPtrAllocator & | Allocator | ||
) |
Definition at line 272 of file RawCommentList.cpp.
References empty(), clang::RawComment::getBeginLoc(), clang::SourceManager::getDecomposedLoc(),