Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/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.cpp214 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 DRawCommentList.h32 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 DASTContext.h806 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 DExtractAPIVisitor.h259 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 DAPI.h150 using DocComment = std::vector<RawComment::CommentLine>;
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h47 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 DSourceCode.cpp389 if (const RawComment *Comment = in getAssociatedRange()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp2425 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 DSemaCodeComplete.cpp3460 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 DASTReader.cpp9396 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 DASTWriter.cpp3265 const RawComment *I = OC.second; in WriteComments()