Home
last modified time | relevance | path

Searched refs:RawComment (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DRawCommentList.h32 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 DASTContext.h835 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 DExtractAPIVisitor.h126 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 DAPI.h158 using DocComment = std::vector<RawComment::CommentLine>;
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h47 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 DSourceCode.cpp438 if (const RawComment *Comment = in getAssociatedRange()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp2427 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 DSemaCodeComplete.cpp3466 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 DASTContext.cpp217 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 DASTReader.cpp9536 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 DASTWriter.cpp3425 const RawComment *I = OC.second; in WriteComments()