Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/lib/AST/
H A DRawCommentList.cpp32 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 DASTContext.cpp206 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl()
208 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl()
230 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl()
253 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl()
284 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache()
308 void ASTContext::addComment(const RawComment &RC) { in addComment()
384 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl()
440 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl()
528 if (RawComment *const DocComment = in attachCommentsToJustParsedDecls()
553 const RawComment *RC = getRawCommentForDeclNoCache(D); in getLocalCommentForDeclUncached()
[all …]
/llvm-project-15.0.7/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,
179 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment() function
199 void addComment(const RawComment &RC, const CommentOptions &CommentOpts,
204 const std::map<unsigned, RawComment *> *getCommentsInFile(FileID File) const;
208 unsigned getCommentBeginLine(RawComment *C, FileID File,
210 unsigned getCommentEndOffset(RawComment *C) const;
215 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments;
216 mutable llvm::DenseMap<RawComment *, unsigned> CommentBeginLine;
[all …]
H A DASTContext.h829 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments;
857 const RawComment &Comment) const;
864 RawComment *getRawCommentForDeclNoCacheImpl(
866 const std::map<unsigned, RawComment *> &CommentsInFile) const;
870 RawComment *getRawCommentForDeclNoCache(const Decl *D) const;
873 void addComment(const RawComment &RC);
880 const RawComment *
/llvm-project-15.0.7/clang/lib/ExtractAPI/
H A DExtractAPIConsumer.cpp270 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitVarDecl() local
271 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl()
331 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitFunctionDecl() local
332 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl()
371 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitEnumDecl() local
412 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitRecordDecl() local
447 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitObjCInterfaceDecl() local
493 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitObjCProtocolDecl() local
530 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitTypedefNameDecl() local
554 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitObjCCategoryDecl() local
[all …]
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h48 class RawComment; variable
1229 const RawComment *getCompletionComment(const ASTContext &Ctx,
1234 const RawComment *getPatternCompletionComment(const ASTContext &Ctx,
1239 const RawComment *
/llvm-project-15.0.7/clang/unittests/AST/
H A DCommentTextTest.cpp45 RawComment Comment(SourceMgr, CommentRange, EmptyOpts, /*Merged=*/true); in formatComment()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DMapper.cpp76 RawComment *Comment = Context.getRawCommentForDeclNoCache(D); in getComment()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DCodeCompletionStrings.cpp81 const RawComment *RC = getCompletionComment(Ctx, &Decl); in getDeclComment()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/
H A DInsertionPoint.cpp67 if (RawComment *Comment = D.getASTContext().getRawCommentForDeclNoCache(&D)) { in beginLoc()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp345 if (const RawComment *Comment = in getAssociatedRange()
/llvm-project-15.0.7/clang/include/clang/ExtractAPI/
H A DAPI.h51 using DocComment = std::vector<RawComment::CommentLine>;
/llvm-project-15.0.7/clang/lib/Sema/
H A DSema.cpp2341 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment()
2347 case RawComment::RCK_OrdinaryBCPL: in ActOnComment()
2350 case RawComment::RCK_OrdinaryC: in ActOnComment()
H A DSemaCodeComplete.cpp3363 if (const RawComment *RC = in CreateCodeCompletionString()
3442 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl()
3647 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment()
3665 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment()
3688 const RawComment *clang::getParameterComment( in getParameterComment()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-doc/
H A DSerializeTest.cpp26 if (RawComment *Comment = in getComment()
/llvm-project-15.0.7/clang/tools/c-index-test/
H A Dc-index-test.c691 CXString RawComment; in PrintCursorComments() local
696 RawComment = clang_Cursor_getRawCommentText(Cursor); in PrintCursorComments()
697 RawCommentCString = clang_getCString(RawComment); in PrintCursorComments()
708 clang_disposeString(RawComment); in PrintCursorComments()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp9123 std::vector<RawComment *> Comments; in ReadComments()
9168 RawComment::CommentKind Kind = in ReadComments()
9169 (RawComment::CommentKind) Record[Idx++]; in ReadComments()
9172 Comments.push_back(new (Context) RawComment( in ReadComments()
9179 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments()
9181 for (RawComment *C : Comments) { in ReadComments()
H A DASTWriter.cpp3162 const RawComment *I = OC.second; in WriteComments()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp8641 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getCommentRange()
8654 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getRawCommentText()
8669 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getBriefCommentText()