clang-tools
7.0.0
|
Namespaces | |
serialize | |
Classes | |
struct | BitCodeConstants |
struct | BlockIdToIndexFunctor |
class | ClangDocBitcodeReader |
class | ClangDocBitcodeWriter |
struct | ClangDocContext |
struct | CommentInfo |
struct | EnumInfo |
struct | FieldTypeInfo |
struct | FunctionInfo |
class | Generator |
struct | Info |
A base struct for Infos. More... | |
struct | Location |
class | MapASTVisitor |
class | MapperActionFactory |
struct | MemberTypeInfo |
struct | NamespaceInfo |
struct | RecordIdDsc |
struct | RecordIdToIndexFunctor |
struct | RecordInfo |
struct | Reference |
struct | SymbolInfo |
struct | TypeInfo |
class | YAMLGenerator |
Generator for YAML documentation. More... | |
Typedefs | |
using | Record = llvm::SmallVector< uint64_t, 1024 > |
using | AbbrevDsc = void(*)(std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev) |
typedef llvm::Registry< Generator > | GeneratorRegistry |
using | SymbolID = std::array< uint8_t, 20 > |
Functions | |
bool | decodeRecord (Record R, llvm::SmallVectorImpl< char > &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, SymbolID &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, bool &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, int &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, AccessSpecifier &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, TagTypeKind &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, llvm::Optional< Location > &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, InfoType &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, FieldId &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, llvm::SmallVectorImpl< llvm::SmallString< 16 >> &Field, llvm::StringRef Blob) |
bool | decodeRecord (Record R, llvm::SmallVectorImpl< Location > &Field, llvm::StringRef Blob) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, const unsigned VersionNo) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, NamespaceInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, RecordInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, EnumInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, FunctionInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, TypeInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, FieldTypeInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, MemberTypeInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, CommentInfo *I) |
bool | parseRecord (Record R, unsigned ID, llvm::StringRef Blob, Reference *I, FieldId &F) |
template<typename T > | |
CommentInfo * | getCommentInfo (T I) |
template<> | |
CommentInfo * | getCommentInfo (FunctionInfo *I) |
template<> | |
CommentInfo * | getCommentInfo (NamespaceInfo *I) |
template<> | |
CommentInfo * | getCommentInfo (RecordInfo *I) |
template<> | |
CommentInfo * | getCommentInfo (EnumInfo *I) |
template<> | |
CommentInfo * | getCommentInfo (CommentInfo *I) |
template<> | |
CommentInfo * | getCommentInfo (std::unique_ptr< CommentInfo > &I) |
template<typename T , typename TTypeInfo > | |
void | addTypeInfo (T I, TTypeInfo &&TI) |
template<> | |
void | addTypeInfo (RecordInfo *I, MemberTypeInfo &&T) |
template<> | |
void | addTypeInfo (FunctionInfo *I, TypeInfo &&T) |
template<> | |
void | addTypeInfo (FunctionInfo *I, FieldTypeInfo &&T) |
template<typename T > | |
void | addReference (T I, Reference &&R, FieldId F) |
template<> | |
void | addReference (TypeInfo *I, Reference &&R, FieldId F) |
template<> | |
void | addReference (FieldTypeInfo *I, Reference &&R, FieldId F) |
template<> | |
void | addReference (MemberTypeInfo *I, Reference &&R, FieldId F) |
template<> | |
void | addReference (EnumInfo *I, Reference &&R, FieldId F) |
template<> | |
void | addReference (NamespaceInfo *I, Reference &&R, FieldId F) |
template<> | |
void | addReference (FunctionInfo *I, Reference &&R, FieldId F) |
template<> | |
void | addReference (RecordInfo *I, Reference &&R, FieldId F) |
static void | AbbrevGen (std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev, const std::initializer_list< llvm::BitCodeAbbrevOp > Ops) |
static void | BoolAbbrev (std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev) |
static void | IntAbbrev (std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev) |
static void | SymbolIDAbbrev (std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev) |
static void | StringAbbrev (std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev) |
static void | LocationAbbrev (std::shared_ptr< llvm::BitCodeAbbrev > &Abbrev) |
std::unique_ptr< tooling::FrontendActionFactory > | newMapperActionFactory (ClangDocContext CDCtx) |
llvm::Expected< std::unique_ptr< Generator > > | findGeneratorByName (llvm::StringRef Format) |
template<typename T > | |
std::unique_ptr< Info > | reduce (std::vector< std::unique_ptr< Info >> &Values) |
llvm::Expected< std::unique_ptr< Info > > | mergeInfos (std::vector< std::unique_ptr< Info >> &Values) |
static GeneratorRegistry::Add< YAMLGenerator > | YAML (YAMLGenerator::Format, "Generator for YAML output.") |
Variables | |
static const SymbolID | EmptySID = SymbolID() |
static const llvm::IndexedMap< llvm::StringRef, BlockIdToIndexFunctor > | BlockIdNameMap |
static const llvm::IndexedMap< RecordIdDsc, RecordIdToIndexFunctor > | RecordIdNameMap |
static const std::vector< std::pair< BlockId, std::vector< RecordId > > > | RecordsByBlock |
static const unsigned | VersionNumber = 2 |
static constexpr unsigned | BlockIdCount = BI_LAST - BI_FIRST |
static constexpr unsigned | RecordIdCount = RI_LAST - RI_FIRST |
volatile int | YAMLGeneratorAnchorSource = 0 |
static int LLVM_ATTRIBUTE_UNUSED | YAMLGeneratorAnchorDest |
static const SymbolID | EmptySID = SymbolID() |
using clang::doc::AbbrevDsc = typedef void (*)(std::shared_ptr<llvm::BitCodeAbbrev> &Abbrev) |
Definition at line 32 of file BitcodeWriter.cpp.
typedef llvm::Registry<Generator> clang::doc::GeneratorRegistry |
Definition at line 33 of file Generators.h.
using clang::doc::Record = typedef llvm::SmallVector<uint64_t, 1024> |
Definition at line 18 of file BitcodeReader.cpp.
using clang::doc::SymbolID = typedef std::array<uint8_t, 20> |
Definition at line 31 of file Representation.h.
enum clang::doc::BlockId |
Definition at line 54 of file BitcodeWriter.h.
|
strong |
Enumerator | |
---|---|
F_default | |
F_namespace | |
F_parent | |
F_vparent | |
F_type |
Definition at line 118 of file BitcodeWriter.h.
|
strong |
Enumerator | |
---|---|
IT_default | |
IT_namespace | |
IT_record | |
IT_function | |
IT_enum |
Definition at line 34 of file Representation.h.
enum clang::doc::RecordId |
Definition at line 73 of file BitcodeWriter.h.
|
static |
Definition at line 34 of file BitcodeWriter.cpp.
Referenced by BoolAbbrev(), IntAbbrev(), LocationAbbrev(), StringAbbrev(), and SymbolIDAbbrev().
Definition at line 321 of file BitcodeReader.cpp.
Referenced by clang::doc::ClangDocBitcodeReader::readRecord().
Definition at line 326 of file BitcodeReader.cpp.
References F_type, and clang::doc::TypeInfo::Type.
void clang::doc::addReference | ( | FieldTypeInfo * | I, |
Reference && | R, | ||
FieldId | F | ||
) |
Definition at line 337 of file BitcodeReader.cpp.
References F_type, and clang::doc::TypeInfo::Type.
void clang::doc::addReference | ( | MemberTypeInfo * | I, |
Reference && | R, | ||
FieldId | F | ||
) |
Definition at line 348 of file BitcodeReader.cpp.
References F_type, and clang::doc::TypeInfo::Type.
Definition at line 359 of file BitcodeReader.cpp.
References F_namespace, and clang::doc::Info::Namespace.
void clang::doc::addReference | ( | NamespaceInfo * | I, |
Reference && | R, | ||
FieldId | F | ||
) |
Definition at line 370 of file BitcodeReader.cpp.
References F_namespace, and clang::doc::Info::Namespace.
void clang::doc::addReference | ( | FunctionInfo * | I, |
Reference && | R, | ||
FieldId | F | ||
) |
Definition at line 381 of file BitcodeReader.cpp.
References F_namespace, F_parent, clang::doc::Info::Namespace, and clang::doc::FunctionInfo::Parent.
void clang::doc::addReference | ( | RecordInfo * | I, |
Reference && | R, | ||
FieldId | F | ||
) |
Definition at line 395 of file BitcodeReader.cpp.
References F_namespace, F_parent, F_vparent, clang::doc::Info::Namespace, clang::doc::RecordInfo::Parents, parseRecord(), and clang::doc::RecordInfo::VirtualParents.
void clang::doc::addTypeInfo | ( | T | I, |
TTypeInfo && | TI | ||
) |
Definition at line 304 of file BitcodeReader.cpp.
Referenced by clang::doc::ClangDocBitcodeReader::readRecord().
void clang::doc::addTypeInfo | ( | RecordInfo * | I, |
MemberTypeInfo && | T | ||
) |
Definition at line 309 of file BitcodeReader.cpp.
References clang::doc::RecordInfo::Members.
void clang::doc::addTypeInfo | ( | FunctionInfo * | I, |
TypeInfo && | T | ||
) |
Definition at line 313 of file BitcodeReader.cpp.
References clang::doc::FunctionInfo::ReturnType.
void clang::doc::addTypeInfo | ( | FunctionInfo * | I, |
FieldTypeInfo && | T | ||
) |
Definition at line 317 of file BitcodeReader.cpp.
References clang::doc::FunctionInfo::Params.
|
static |
Definition at line 40 of file BitcodeWriter.cpp.
References AbbrevGen(), and clang::doc::BitCodeConstants::BoolSize.
bool clang::doc::decodeRecord | ( | Record | R, |
llvm::SmallVectorImpl< char > & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 20 of file BitcodeReader.cpp.
Referenced by parseRecord().
Definition at line 26 of file BitcodeReader.cpp.
References clang::doc::BitCodeConstants::USRHashSize.
bool clang::doc::decodeRecord | ( | Record | R, |
bool & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 37 of file BitcodeReader.cpp.
bool clang::doc::decodeRecord | ( | Record | R, |
int & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 42 of file BitcodeReader.cpp.
bool clang::doc::decodeRecord | ( | Record | R, |
AccessSpecifier & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 49 of file BitcodeReader.cpp.
bool clang::doc::decodeRecord | ( | Record | R, |
TagTypeKind & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 62 of file BitcodeReader.cpp.
bool clang::doc::decodeRecord | ( | Record | R, |
llvm::Optional< Location > & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 76 of file BitcodeReader.cpp.
Definition at line 84 of file BitcodeReader.cpp.
References IT_default, IT_enum, IT_function, IT_namespace, and IT_record.
Definition at line 97 of file BitcodeReader.cpp.
References F_default, F_namespace, F_parent, F_type, and F_vparent.
bool clang::doc::decodeRecord | ( | Record | R, |
llvm::SmallVectorImpl< llvm::SmallString< 16 >> & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 110 of file BitcodeReader.cpp.
bool clang::doc::decodeRecord | ( | Record | R, |
llvm::SmallVectorImpl< Location > & | Field, | ||
llvm::StringRef | Blob | ||
) |
Definition at line 116 of file BitcodeReader.cpp.
llvm::Expected< std::unique_ptr< Generator > > clang::doc::findGeneratorByName | ( | llvm::StringRef | Format | ) |
Definition at line 18 of file Generators.cpp.
References YAMLGeneratorAnchorSource.
Referenced by main().
CommentInfo* clang::doc::getCommentInfo | ( | T | I | ) |
Definition at line 269 of file BitcodeReader.cpp.
Referenced by getCommentInfo(), and clang::doc::ClangDocBitcodeReader::readRecord().
CommentInfo* clang::doc::getCommentInfo | ( | FunctionInfo * | I | ) |
Definition at line 274 of file BitcodeReader.cpp.
References clang::doc::Info::Description.
CommentInfo* clang::doc::getCommentInfo | ( | NamespaceInfo * | I | ) |
Definition at line 279 of file BitcodeReader.cpp.
References clang::doc::Info::Description.
CommentInfo* clang::doc::getCommentInfo | ( | RecordInfo * | I | ) |
Definition at line 284 of file BitcodeReader.cpp.
References clang::doc::Info::Description.
CommentInfo* clang::doc::getCommentInfo | ( | EnumInfo * | I | ) |
Definition at line 289 of file BitcodeReader.cpp.
References clang::doc::Info::Description.
CommentInfo* clang::doc::getCommentInfo | ( | CommentInfo * | I | ) |
Definition at line 294 of file BitcodeReader.cpp.
References clang::doc::CommentInfo::Children.
CommentInfo* clang::doc::getCommentInfo | ( | std::unique_ptr< CommentInfo > & | I | ) |
Definition at line 299 of file BitcodeReader.cpp.
References getCommentInfo().
|
static |
Definition at line 47 of file BitcodeWriter.cpp.
References AbbrevGen(), and clang::doc::BitCodeConstants::IntSize.
|
static |
Definition at line 75 of file BitcodeWriter.cpp.
References AbbrevGen(), clang::doc::BitCodeConstants::LineNumberSize, and clang::doc::BitCodeConstants::StringLengthSize.
llvm::Expected< std::unique_ptr< Info > > clang::doc::mergeInfos | ( | std::vector< std::unique_ptr< Info >> & | Values | ) |
Definition at line 42 of file Representation.cpp.
References IT_enum, IT_function, IT_namespace, and IT_record.
Referenced by main().
std::unique_ptr< tooling::FrontendActionFactory > clang::doc::newMapperActionFactory | ( | ClangDocContext | CDCtx | ) |
Definition at line 57 of file ClangDoc.cpp.
Referenced by main().
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
const unsigned | VersionNo | ||
) |
Definition at line 124 of file BitcodeReader.cpp.
References VERSION.
Referenced by addReference(), and clang::doc::ClangDocBitcodeReader::readRecord().
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
NamespaceInfo * | I | ||
) |
Definition at line 131 of file BitcodeReader.cpp.
References decodeRecord(), clang::doc::Info::Name, and clang::doc::Info::USR.
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
RecordInfo * | I | ||
) |
Definition at line 143 of file BitcodeReader.cpp.
References decodeRecord(), clang::doc::SymbolInfo::DefLoc, clang::doc::SymbolInfo::Loc, clang::doc::Info::Name, RECORD_DEFLOCATION, RECORD_LOCATION, RECORD_TAG_TYPE, clang::doc::RecordInfo::TagType, and clang::doc::Info::USR.
Definition at line 160 of file BitcodeReader.cpp.
References decodeRecord(), clang::doc::SymbolInfo::DefLoc, ENUM_DEFLOCATION, ENUM_LOCATION, ENUM_MEMBER, ENUM_SCOPED, clang::doc::SymbolInfo::Loc, clang::doc::EnumInfo::Members, clang::doc::Info::Name, clang::doc::EnumInfo::Scoped, and clang::doc::Info::USR.
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
FunctionInfo * | I | ||
) |
Definition at line 179 of file BitcodeReader.cpp.
References clang::doc::FunctionInfo::Access, decodeRecord(), clang::doc::SymbolInfo::DefLoc, FUNCTION_ACCESS, FUNCTION_DEFLOCATION, FUNCTION_IS_METHOD, FUNCTION_LOCATION, clang::doc::FunctionInfo::IsMethod, clang::doc::SymbolInfo::Loc, clang::doc::Info::Name, and clang::doc::Info::USR.
Definition at line 198 of file BitcodeReader.cpp.
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
FieldTypeInfo * | I | ||
) |
Definition at line 202 of file BitcodeReader.cpp.
References decodeRecord(), FIELD_TYPE_NAME, and clang::doc::FieldTypeInfo::Name.
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
MemberTypeInfo * | I | ||
) |
Definition at line 212 of file BitcodeReader.cpp.
References clang::doc::MemberTypeInfo::Access, decodeRecord(), MEMBER_TYPE_ACCESS, MEMBER_TYPE_NAME, and clang::doc::FieldTypeInfo::Name.
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
CommentInfo * | I | ||
) |
Definition at line 224 of file BitcodeReader.cpp.
References clang::doc::CommentInfo::Args, clang::doc::CommentInfo::AttrKeys, clang::doc::CommentInfo::AttrValues, clang::doc::CommentInfo::CloseName, COMMENT_ARG, COMMENT_ATTRKEY, COMMENT_ATTRVAL, COMMENT_CLOSENAME, COMMENT_DIRECTION, COMMENT_EXPLICIT, COMMENT_KIND, COMMENT_NAME, COMMENT_PARAMNAME, COMMENT_SELFCLOSING, COMMENT_TEXT, decodeRecord(), clang::doc::CommentInfo::Direction, clang::doc::CommentInfo::Explicit, clang::doc::CommentInfo::Kind, clang::doc::CommentInfo::Name, clang::doc::CommentInfo::ParamName, clang::doc::CommentInfo::SelfClosing, and clang::doc::CommentInfo::Text.
bool clang::doc::parseRecord | ( | Record | R, |
unsigned | ID, | ||
llvm::StringRef | Blob, | ||
Reference * | I, | ||
FieldId & | F | ||
) |
Definition at line 253 of file BitcodeReader.cpp.
References decodeRecord(), clang::doc::Reference::Name, REFERENCE_FIELD, REFERENCE_NAME, REFERENCE_TYPE, REFERENCE_USR, clang::doc::Reference::RefType, and clang::doc::Reference::USR.
std::unique_ptr<Info> clang::doc::reduce | ( | std::vector< std::unique_ptr< Info >> & | Values | ) |
Definition at line 32 of file Representation.cpp.
|
static |
Definition at line 65 of file BitcodeWriter.cpp.
References AbbrevGen(), and clang::doc::BitCodeConstants::StringLengthSize.
|
static |
Definition at line 54 of file BitcodeWriter.cpp.
References AbbrevGen(), clang::doc::BitCodeConstants::USRBitLengthSize, and clang::doc::BitCodeConstants::USRLengthSize.
|
static |
Referenced by clang::tidy::exportReplacements(), and clang::doc::YAMLGenerator::generateDocForInfo().
Definition at line 112 of file BitcodeWriter.h.
|
static |
Definition at line 103 of file BitcodeWriter.cpp.
Definition at line 18 of file BitcodeWriter.cpp.
Definition at line 29 of file Representation.cpp.
Definition at line 113 of file BitcodeWriter.h.
|
static |
Definition at line 128 of file BitcodeWriter.cpp.
Definition at line 183 of file BitcodeWriter.cpp.
|
static |
Definition at line 34 of file BitcodeWriter.h.
Referenced by clang::doc::ClangDocBitcodeReader::readBitcode().
|
static |
Definition at line 32 of file Generators.cpp.
volatile int clang::doc::YAMLGeneratorAnchorSource = 0 |
Definition at line 265 of file YAMLGenerator.cpp.
Referenced by findGeneratorByName().