clang-tools
9.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 void | parseFields (RecordInfo &I, const RecordDecl *D, bool PublicOnly) |
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 &IsInAnonymousNamespace) |
static void | populateFunctionInfo (FunctionInfo &I, const FunctionDecl *D, const FullComment *FC, int LineNumber, StringRef Filename, bool &IsInAnonymousNamespace) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const NamespaceDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, 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 PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const FunctionDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, 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 PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const EnumDecl *D, const FullComment *FC, int LineNumber, llvm::StringRef File, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const NamespaceDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const RecordDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const EnumDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const FunctionDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool PublicOnly) |
std::pair< std::unique_ptr< Info >, std::unique_ptr< Info > > | emitInfo (const CXXMethodDecl *D, const FullComment *FC, int LineNumber, StringRef File, 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 | 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 | 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 | 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 | 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 | 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 | PublicOnly | ||
) |
Definition at line 379 of file Serialize.cpp.
References getInfoRelativePath(), isPublic(), clang::doc::IT_namespace, and populateInfo().
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 | PublicOnly | ||
) |
Definition at line 405 of file Serialize.cpp.
References getInfoRelativePath(), isPublic(), clang::doc::IT_namespace, clang::doc::IT_record, parseBases(), parseFields(), and populateSymbolInfo().
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 | PublicOnly | ||
) |
Definition at line 455 of file Serialize.cpp.
References clang::doc::FunctionInfo::Access, getInfoRelativePath(), isPublic(), clang::doc::Info::Namespace, and populateFunctionInfo().
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 | PublicOnly | ||
) |
Definition at line 480 of file Serialize.cpp.
References clang::doc::FunctionInfo::Access, getInfoRelativePath(), getUSRForDecl(), clang::doc::FunctionInfo::IsMethod, isPublic(), clang::doc::IT_record, clang::doc::Info::Namespace, clang::doc::FunctionInfo::Parent, and populateFunctionInfo().
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 | PublicOnly | ||
) |
Definition at line 514 of file Serialize.cpp.
References getInfoRelativePath(), isPublic(), clang::doc::IT_namespace, clang::doc::IT_record, clang::doc::Info::Namespace, parseEnumerators(), populateSymbolInfo(), and clang::doc::EnumInfo::Scoped.
|
static |
Definition at line 218 of file Serialize.cpp.
Referenced by parseBases(), parseParameters(), and populateFunctionInfo().
llvm::SmallString<128> clang::doc::serialize::getInfoRelativePath | ( | const llvm::SmallVectorImpl< doc::Reference > & | Namespaces | ) |
Definition at line 46 of file Serialize.cpp.
References Path.
Referenced by emitInfo(), getInfoRelativePath(), parseBases(), parseParameters(), and populateFunctionInfo().
llvm::SmallString<128> clang::doc::serialize::getInfoRelativePath | ( | const Decl * | D | ) |
Definition at line 54 of file Serialize.cpp.
References getInfoRelativePath(), and populateParentNamespaces().
|
static |
Definition at line 211 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 D, and populateParentNamespaces().
Referenced by getUSRForDecl().
|
static |
Definition at line 224 of file Serialize.cpp.
Referenced by emitInfo().
|
static |
Definition at line 283 of file Serialize.cpp.
References getDeclForType(), getInfoRelativePath(), getUSRForDecl(), clang::doc::IT_record, clang::doc::RecordInfo::Parents, and clang::doc::RecordInfo::VirtualParents.
Referenced by emitInfo().
|
static |
Definition at line 258 of file Serialize.cpp.
References clang::doc::EnumInfo::Members.
Referenced by emitInfo().
|
static |
Definition at line 234 of file Serialize.cpp.
Referenced by emitInfo().
|
static |
Definition at line 206 of file Serialize.cpp.
References clang::doc::serialize::ClangDocCommentVisitor::parseComment().
Referenced by populateInfo().
|
static |
Definition at line 263 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 360 of file Serialize.cpp.
References getDeclForType(), getInfoRelativePath(), getUSRForDecl(), clang::doc::IT_enum, clang::doc::IT_record, parseParameters(), populateSymbolInfo(), and clang::doc::FunctionInfo::ReturnType.
Referenced by emitInfo().
|
static |
Definition at line 338 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 312 of file Serialize.cpp.
References D, 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 350 of file Serialize.cpp.
References clang::doc::SymbolInfo::DefLoc, clang::doc::SymbolInfo::Loc, and populateInfo().
Referenced by emitInfo(), and populateFunctionInfo().
|
static |
Definition at line 183 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 191 of file Serialize.cpp.
References clang::doc::IT_enum, clang::doc::IT_function, clang::doc::IT_namespace, clang::doc::IT_record, and serialize().