/external/clang/lib/AST/ |
D | RawCommentList.cpp | 25 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() 29 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind() 31 RawComment::CommentKind K; in getCommentKind() 34 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind() 37 K = RawComment::RCK_BCPLSlash; in getCommentKind() 39 K = RawComment::RCK_BCPLExcl; in getCommentKind() 41 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind() 50 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind() 53 K = RawComment::RCK_JavaDoc; in getCommentKind() 55 K = RawComment::RCK_Qt; in getCommentKind() [all …]
|
D | ASTContext.cpp | 64 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache() 69 ArrayRef<RawComment *> RawComments = Comments.getComments(); in getRawCommentForDeclNoCache() 71 BeforeThanCompare<RawComment>(SourceMgr))); in getRawCommentForDeclNoCache() 129 ArrayRef<RawComment *> RawComments = Comments.getComments(); in getRawCommentForDeclNoCache() 174 ArrayRef<RawComment *>::iterator Comment; in getRawCommentForDeclNoCache() 179 RawComment CommentAtDeclLoc( in getRawCommentForDeclNoCache() 182 BeforeThanCompare<RawComment> Compare(SourceMgr); in getRawCommentForDeclNoCache() 183 ArrayRef<RawComment *>::iterator MaybeBeforeDecl = RawComments.end() - 1; in getRawCommentForDeclNoCache() 333 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl() 353 const RawComment *RC = nullptr; in getRawCommentForAnyRedecl() [all …]
|
/external/llvm-project/clang/lib/AST/ |
D | RawCommentList.cpp | 25 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment, in getCommentKind() 29 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind() 31 RawComment::CommentKind K; in getCommentKind() 34 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind() 37 K = RawComment::RCK_BCPLSlash; in getCommentKind() 39 K = RawComment::RCK_BCPLExcl; in getCommentKind() 41 return std::make_pair(RawComment::RCK_OrdinaryBCPL, false); in getCommentKind() 50 return std::make_pair(RawComment::RCK_Invalid, false); in getCommentKind() 53 K = RawComment::RCK_JavaDoc; in getCommentKind() 55 K = RawComment::RCK_Qt; in getCommentKind() [all …]
|
D | ASTContext.cpp | 199 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl() 201 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl() 223 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl() 246 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl() 277 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache() 301 void ASTContext::addComment(const RawComment &RC) { in addComment() 377 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl() 433 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl() 449 const RawComment &Comment) const { in cacheRawCommentForDecl() 521 if (RawComment *const DocComment = in attachCommentsToJustParsedDecls() [all …]
|
/external/clang/include/clang/AST/ |
D | RawCommentList.h | 28 class RawComment { 41 RawComment() : Kind(RCK_Invalid), IsAlmostTrailingComment(false) { } in RawComment() function 43 RawComment(const SourceManager &SourceMgr, SourceRange SR, 147 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment() function 165 class BeforeThanCompare<RawComment> { 171 bool operator()(const RawComment &LHS, const RawComment &RHS) { in operator() 175 bool operator()(const RawComment *LHS, const RawComment *RHS) { in operator() 186 void addComment(const RawComment &RC, llvm::BumpPtrAllocator &Allocator); 188 ArrayRef<RawComment *> getComments() const { in getComments() 194 std::vector<RawComment *> Comments; [all …]
|
D | ASTContext.h | 655 const RawComment *getRaw() const LLVM_READONLY { in getRaw() 659 void setRaw(const RawComment *RC) { in setRaw() 672 llvm::PointerIntPair<const RawComment *, 2, Kind> Data; 689 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 696 void addComment(const RawComment &RC) { in addComment() 707 const RawComment *
|
/external/llvm-project/clang/include/clang/AST/ |
D | RawCommentList.h | 32 class RawComment { 45 RawComment() : Kind(RCK_Invalid), IsAlmostTrailingComment(false) { } in RawComment() function 47 RawComment(const SourceManager &SourceMgr, SourceRange SR, 164 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment() function 184 void addComment(const RawComment &RC, const CommentOptions &CommentOpts, 189 const std::map<unsigned, RawComment *> *getCommentsInFile(FileID File) const; 193 unsigned getCommentBeginLine(RawComment *C, FileID File, 195 unsigned getCommentEndOffset(RawComment *C) const; 200 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments; 201 mutable llvm::DenseMap<RawComment *, unsigned> CommentBeginLine; [all …]
|
D | ASTContext.h | 709 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments; 737 const RawComment &Comment) const; 744 RawComment *getRawCommentForDeclNoCacheImpl( 746 const std::map<unsigned, RawComment *> &CommentsInFile) const; 750 RawComment *getRawCommentForDeclNoCache(const Decl *D) const; 753 void addComment(const RawComment &RC); 760 const RawComment *
|
/external/llvm-project/clang/include/clang/Sema/ |
D | CodeCompleteConsumer.h | 48 class RawComment; variable 1154 const RawComment *getCompletionComment(const ASTContext &Ctx, 1159 const RawComment *getPatternCompletionComment(const ASTContext &Ctx, 1164 const RawComment *
|
/external/llvm-project/clang/unittests/AST/ |
D | CommentTextTest.cpp | 45 RawComment Comment(SourceMgr, CommentRange, EmptyOpts, /*Merged=*/true); in formatComment()
|
/external/llvm-project/clang-tools-extra/clang-doc/ |
D | Mapper.cpp | 78 RawComment *Comment = Context.getRawCommentForDeclNoCache(D); in getComment()
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | CodeCompletionStrings.cpp | 82 const RawComment *RC = getCompletionComment(Ctx, &Decl); in getDeclComment()
|
/external/llvm-project/clang/lib/Tooling/Transformer/ |
D | SourceCode.cpp | 345 if (const RawComment *Comment = in getAssociatedRange()
|
/external/clang/lib/Sema/ |
D | Sema.cpp | 1229 RawComment RC(SourceMgr, Comment, false, in ActOnComment() 1236 case RawComment::RCK_OrdinaryBCPL: in ActOnComment() 1239 case RawComment::RCK_OrdinaryC: in ActOnComment()
|
D | SemaCodeComplete.cpp | 2620 if (const RawComment *RC = in CreateCodeCompletionString() 2625 else if (const RawComment *RC = in CreateCodeCompletionString() 2690 if (const RawComment *RC = Ctx.getRawCommentForAnyRedecl(ND)) { in CreateCodeCompletionString() 2696 if (const RawComment *RC = Ctx.getRawCommentForAnyRedecl(PDecl)) in CreateCodeCompletionString()
|
/external/llvm-project/clang/lib/Sema/ |
D | Sema.cpp | 2111 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment() 2117 case RawComment::RCK_OrdinaryBCPL: in ActOnComment() 2120 case RawComment::RCK_OrdinaryC: in ActOnComment()
|
D | SemaCodeComplete.cpp | 3304 if (const RawComment *RC = in CreateCodeCompletionString() 3383 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl() 3586 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment() 3604 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment() 3627 const RawComment *clang::getParameterComment( in getParameterComment()
|
/external/llvm-project/clang-tools-extra/unittests/clang-doc/ |
D | SerializeTest.cpp | 26 if (RawComment *Comment = in getComment()
|
/external/clang/tools/c-index-test/ |
D | c-index-test.c | 608 CXString RawComment; in PrintCursorComments() local 613 RawComment = clang_Cursor_getRawCommentText(Cursor); in PrintCursorComments() 614 RawCommentCString = clang_getCString(RawComment); in PrintCursorComments() 625 clang_disposeString(RawComment); in PrintCursorComments()
|
/external/llvm-project/clang/tools/c-index-test/ |
D | c-index-test.c | 690 CXString RawComment; in PrintCursorComments() local 695 RawComment = clang_Cursor_getRawCommentText(Cursor); in PrintCursorComments() 696 RawCommentCString = clang_getCString(RawComment); in PrintCursorComments() 707 clang_disposeString(RawComment); in PrintCursorComments()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReader.cpp | 9184 std::vector<RawComment *> Comments; in ReadComments() 9229 RawComment::CommentKind Kind = in ReadComments() 9230 (RawComment::CommentKind) Record[Idx++]; in ReadComments() 9233 Comments.push_back(new (Context) RawComment( in ReadComments() 9240 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments() 9242 for (RawComment *C : Comments) { in ReadComments()
|
/external/clang/lib/Serialization/ |
D | ASTReader.cpp | 8240 std::vector<RawComment *> Comments; in ReadComments() 8274 RawComment::CommentKind Kind = in ReadComments() 8275 (RawComment::CommentKind) Record[Idx++]; in ReadComments() 8278 Comments.push_back(new (Context) RawComment( in ReadComments()
|
D | ASTWriter.cpp | 2845 ArrayRef<RawComment *> RawComments = Context->Comments.getComments(); in WriteComments()
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 7295 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getCommentRange() 7308 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getRawCommentText() 7323 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getBriefCommentText()
|
/external/llvm-project/clang/tools/libclang/ |
D | CIndex.cpp | 8332 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getCommentRange() 8345 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getRawCommentText() 8360 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getBriefCommentText()
|