clang API Documentation
This class represents all comments included in the translation unit, sorted in order of appearance in the translation unit. More...
#include <RawCommentList.h>
Public Member Functions | |
| RawCommentList (SourceManager &SourceMgr) | |
| void | addComment (const RawComment &RC, llvm::BumpPtrAllocator &Allocator) |
| ArrayRef< RawComment * > | getComments () const |
Friends | |
| class | ASTReader |
This class represents all comments included in the translation unit, sorted in order of appearance in the translation unit.
Definition at line 182 of file RawCommentList.h.
| clang::RawCommentList::RawCommentList | ( | SourceManager & | SourceMgr | ) | [inline] |
Definition at line 184 of file RawCommentList.h.
| void RawCommentList::addComment | ( | const RawComment & | RC, |
| llvm::BumpPtrAllocator & | Allocator | ||
| ) |
Definition at line 213 of file RawCommentList.cpp.
References clang::RawComment::getLocEnd(), clang::RawComment::getLocStart(), clang::SourceManager::isBeforeInTranslationUnit(), clang::RawComment::isInvalid(), clang::RawComment::isOrdinary(), clang::RawComment::isParseAllComments(), clang::RawComment::isTrailingComment(), and onlyWhitespaceBetween().
Referenced by clang::ASTContext::addComment().
| ArrayRef<RawComment *> clang::RawCommentList::getComments | ( | ) | const [inline] |
Definition at line 188 of file RawCommentList.h.
Referenced by clang::Sema::ActOnDocumentableDecls(), and clang::ASTContext::getRawCommentForDeclNoCache().
friend class ASTReader [friend] |
Definition at line 198 of file RawCommentList.h.