Home
last modified time | relevance | path

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

/freebsd-src/contrib/llvm-project/clang/lib/AST/
H A DRawCommentList.cpp26 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind()
30 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind()
32 RawComment::CommentKind K; in getCommentKind()
35 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind()
38 K = RawComment::RCK_BCPLSlash; in getCommentKind()
40 K = RawComment::RCK_BCPLExcl; in getCommentKind()
42 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind()
51 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind()
54 K = RawComment::RCK_JavaDoc; in getCommentKind()
56 K = RawComment::RCK_Qt; in getCommentKind()
[all …]
H A DASTContext.cpp217 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl()
219 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl()
241 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl()
264 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl()
295 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache()
320 if (RawComment *Comment = in getRawCommentForDeclNoCache()
328 void ASTContext::addComment(const RawComment &RC) { in addComment()
404 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl()
457 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl()
473 const RawComment in cacheRawCommentForDecl()
[all...]
/freebsd-src/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()
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 *, unsigne
191 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, RawComment() function
[all...]
H A DASTContext.h835 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments;
863 const RawComment &Comment) const;
870 RawComment *getRawCommentForDeclNoCacheImpl(
872 const std::map<unsigned, RawComment *> &CommentsInFile) const;
876 RawComment *getRawCommentForDeclNoCache(const Decl *D) const;
879 void addComment(const RawComment &RC);
886 const RawComment *
/freebsd-src/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DExtractAPIVisitor.h126 const RawComment *fetchRawCommentForDecl(const Decl *Decl) const;
292 if (auto *RawComment = in VisitFunctionDecl()
294 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl()
365 if (auto *RawComment = in VisitEnumDecl()
367 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl()
402 if (auto *RawComment =
404 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in WalkUpFromRecordDecl()
533 if (auto *RawComment = in VisitRecordDecl()
535 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitRecordDecl()
566 if (auto *RawComment in VisitCXXRecordDecl()
259 if (auto *RawComment = VisitVarDecl() local
329 if (auto *RawComment = VisitFunctionDecl() local
375 if (auto *RawComment = VisitEnumDecl() local
490 if (auto *RawComment = VisitNamespaceDecl() local
523 if (auto *RawComment = VisitRecordDecl() local
565 if (auto *RawComment = VisitCXXRecordDecl() local
621 if (auto *RawComment = VisitCXXMethodDecl() local
682 if (auto *RawComment = VisitCXXConstructorDecl() local
714 if (auto *RawComment = VisitCXXDestructorDecl() local
747 if (auto *RawComment = VisitConceptDecl() local
772 if (auto *RawComment = VisitClassTemplateSpecializationDecl() local
806 if (auto *RawComment = VisitClassTemplatePartialSpecializationDecl() local
840 if (auto *RawComment = VisitVarTemplateDecl() local
886 if (auto *RawComment = VisitVarTemplateSpecializationDecl() local
916 if (auto *RawComment = VisitVarTemplatePartialSpecializationDecl() local
947 if (auto *RawComment = VisitFunctionTemplateDecl() local
978 if (auto *RawComment = VisitObjCInterfaceDecl() local
1026 if (auto *RawComment = VisitObjCProtocolDecl() local
1084 if (auto *RawComment = VisitTypedefNameDecl() local
1114 if (auto *RawComment = VisitObjCCategoryDecl() local
1165 if (auto *RawComment = recordEnumConstants() local
1195 if (auto *RawComment = recordRecordFields() local
1224 if (auto *RawComment = VisitFieldDecl() local
1253 if (auto *RawComment = VisitCXXConversionDecl() local
1299 if (auto *RawComment = recordObjCMethods() local
1329 if (auto *RawComment = recordObjCProperties() local
1374 if (auto *RawComment = recordObjCInstanceVariables() local
[all...]
H A DAPI.h145 /// DocComment is a vector of RawComment::CommentLine.
158 using DocComment = std::vector<RawComment::CommentLine>;
/freebsd-src/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h47 class RawComment; variable
1245 const RawComment *getCompletionComment(const ASTContext &Ctx,
1250 const RawComment *getPatternCompletionComment(const ASTContext &Ctx,
1255 const RawComment *
/freebsd-src/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp438 if (const RawComment *Comment = in getAssociatedRange()
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp2427 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment()
2433 case RawComment::RCK_OrdinaryBCPL: in ActOnComment()
2436 case RawComment::RCK_OrdinaryC: in ActOnComment()
2439 case RawComment::RCK_Invalid: in ActOnComment()
H A DSemaCodeComplete.cpp3466 if (const RawComment *RC = in CreateCodeCompletionString()
3545 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl()
3765 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment()
3783 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment()
3806 const RawComment *clang::getParameterComment( in getParameterComment()
/freebsd-src/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp9536 std::vector<RawComment *> Comments; in finishPendingActions()
9581 RawComment::CommentKind Kind = in finishPendingActions()
9582 (RawComment::CommentKind) Record[Idx++]; in finishPendingActions()
9585 Comments.push_back(new (Context) RawComment( in finishPendingActions()
9592 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in finishPendingActions()
9594 for (RawComment *C : Comments) { in finishPendingActions()
H A DASTWriter.cpp3425 const RawComment *I = OC.second; in WriteSelectors()