/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | RawCommentList.cpp | 32 RawComment::CommentKind K; in getCommentKind() 38 K = RawComment::RCK_BCPLSlash; in getCommentKind() 40 K = RawComment::RCK_BCPLExcl; in getCommentKind() 54 K = RawComment::RCK_JavaDoc; in getCommentKind() 56 K = RawComment::RCK_Qt; in getCommentKind() 107 (K == RawComment::RCK_OrdinaryC); in isOrdinaryKind() 110 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, in RawComment() function in RawComment 294 new (Allocator) RawComment(RC); in addComment() 299 const RawComment &C2 = RC; in addComment() 325 new (Allocator) RawComment(RC); in addComment() [all …]
|
H A D | ASTContext.cpp | 214 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl() 216 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl() 238 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl() 261 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl() 292 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache() 317 if (RawComment *Comment = in getRawCommentForDeclNoCache() 325 void ASTContext::addComment(const RawComment &RC) { in addComment() 401 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl() 546 if (RawComment *const DocComment = getRawCommentForDeclNoCacheImpl( in attachCommentsToJustParsedDecls() 573 const RawComment *RC = getRawCommentForDeclNoCache(D); in getLocalCommentForDeclUncached() [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, 191 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment() function 211 void addComment(const RawComment &RC, const CommentOptions &CommentOpts, 216 const std::map<unsigned, RawComment *> *getCommentsInFile(FileID File) const; 220 unsigned getCommentBeginLine(RawComment *C, FileID File, 222 unsigned getCommentEndOffset(RawComment *C) const; 227 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments; 228 mutable llvm::DenseMap<RawComment *, unsigned> CommentBeginLine; [all …]
|
H A D | ASTContext.h | 806 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments; 834 const RawComment &Comment) const; 841 RawComment *getRawCommentForDeclNoCacheImpl( 843 const std::map<unsigned, RawComment *> &CommentsInFile) const; 847 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 850 void addComment(const RawComment &RC); 857 const RawComment *
|
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
H A D | ExtractAPIVisitor.h | 259 if (auto *RawComment = in VisitVarDecl() local 329 if (auto *RawComment = in VisitFunctionDecl() local 375 if (auto *RawComment = in VisitEnumDecl() local 490 if (auto *RawComment = in VisitNamespaceDecl() local 523 if (auto *RawComment = in VisitRecordDecl() local 565 if (auto *RawComment = in VisitCXXRecordDecl() local 621 if (auto *RawComment = in VisitCXXMethodDecl() local 682 if (auto *RawComment = in VisitCXXConstructorDecl() local 714 if (auto *RawComment = in VisitCXXDestructorDecl() local 747 if (auto *RawComment = in VisitConceptDecl() local [all …]
|
H A D | API.h | 150 using DocComment = std::vector<RawComment::CommentLine>;
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | CodeCompleteConsumer.h | 47 class RawComment; variable 1243 const RawComment *getCompletionComment(const ASTContext &Ctx, 1248 const RawComment *getPatternCompletionComment(const ASTContext &Ctx, 1253 const RawComment *
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 389 if (const RawComment *Comment = in getAssociatedRange()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | Sema.cpp | 2425 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment() 2431 case RawComment::RCK_OrdinaryBCPL: in ActOnComment() 2434 case RawComment::RCK_OrdinaryC: in ActOnComment() 2437 case RawComment::RCK_Invalid: in ActOnComment()
|
H A D | SemaCodeComplete.cpp | 3460 if (const RawComment *RC = in CreateCodeCompletionString() 3539 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl() 3759 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment() 3777 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment() 3800 const RawComment *clang::getParameterComment( in getParameterComment()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 9396 std::vector<RawComment *> Comments; in ReadComments() 9441 RawComment::CommentKind Kind = in ReadComments() 9442 (RawComment::CommentKind) Record[Idx++]; in ReadComments() 9445 Comments.push_back(new (Context) RawComment( in ReadComments() 9452 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments() 9454 for (RawComment *C : Comments) { in ReadComments()
|
H A D | ASTWriter.cpp | 3265 const RawComment *I = OC.second; in WriteComments()
|