Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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()
106 (K == RawComment::RCK_OrdinaryC); in isOrdinaryKind()
109 RawComment::RawComment(const SourceManager &SourceMgr, SourceRange SR, in RawComment() function in RawComment
293 new (Allocator) RawComment(RC); in addComment()
298 const RawComment &C2 = RC; in addComment()
324 new (Allocator) RawComment(RC); in addComment()
[all …]
H A DASTContext.cpp200 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl( in getRawCommentForDeclNoCacheImpl()
202 const std::map<unsigned, RawComment *> &CommentsInTheFile) const { in getRawCommentForDeclNoCacheImpl()
224 RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second; in getRawCommentForDeclNoCacheImpl()
247 RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second; in getRawCommentForDeclNoCacheImpl()
278 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const { in getRawCommentForDeclNoCache()
302 void ASTContext::addComment(const RawComment &RC) { in addComment()
378 const RawComment *ASTContext::getRawCommentForAnyRedecl( in getRawCommentForAnyRedecl()
434 const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl); in getRawCommentForAnyRedecl()
522 if (RawComment *const DocComment = in attachCommentsToJustParsedDecls()
547 const RawComment *RC = getRawCommentForDeclNoCache(D); in getLocalCommentForDeclUncached()
[all …]
/freebsd-13.1/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,
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 …]
H A DASTContext.h774 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments;
802 const RawComment &Comment) const;
809 RawComment *getRawCommentForDeclNoCacheImpl(
811 const std::map<unsigned, RawComment *> &CommentsInFile) const;
815 RawComment *getRawCommentForDeclNoCache(const Decl *D) const;
818 void addComment(const RawComment &RC);
825 const RawComment *
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Sema/
H A DCodeCompleteConsumer.h48 class RawComment; variable
1154 const RawComment *getCompletionComment(const ASTContext &Ctx,
1159 const RawComment *getPatternCompletionComment(const ASTContext &Ctx,
1164 const RawComment *
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp345 if (const RawComment *Comment = in getAssociatedRange()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSema.cpp2234 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment()
2240 case RawComment::RCK_OrdinaryBCPL: in ActOnComment()
2243 case RawComment::RCK_OrdinaryC: in ActOnComment()
H A DSemaCodeComplete.cpp3356 if (const RawComment *RC = in CreateCodeCompletionString()
3435 if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) { in createCodeCompletionStringForDecl()
3640 const RawComment *clang::getCompletionComment(const ASTContext &Ctx, in getCompletionComment()
3658 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx, in getPatternCompletionComment()
3681 const RawComment *clang::getParameterComment( in getParameterComment()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTReader.cpp9076 std::vector<RawComment *> Comments; in ReadComments()
9121 RawComment::CommentKind Kind = in ReadComments()
9122 (RawComment::CommentKind) Record[Idx++]; in ReadComments()
9125 Comments.push_back(new (Context) RawComment( in ReadComments()
9132 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments()
9134 for (RawComment *C : Comments) { in ReadComments()
H A DASTWriter.cpp2973 const RawComment *I = OC.second; in WriteComments()