reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/Sema/CodeCompleteConsumer.h
   48 class RawComment;

References

include/llvm/ADT/DenseMapInfo.h
   39   static inline T* getEmptyKey() {
   41     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   45   static inline T* getTombstoneKey() {
   47     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   51   static unsigned getHashValue(const T *PtrVal) {
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
tools/clang/include/clang/AST/ASTContext.h
  749   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;
  797   void addComment(const RawComment &RC) {
  808   const RawComment *
tools/clang/include/clang/AST/RawCommentList.h
  184   bool operator()(const RawComment &LHS, const RawComment &RHS) {
  184   bool operator()(const RawComment &LHS, const RawComment &RHS) {
  188   bool operator()(const RawComment *LHS, const RawComment *RHS) {
  188   bool operator()(const RawComment *LHS, const RawComment *RHS) {
  199   void addComment(const RawComment &RC, const CommentOptions &CommentOpts,
  204   const std::map<unsigned, RawComment *> *getCommentsInFile(FileID File) const;
  208   unsigned getCommentBeginLine(RawComment *C, FileID File,
  210   unsigned getCommentEndOffset(RawComment *C) const;
  215   llvm::DenseMap<FileID, std::map<unsigned, RawComment *>> OrderedComments;
  216   mutable llvm::DenseMap<RawComment *, unsigned> CommentBeginLine;
  217   mutable llvm::DenseMap<RawComment *, unsigned> CommentEndOffset;
tools/clang/include/clang/Sema/CodeCompleteConsumer.h
 1157 const RawComment *getCompletionComment(const ASTContext &Ctx,
 1162 const RawComment *getPatternCompletionComment(const ASTContext &Ctx,
 1167 const RawComment *
tools/clang/lib/AST/ASTContext.cpp
  193 RawComment *ASTContext::getRawCommentForDeclNoCacheImpl(
  195     const std::map<unsigned, RawComment *> &CommentsInTheFile) const {
  217     RawComment *CommentBehindDecl = OffsetCommentBehindDecl->second;
  240   RawComment *CommentBeforeDecl = OffsetCommentBeforeDecl->second;
  271 RawComment *ASTContext::getRawCommentForDeclNoCache(const Decl *D) const {
  365 const RawComment *ASTContext::getRawCommentForAnyRedecl(
  421     const RawComment *RedeclComment = getRawCommentForDeclNoCache(Redecl);
  437                                         const RawComment &Comment) const {
  499     if (RawComment *const DocComment =
  524   const RawComment *RC = getRawCommentForDeclNoCache(D);
  550   const RawComment *RC = getRawCommentForAnyRedecl(D, &OriginalDecl);
tools/clang/lib/AST/RawCommentList.cpp
   24 std::pair<RawComment::CommentKind, bool> getCommentKind(StringRef Comment,
   28     return std::make_pair(RawComment::RCK_Invalid, false);
   30   RawComment::CommentKind K;
   33       return std::make_pair(RawComment::RCK_OrdinaryBCPL, false);
   36       K = RawComment::RCK_BCPLSlash;
   38       K = RawComment::RCK_BCPLExcl;
   40       return std::make_pair(RawComment::RCK_OrdinaryBCPL, false);
   49       return std::make_pair(RawComment::RCK_Invalid, false);
   52       K = RawComment::RCK_JavaDoc;
   54       K = RawComment::RCK_Qt;
   56       return std::make_pair(RawComment::RCK_OrdinaryC, false);
   68 bool commentsStartOnSameColumn(const SourceManager &SM, const RawComment &R1,
   69                                const RawComment &R2) {
  103 static bool isOrdinaryKind(RawComment::CommentKind K) {
  104   return (K == RawComment::RCK_OrdinaryBCPL) ||
  105          (K == RawComment::RCK_OrdinaryC);
  272 void RawCommentList::addComment(const RawComment &RC,
  292         new (Allocator) RawComment(RC);
  296   const RawComment &C1 = *OrderedComments[CommentFile].rbegin()->second;
  297   const RawComment &C2 = RC;
  323         new (Allocator) RawComment(RC);
  327 const std::map<unsigned, RawComment *> *
  338 unsigned RawCommentList::getCommentBeginLine(RawComment *C, FileID File,
  348 unsigned RawCommentList::getCommentEndOffset(RawComment *C) const {
tools/clang/lib/Sema/Sema.cpp
 1881   RawComment RC(SourceMgr, Comment, LangOpts.CommentOpts, false);
 1887     case RawComment::RCK_OrdinaryBCPL:
 1890     case RawComment::RCK_OrdinaryC:
tools/clang/lib/Sema/SemaCodeComplete.cpp
 3272       if (const RawComment *RC =
 3339     if (const RawComment *RC = getCompletionComment(Ctx, Declaration)) {
 3530 const RawComment *clang::getCompletionComment(const ASTContext &Ctx,
 3548 const RawComment *clang::getPatternCompletionComment(const ASTContext &Ctx,
 3571 const RawComment *clang::getParameterComment(
tools/clang/lib/Serialization/ASTReader.cpp
 9742   std::vector<RawComment *> Comments;
 9787         RawComment::CommentKind Kind =
 9791         Comments.push_back(new (Context) RawComment(
 9798     llvm::DenseMap<FileID, std::map<unsigned, RawComment *>>
 9800     for (RawComment *C : Comments) {
tools/clang/lib/Serialization/ASTWriter.cpp
 3312       const RawComment *I = OC.second;
tools/clang/tools/extra/clang-doc/Mapper.cpp
   78   RawComment *Comment = Context.getRawCommentForDeclNoCache(D);
tools/clang/tools/extra/clang-move/Move.cpp
  316   if (const auto *Comment = D->getASTContext().getRawCommentForDeclNoCache(D)) {
tools/clang/tools/extra/clangd/CodeCompletionStrings.cpp
   81   const RawComment *RC = getCompletionComment(Ctx, &Decl);
tools/clang/tools/extra/unittests/clang-doc/SerializeTest.cpp
   26     if (RawComment *Comment =
tools/clang/tools/libclang/CIndex.cpp
 8223   const RawComment *RC = Context.getRawCommentForAnyRedecl(D);
 8236   const RawComment *RC = Context.getRawCommentForAnyRedecl(D);
 8251   const RawComment *RC = Context.getRawCommentForAnyRedecl(D);
tools/clang/unittests/AST/CommentTextTest.cpp
   45     RawComment Comment(SourceMgr, CommentRange, EmptyOpts, /*Merged=*/true);
usr/include/c++/7.4.0/type_traits
 1983     { typedef _Up     type; };