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.cpp24 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 DASTContext.cpp236 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 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.h928 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 DExtractAPIVisitor.h130 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 DAPI.h151 using DocComment = std::vector<RawComment::CommentLine>;
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h47 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 DSourceCode.cpp438 if (const RawComment *Comment = in getAssociatedRange()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp2595 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 DSemaCodeComplete.cpp3622 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 DASTReader.cpp10156 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 DASTWriter.cpp3512 const RawComment *I = OC.second; in WriteComments()