| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 24 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() 28 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind() 30 RawComment::CommentKind K; in getCommentKind() 33 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind() 36 K = RawComment::RCK_BCPLSlash; in getCommentKind() 38 K = RawComment::RCK_BCPLExcl; in getCommentKind() 40 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind() 49 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind() 52 K = RawComment::RCK_JavaDoc; in getCommentKind() 54 K = RawComment::RCK_Qt; in getCommentKind() [all …]
|
| H A D | ASTContext.cpp | 236 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl() 238 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl() 260 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl() 283 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl() 314 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache() 339 if (RawComment *Comment = in getRawCommentForDeclNoCache() 347 void ASTContext::addComment(const RawComment &RC) { in addComment() 423 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl() 490 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 506 const RawComment &Comment) const { in cacheRawCommentForDecl() [all …]
|
| /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 | 928 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments; 956 const RawComment &Comment) const; 963 RawComment *getRawCommentForDeclNoCacheImpl( 965 const std::map<unsigned, RawComment *> &CommentsInFile) const; 969 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 972 void addComment(const RawComment &RC); 979 const RawComment *
|
| /freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
| H A D | ExtractAPIVisitor.h | 130 const RawComment *fetchRawCommentForDecl(const Decl *Decl) const; 307 if (auto *RawComment = in VisitVarDecl() local 309 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl() 380 if (auto *RawComment = in VisitFunctionDecl() local 382 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl() 417 if (auto *RawComment = in VisitEnumDecl() local 419 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl() 548 if (auto *RawComment = in VisitNamespaceDecl() local 550 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitNamespaceDecl() 594 if (auto *RawComment = in VisitRecordDecl() local [all …]
|
| H A D | API.h | 151 using DocComment = std::vector<RawComment::CommentLine>;
|
| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 47 class RawComment; variable 1244 const RawComment *getCompletionComment(const ASTContext &Ctx, 1249 const RawComment *getPatternCompletionComment(const ASTContext &Ctx, 1254 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 | 2595 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment() 2601 case RawComment::RCK_OrdinaryBCPL: in ActOnComment() 2604 case RawComment::RCK_OrdinaryC: in ActOnComment() 2607 case RawComment::RCK_Invalid: in ActOnComment()
|
| H A D | SemaCodeComplete.cpp | 3622 if (const RawComment *RC = in CreateCodeCompletionString() 3708 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl() 3928 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment() 3946 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment() 3969 const RawComment *clang::getParameterComment( in getParameterComment()
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 10156 std::vector<RawComment *> Comments; in ReadComments() 10201 RawComment::CommentKind Kind = in ReadComments() 10202 (RawComment::CommentKind) Record[Idx++]; in ReadComments() 10205 Comments.push_back(new (Context) RawComment( in ReadComments() 10212 for (RawComment *C : Comments) { in ReadComments()
|
| H A D | ASTWriter.cpp | 3512 const RawComment *I = OC.second; in WriteComments()
|