clang 22.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 clang::RawComment::getBeginLoc(), clang::RawComment::getEndLoc(), clang::RawComment::getKind(), clang::RawComment::isInvalid(), clang::RawComment::isOrdinary(), isOrdinaryKind(), clang::RawComment::isTrailingComment(), onlyWhitespaceBetween(), and clang::CommentOptions::ParseAllComments.
bool RawCommentList::empty | ( | ) | const |
Definition at line 335 of file RawCommentList.cpp.
unsigned RawCommentList::getCommentBeginLine | ( | RawComment * | C, |
FileID | File, | ||
unsigned | Offset ) const |
Definition at line 337 of file RawCommentList.cpp.
References clang::C, clang::File, and clang::Line.
unsigned RawCommentList::getCommentEndOffset | ( | RawComment * | C | ) | const |
Definition at line 347 of file RawCommentList.cpp.
References clang::C.
const std::map< unsigned, RawComment * > * RawCommentList::getCommentsInFile | ( | FileID | File | ) | const |
File
. Definition at line 327 of file RawCommentList.cpp.
References clang::File.
|
friend |
|
friend |