Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A 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 …]
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()
450 const RawComment &Comment) const { in cacheRawCommentForDecl()
522 if (RawComment *const DocComment = in attachCommentsToJustParsedDecls()
[all …]
/netbsd-src/external/apache2/llvm/dist/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.h749 mutable llvm::DenseMap<const Decl *, const RawComment *> DeclRawComments;
777 const RawComment &Comment) const;
784 RawComment *getRawCommentForDeclNoCacheImpl(
786 const std::map<unsigned, RawComment *> &CommentsInFile) const;
790 RawComment *getRawCommentForDeclNoCache(const Decl *D) const;
793 void addComment(const RawComment &RC);
800 const RawComment *
/netbsd-src/external/apache2/llvm/dist/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 *
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp345 if (const RawComment *Comment = in getAssociatedRange()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSema.cpp2164 RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false); in ActOnComment()
2170 case RawComment::RCK_OrdinaryBCPL: in ActOnComment()
2173 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()
/netbsd-src/external/apache2/llvm/dist/clang/tools/c-index-test/
H A Dc-index-test.c691 CXString RawComment; in PrintCursorComments() local
696 RawComment = clang_Cursor_getRawCommentText(Cursor); in PrintCursorComments()
697 RawCommentCString = clang_getCString(RawComment); in PrintCursorComments()
708 clang_disposeString(RawComment); in PrintCursorComments()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Serialization/
H A DASTReader.cpp9047 std::vector<RawComment *> Comments; in ReadComments()
9092 RawComment::CommentKind Kind = in ReadComments()
9093 (RawComment::CommentKind) Record[Idx++]; in ReadComments()
9096 Comments.push_back(new (Context) RawComment( in ReadComments()
9103 llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> in ReadComments()
9105 for (RawComment *C : Comments) { in ReadComments()
H A DASTWriter.cpp2973 const RawComment *I = OC.second; in WriteComments()
/netbsd-src/external/apache2/llvm/dist/clang/tools/libclang/
H A DCIndex.cpp8384 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getCommentRange()
8397 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getRawCommentText()
8412 const RawComment *RC = Context.getRawCommentForAnyRedecl(D); in clang_Cursor_getBriefCommentText()