Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DRawCommentList.cpp31 RawComment::CommentKind K; in getCommentKind()
37 K = RawComment::RCK_BCPLSlash; in getCommentKind()
39 K = RawComment::RCK_BCPLExcl; in getCommentKind()
53 K = RawComment::RCK_JavaDoc; in getCommentKind()
55 K = RawComment::RCK_Qt; in getCommentKind()
105 return (K == RawComment::RCK_OrdinaryBCPL) || in isOrdinaryKind()
106 (K == RawComment::RCK_OrdinaryC); in isOrdinaryKind()
109 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, in RawComment() function in RawComment
299 const RawComment &C1 = *Comments.back(); in addComment()
300 const RawComment &C2 = RC; in addComment()
[all …]
H A DASTContext.cpp115 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache()
120 ArrayRef<RawComment *> RawComments = Comments.getComments(); in getRawCommentForDeclNoCache()
122 BeforeThanCompare<RawComment>(SourceMgr))); in getRawCommentForDeclNoCache()
179 ArrayRef<RawComment *> RawComments = Comments.getComments(); in getRawCommentForDeclNoCache()
224 ArrayRef<RawComment *>::iterator Comment; in getRawCommentForDeclNoCache()
229 RawComment CommentAtDeclLoc( in getRawCommentForDeclNoCache()
231 BeforeThanCompare<RawComment> Compare(SourceMgr); in getRawCommentForDeclNoCache()
382 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl()
402 const RawComment *RC = nullptr; in getRawCommentForAnyRedecl()
486 const RawComment *RC = getRawCommentForDeclNoCache(D); in getLocalCommentForDeclUncached()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DRawCommentList.h28 class RawComment {
41 RawComment() : Kind(RCK_Invalid), IsAlmostTrailingComment(false) { } in RawComment() function
43 RawComment(const SourceManager &SourceMgr, SourceRange SR,
160 RawComment(SourceRange SR, CommentKind K, bool IsTrailingComment, in RawComment() function
176 class BeforeThanCompare<RawComment> {
182 bool operator()(const RawComment &LHS, const RawComment &RHS) { in operator()
186 bool operator()(const RawComment *LHS, const RawComment *RHS) { in operator()
197 void addComment(const RawComment &RC, const CommentOptions &CommentOpts,
200 ArrayRef<RawComment *> getComments() const { in getComments()
206 std::vector<RawComment *> Comments;
[all …]
H A DASTContext.h762 const RawComment *getRaw() const LLVM_READONLY { in getRaw()
766 void setRaw(const RawComment *RC) { in setRaw()
779 llvm::PointerIntPair<const RawComment *, 2, Kind> Data;
796 RawComment *getRawCommentForDeclNoCache(const Decl *D) const;
803 void addComment(const RawComment &RC) { in addComment()
814 const RawComment *
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h49 class RawComment; variable
1164 const RawComment *getCompletionComment(const ASTContext &Ctx,
1169 const RawComment *getPatternCompletionComment(const ASTContext &Ctx,
1174 const RawComment *
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSema.cpp1588 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment()
1594 case RawComment::RCK_OrdinaryBCPL: in ActOnComment()
1597 case RawComment::RCK_OrdinaryC: in ActOnComment()
H A DSemaCodeComplete.cpp2937 if (const RawComment *RC = in CreateCodeCompletionString()
2981 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl()
3172 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment()
3190 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment()
3213 const RawComment *clang::getParameterComment( in getParameterComment()
H A DSemaDecl.cpp12328 ArrayRef<RawComment *> Comments = Context.getRawCommentList().getComments(); in ActOnDocumentableDecls()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReader.cpp9150 std::vector<RawComment *> Comments; in ReadComments()
9184 RawComment::CommentKind Kind = in ReadComments()
9185 (RawComment::CommentKind) Record[Idx++]; in ReadComments()
9188 Comments.push_back(new (Context) RawComment( in ReadComments()
9197 llvm::sort(Comments, BeforeThanCompare<RawComment>(SourceMgr)); in ReadComments()
H A DASTWriter.cpp3257 ArrayRef<RawComment *> RawComments = Context->Comments.getComments(); in WriteComments()