/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | RawCommentList.h | 32 class RawComment { 45 RawComment() : Kind(RCK_Invalid), IsAlmostTrailingComment(false) { } in RawComment() function 47 RawComment(const SourceManager &SourceMgr, SourceRange SR, 196 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment() function 216 void addComment(const RawComment &RC, const CommentOptions &CommentOpts, 221 const std::map<unsigned, RawComment *> *getCommentsInFile(FileID File) const; 225 unsigned getCommentBeginLine(RawComment *C, FileID File, 227 unsigned getCommentEndOffset(RawComment *C) const; 232 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments; 233 mutable llvm::DenseMap<RawComment *, unsigned> CommentBeginLine; [all …]
|
H A D | ASTContext.h | 835 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments; 863 const RawComment &Comment) const; 870 RawComment *getRawCommentForDeclNoCacheImpl( 872 const std::map<unsigned, RawComment *> &CommentsInFile) const; 876 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 879 void addComment(const RawComment &RC); 886 const RawComment *
|
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
H A D | ExtractAPIVisitor.h | 126 const RawComment *fetchRawCommentForDecl(const Decl *Decl) const; 292 if (auto *RawComment = in VisitVarDecl() local 294 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl() 365 if (auto *RawComment = in VisitFunctionDecl() local 367 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl() 402 if (auto *RawComment = in VisitEnumDecl() local 404 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl() 533 if (auto *RawComment = in VisitNamespaceDecl() local 535 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitNamespaceDecl() 566 if (auto *RawComment = in VisitRecordDecl() local [all …]
|
H A D | API.h | 158 using DocComment = std::vector<RawComment::CommentLine>;
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | CodeCompleteConsumer.h | 47 class RawComment; variable 1245 const RawComment *getCompletionComment(const ASTContext &Ctx, 1250 const RawComment *getPatternCompletionComment(const ASTContext &Ctx, 1255 const RawComment *
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 438 if (const RawComment *Comment = in getAssociatedRange()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | Sema.cpp | 2427 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment() 2433 case RawComment::RCK_OrdinaryBCPL: in ActOnComment() 2436 case RawComment::RCK_OrdinaryC: in ActOnComment() 2439 case RawComment::RCK_Invalid: in ActOnComment()
|
H A D | SemaCodeComplete.cpp | 3466 if (const RawComment *RC = in CreateCodeCompletionString() 3545 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl() 3765 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment() 3783 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment() 3806 const RawComment *clang::getParameterComment( in getParameterComment()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTContext.cpp | 217 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl() 219 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl() 241 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl() 264 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl() 295 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache() 320 if (RawComment *Comment = in getRawCommentForDeclNoCache() 328 void ASTContext::addComment(const RawComment &RC) { in addComment() 404 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl() 457 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 473 const RawComment &Comment) const { in cacheRawCommentForDecl() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 9536 std::vector<RawComment *> Comments; in ReadComments() 9581 RawComment::CommentKind Kind = in ReadComments() 9582 (RawComment::CommentKind) Record[Idx++]; in ReadComments() 9585 Comments.push_back(new (Context) RawComment( in ReadComments() 9592 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments() 9594 for (RawComment *C : Comments) { in ReadComments()
|
H A D | ASTWriter.cpp | 3425 const RawComment *I = OC.second; in WriteComments()
|