| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | RawCommentList.cpp | 26 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 D | ASTContext.cpp | 205 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl() 207 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl() 229 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl() 252 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl() 283 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache() 310 void ASTContext::addComment(const RawComment &RC) { in addComment() 386 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl() 442 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 458 const RawComment &Comment) const { in cacheRawCommentForDecl() 530 if (RawComment *const DocComment = in attachCommentsToJustParsedDecls() [all …]
|
| /openbsd-src/gnu/llvm/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, 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 D | ASTContext.h | 800 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments; 828 const RawComment &Comment) const; 835 RawComment *getRawCommentForDeclNoCacheImpl( 837 const std::map<unsigned, RawComment *> &CommentsInFile) const; 841 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 844 void addComment(const RawComment &RC); 851 const RawComment *
|
| /openbsd-src/gnu/llvm/clang/lib/ExtractAPI/ |
| H A D | ExtractAPIVisitor.cpp | 81 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitVarDecl() local 82 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitVarDecl() 141 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitFunctionDecl() local 142 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitFunctionDecl() 186 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitEnumDecl() local 187 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitEnumDecl() 229 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitRecordDecl() local 230 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitRecordDecl() 264 if (auto *RawComment = Context.getRawCommentForDeclNoCache(Decl)) in VisitObjCInterfaceDecl() local 265 Comment = RawComment->getFormattedLines(Context.getSourceManager(), in VisitObjCInterfaceDecl() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 47 class RawComment; variable 1235 const RawComment *getCompletionComment(const ASTContext &Ctx, 1240 const RawComment *getPatternCompletionComment(const ASTContext &Ctx, 1245 const RawComment *
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 389 if (const RawComment *Comment = in getAssociatedRange()
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | Sema.cpp | 2378 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment() 2384 case RawComment::RCK_OrdinaryBCPL: in ActOnComment() 2387 case RawComment::RCK_OrdinaryC: in ActOnComment()
|
| H A D | SemaCodeComplete.cpp | 3398 if (const RawComment *RC = in CreateCodeCompletionString() 3477 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl() 3682 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment() 3700 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment() 3723 const RawComment *clang::getParameterComment( in getParameterComment()
|
| /openbsd-src/gnu/llvm/clang/include/clang/ExtractAPI/ |
| H A D | API.h | 51 using DocComment = std::vector<RawComment::CommentLine>;
|
| /openbsd-src/gnu/llvm/clang/tools/c-index-test/ |
| H A D | c-index-test.c | 693 CXString RawComment; in PrintCursorComments() local 698 RawComment = clang_Cursor_getRawCommentText(Cursor); in PrintCursorComments() 699 RawCommentCString = clang_getCString(RawComment); in PrintCursorComments() 710 clang_disposeString(RawComment); in PrintCursorComments()
|
| /openbsd-src/gnu/llvm/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 9162 std::vector<RawComment *> Comments; in ReadComments() 9207 RawComment::CommentKind Kind = in ReadComments() 9208 (RawComment::CommentKind) Record[Idx++]; in ReadComments() 9211 Comments.push_back(new (Context) RawComment( in ReadComments() 9218 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments() 9220 for (RawComment *C : Comments) { in ReadComments()
|
| H A D | ASTWriter.cpp | 3181 const RawComment *I = OC.second; in WriteComments()
|
| /openbsd-src/gnu/llvm/clang/tools/libclang/ |
| H A D | CIndex.cpp | 8677 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getCommentRange() 8690 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getRawCommentText() 8705 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getBriefCommentText()
|