clang-tools
10.0.0
|
Classes | |
class | ClangDocCommentVisitor |
Functions | |
SymbolID | hashUSR (llvm::StringRef USR) |
template<typename T > | |
static void | populateParentNamespaces (llvm::SmallVector< Reference, 4 > &Namespaces, const T *D, bool &IsAnonymousNamespace) |
llvm::SmallString< 128 > | getInfoRelativePath (const llvm::SmallVectorImpl< doc::Reference > &Namespaces) |
llvm::SmallString< 128 > | getInfoRelativePath (const Decl *D) |
template<typename T > | |
static std::string | serialize (T &I) |
std::string | serialize (std::unique_ptr< Info > &I) |
static void | parseFullComment (const FullComment *C, CommentInfo &CI) |
static SymbolID | getUSRForDecl (const Decl *D) |
static RecordDecl * | getDeclForType (const QualType &T) |
static bool | isPublic (const clang::AccessSpecifier AS, const clang::Linkage Link) |
static bool | shouldSerializeInfo (bool PublicOnly, bool IsInAnonymousNamespace, const NamedDecl *D) |
static AccessSpecifier | getFinalAccessSpecifier (AccessSpecifier FirstAS, AccessSpecifier SecondAS) |
static void | parseFields (RecordInfo &I, const RecordDecl *D, bool PublicOnly, AccessSpecifier Access=AccessSpecifier::AS_public) |
static void | parseEnumerators (EnumInfo &I, const EnumDecl *D) |
static void | parseParameters (FunctionInfo &I, const FunctionDecl *D) |
static void | parseBases (RecordInfo &I, const CXXRecordDecl *D) |
template<typename T > | |
static void | populateInfo (Info &I, const T *D, const FullComment *C, bool &IsInAnonymousNamespace) |
template<typename T > | |
static void | populateSymbolInfo (SymbolInfo &I, const T *D, const FullComment *C, int LineNumber, StringRef Filename, bool IsFileInRootDir, bool &IsInAnonymousNamespace) |
static void | populateFunctionInfo (FunctionInfo &I, const FunctionDecl *D, const FullComment *FC, int LineNumber, StringRef Filename, bool IsFileInRootDir, bool &IsInAnonymousNamespace) |
static void | parseBases (RecordInfo &I, const CXXRecordDecl *D, bool IsFileInRootDir, bool PublicOnly, bool IsParent, AccessSpecifier ParentAccess=AccessSpecifier::AS_public) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const NamespaceDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const RecordDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const FunctionDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const CXXMethodDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const EnumDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const NamespaceDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const RecordDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const EnumDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const FunctionDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const CXXMethodDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool IsFileInRootDir, bool PublicOnly) |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const NamespaceDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const RecordDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const EnumDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const FunctionDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const CXXMethodDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const NamespaceDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
llvm::StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
Definition at line 491 of file Serialize.cpp.
References getInfoRelativePath(), clang::doc::IT_namespace, populateInfo(), and shouldSerializeInfo().
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const RecordDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
llvm::StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
Definition at line 517 of file Serialize.cpp.
References getInfoRelativePath(), clang::doc::IT_namespace, clang::doc::IT_record, parseBases(), parseFields(), populateSymbolInfo(), and shouldSerializeInfo().
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const FunctionDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
llvm::StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
Definition at line 562 of file Serialize.cpp.
References clang::doc::FunctionInfo::Access, getInfoRelativePath(), clang::doc::Info::Namespace, populateFunctionInfo(), and shouldSerializeInfo().
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const CXXMethodDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
llvm::StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
Definition at line 586 of file Serialize.cpp.
References clang::doc::FunctionInfo::Access, getUSRForDecl(), clang::doc::FunctionInfo::IsMethod, clang::doc::IT_record, Parent, clang::doc::FunctionInfo::Parent, populateFunctionInfo(), and shouldSerializeInfo().
std::pair<std::unique_ptr<Info>, std::unique_ptr<Info> > clang::doc::serialize::emitInfo | ( | const EnumDecl * | D, |
const FullComment * | FC, | ||
int | LineNumber, | ||
llvm::StringRef | File, | ||
bool | IsFileInRootDir, | ||
bool | PublicOnly | ||
) |
Definition at line 618 of file Serialize.cpp.
References getInfoRelativePath(), clang::doc::IT_namespace, clang::doc::IT_record, clang::doc::Info::Namespace, parseEnumerators(), populateSymbolInfo(), clang::doc::EnumInfo::Scoped, and shouldSerializeInfo().
|
static |
Definition at line 217 of file Serialize.cpp.
Referenced by parseBases(), parseParameters(), and populateFunctionInfo().
|
static |
Definition at line 258 of file Serialize.cpp.
Referenced by parseBases().
llvm::SmallString<128> clang::doc::serialize::getInfoRelativePath | ( | const llvm::SmallVectorImpl< doc::Reference > & | Namespaces | ) |
Definition at line 46 of file Serialize.cpp.
Referenced by emitInfo(), getInfoRelativePath(), parseBases(), parseParameters(), and populateFunctionInfo().
llvm::SmallString<128> clang::doc::serialize::getInfoRelativePath | ( | const Decl * | D | ) |
Definition at line 53 of file Serialize.cpp.
References getInfoRelativePath(), and populateParentNamespaces().
Definition at line 210 of file Serialize.cpp.
References hashUSR().
Referenced by emitInfo(), parseBases(), parseParameters(), populateFunctionInfo(), populateInfo(), and populateParentNamespaces().
SymbolID clang::doc::serialize::hashUSR | ( | llvm::StringRef | USR | ) |
Definition at line 23 of file Serialize.cpp.
References populateParentNamespaces().
Referenced by getUSRForDecl().
|
static |
Definition at line 223 of file Serialize.cpp.
Referenced by shouldSerializeInfo().
|
static |
Definition at line 329 of file Serialize.cpp.
References getDeclForType(), getInfoRelativePath(), getUSRForDecl(), clang::doc::IT_record, clang::doc::RecordInfo::Parents, and clang::doc::RecordInfo::VirtualParents.
Referenced by emitInfo(), and parseBases().
|
static |
Definition at line 435 of file Serialize.cpp.
References clang::doc::FunctionInfo::Access, clang::doc::BaseRecordInfo::Access, Base, clang::doc::RecordInfo::Bases, clang::doc::RecordInfo::ChildFunctions, Decl, getFinalAccessSpecifier(), getInfoRelativePath(), getUSRForDecl(), clang::doc::FunctionInfo::IsMethod, clang::doc::MD(), clang::doc::Info::Name, parseBases(), parseFields(), populateFunctionInfo(), and clang::doc::Info::USR.
|
static |
Definition at line 302 of file Serialize.cpp.
References E, and clang::doc::EnumInfo::Members.
Referenced by emitInfo().
|
static |
Definition at line 274 of file Serialize.cpp.
Referenced by emitInfo(), and parseBases().
|
static |
Definition at line 205 of file Serialize.cpp.
References clang::doc::serialize::ClangDocCommentVisitor::parseComment().
Referenced by populateInfo().
|
static |
Definition at line 307 of file Serialize.cpp.
References getDeclForType(), getInfoRelativePath(), getUSRForDecl(), clang::doc::IT_enum, clang::doc::IT_record, and clang::doc::FunctionInfo::Params.
Referenced by populateFunctionInfo().
|
static |
Definition at line 415 of file Serialize.cpp.
References getDeclForType(), getInfoRelativePath(), getUSRForDecl(), clang::doc::IT_enum, clang::doc::IT_record, parseParameters(), populateSymbolInfo(), clang::doc::FunctionInfo::ReturnType, and TypeInfo.
Referenced by emitInfo(), and parseBases().
|
static |
Definition at line 392 of file Serialize.cpp.
References clang::doc::Info::Description, getUSRForDecl(), clang::doc::Info::Name, clang::doc::Info::Namespace, parseFullComment(), populateParentNamespaces(), and clang::doc::Info::USR.
Referenced by emitInfo(), and populateSymbolInfo().
|
static |
Definition at line 358 of file Serialize.cpp.
References getUSRForDecl(), clang::doc::IT_enum, clang::doc::IT_function, clang::doc::IT_namespace, and clang::doc::IT_record.
Referenced by getInfoRelativePath(), hashUSR(), and populateInfo().
|
static |
Definition at line 404 of file Serialize.cpp.
References clang::doc::SymbolInfo::DefLoc, clang::doc::SymbolInfo::Loc, and populateInfo().
Referenced by emitInfo(), and populateFunctionInfo().
|
static |
Definition at line 182 of file Serialize.cpp.
References clang::doc::ClangDocBitcodeWriter::emitBlock().
Referenced by serialize().
std::string clang::doc::serialize::serialize | ( | std::unique_ptr< Info > & | I | ) |
Definition at line 190 of file Serialize.cpp.
References clang::doc::IT_enum, clang::doc::IT_function, clang::doc::IT_namespace, clang::doc::IT_record, and serialize().
|
static |