Home
last modified time | relevance | path

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

/external/clang/lib/AST/
DRawCommentList.cpp25 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 …]
DASTContext.cpp64 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/clang/include/clang/AST/
DRawCommentList.h28 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 …]
DASTContext.h655 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/clang/lib/Sema/
DSema.cpp1229 RawComment RC(SourceMgr, Comment, false, in ActOnComment()
1236 case RawComment::RCK_OrdinaryBCPL: in ActOnComment()
1239 case RawComment::RCK_OrdinaryC: in ActOnComment()
DSemaCodeComplete.cpp2620 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()
DSemaDecl.cpp10775 ArrayRef<RawComment *> Comments = Context.getRawCommentList().getComments(); in ActOnDocumentableDecls()
/external/clang/tools/c-index-test/
Dc-index-test.c608 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/clang/lib/Serialization/
DASTReader.cpp8240 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()
DASTWriter.cpp2845 ArrayRef<RawComment *> RawComments = Context->Comments.getComments(); in WriteComments()
/external/clang/tools/libclang/
DCIndex.cpp7295 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()