clang-tools 20.0.0git
|
#include <BitcodeWriter.h>
Public Member Functions | |
ClangDocBitcodeWriter (llvm::BitstreamWriter &Stream) | |
bool | dispatchInfoForWrite (Info *I) |
void | emitBlock (const NamespaceInfo &I) |
void | emitBlock (const RecordInfo &I) |
void | emitBlock (const BaseRecordInfo &I) |
void | emitBlock (const FunctionInfo &I) |
void | emitBlock (const EnumInfo &I) |
void | emitBlock (const EnumValueInfo &I) |
void | emitBlock (const TypeInfo &B) |
void | emitBlock (const TypedefInfo &B) |
void | emitBlock (const FieldTypeInfo &B) |
void | emitBlock (const MemberTypeInfo &T) |
void | emitBlock (const CommentInfo &B) |
void | emitBlock (const TemplateInfo &T) |
void | emitBlock (const TemplateSpecializationInfo &T) |
void | emitBlock (const TemplateParamInfo &T) |
void | emitBlock (const Reference &B, FieldId F) |
Definition at line 154 of file BitcodeWriter.h.
|
inline |
Definition at line 156 of file BitcodeWriter.h.
bool clang::doc::ClangDocBitcodeWriter::dispatchInfoForWrite | ( | Info * | I | ) |
Definition at line 635 of file BitcodeWriter.cpp.
References emitBlock(), clang::doc::Info::IT, clang::doc::IT_enum, clang::doc::IT_function, clang::doc::IT_namespace, clang::doc::IT_record, and clang::doc::IT_typedef.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const BaseRecordInfo & | I | ) |
Definition at line 578 of file BitcodeWriter.cpp.
References clang::doc::BaseRecordInfo::Access, clang::doc::BASE_RECORD_ACCESS, clang::doc::BASE_RECORD_IS_PARENT, clang::doc::BASE_RECORD_IS_VIRTUAL, clang::doc::BASE_RECORD_NAME, clang::doc::BASE_RECORD_PATH, clang::doc::BASE_RECORD_TAG_TYPE, clang::doc::BASE_RECORD_USR, clang::doc::BI_BASE_RECORD_BLOCK_ID, C, clang::doc::RecordInfo::Children, emitBlock(), clang::doc::ScopeChildren::Functions, clang::doc::BaseRecordInfo::IsParent, clang::doc::BaseRecordInfo::IsVirtual, M, clang::doc::RecordInfo::Members, clang::doc::Info::Name, clang::doc::Info::Path, clang::doc::RecordInfo::TagType, and clang::doc::Info::USR.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const CommentInfo & | B | ) |
Definition at line 472 of file BitcodeWriter.cpp.
References clang::doc::CommentInfo::Args, clang::doc::CommentInfo::AttrKeys, clang::doc::CommentInfo::AttrValues, clang::doc::BI_COMMENT_BLOCK_ID, C, clang::doc::CommentInfo::Children, clang::doc::CommentInfo::CloseName, clang::doc::COMMENT_ARG, clang::doc::COMMENT_ATTRKEY, clang::doc::COMMENT_ATTRVAL, clang::doc::COMMENT_CLOSENAME, clang::doc::COMMENT_DIRECTION, clang::doc::COMMENT_EXPLICIT, clang::doc::COMMENT_KIND, clang::doc::COMMENT_NAME, clang::doc::COMMENT_PARAMNAME, clang::doc::COMMENT_SELFCLOSING, clang::doc::COMMENT_TEXT, clang::doc::CommentInfo::Direction, emitBlock(), 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.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const EnumInfo & | I | ) |
Definition at line 515 of file BitcodeWriter.cpp.
References clang::doc::EnumInfo::BaseType, clang::doc::BI_ENUM_BLOCK_ID, CI, clang::doc::SymbolInfo::DefLoc, clang::doc::Info::Description, emitBlock(), clang::doc::ENUM_DEFLOCATION, clang::doc::ENUM_LOCATION, clang::doc::ENUM_NAME, clang::doc::ENUM_SCOPED, clang::doc::ENUM_USR, clang::doc::F_namespace, clang::doc::SymbolInfo::Loc, clang::doc::EnumInfo::Members, clang::doc::Info::Name, clang::doc::Info::Namespace, clang::doc::EnumInfo::Scoped, and clang::doc::Info::USR.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const EnumValueInfo & | I | ) |
Definition at line 534 of file BitcodeWriter.cpp.
References clang::doc::BI_ENUM_VALUE_BLOCK_ID, CI, clang::doc::EnumValueInfo::Description, emitBlock(), clang::doc::ENUM_VALUE_EXPR, clang::doc::ENUM_VALUE_NAME, clang::doc::ENUM_VALUE_VALUE, clang::doc::EnumValueInfo::Name, clang::doc::EnumValueInfo::Value, and clang::doc::EnumValueInfo::ValueExpr.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const FieldTypeInfo & | B | ) |
Definition at line 456 of file BitcodeWriter.cpp.
References clang::doc::BI_FIELD_TYPE_BLOCK_ID, emitBlock(), clang::doc::F_type, clang::doc::FIELD_DEFAULT_VALUE, and clang::doc::FIELD_TYPE_NAME.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const FunctionInfo & | I | ) |
Definition at line 593 of file BitcodeWriter.cpp.
References clang::doc::FunctionInfo::Access, clang::doc::BI_FUNCTION_BLOCK_ID, CI, clang::doc::SymbolInfo::DefLoc, clang::doc::Info::Description, emitBlock(), clang::doc::F_namespace, clang::doc::F_parent, clang::doc::FUNCTION_ACCESS, clang::doc::FUNCTION_DEFLOCATION, clang::doc::FUNCTION_IS_METHOD, clang::doc::FUNCTION_LOCATION, clang::doc::FUNCTION_NAME, clang::doc::FUNCTION_USR, clang::doc::FunctionInfo::IsMethod, clang::doc::SymbolInfo::Loc, clang::doc::Info::Name, clang::doc::Info::Namespace, clang::doc::FunctionInfo::Params, clang::doc::FunctionInfo::Parent, clang::doc::FunctionInfo::ReturnType, clang::doc::FunctionInfo::Template, and clang::doc::Info::USR.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const MemberTypeInfo & | T | ) |
Definition at line 463 of file BitcodeWriter.cpp.
References clang::doc::BI_MEMBER_TYPE_BLOCK_ID, CI, emitBlock(), clang::doc::F_type, clang::doc::MEMBER_TYPE_ACCESS, and clang::doc::MEMBER_TYPE_NAME.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const NamespaceInfo & | I | ) |
Definition at line 494 of file BitcodeWriter.cpp.
References clang::doc::BI_NAMESPACE_BLOCK_ID, C, clang::doc::NamespaceInfo::Children, CI, clang::doc::Info::Description, emitBlock(), clang::doc::ScopeChildren::Enums, clang::doc::F_child_namespace, clang::doc::F_child_record, clang::doc::F_namespace, clang::doc::ScopeChildren::Functions, clang::doc::Info::Name, clang::doc::Info::Namespace, clang::doc::NAMESPACE_NAME, clang::doc::NAMESPACE_PATH, clang::doc::NAMESPACE_USR, clang::doc::ScopeChildren::Namespaces, clang::doc::Info::Path, clang::doc::ScopeChildren::Records, clang::doc::ScopeChildren::Typedefs, and clang::doc::Info::USR.
Referenced by dispatchInfoForWrite(), emitBlock(), and clang::doc::serialize::serialize().
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const RecordInfo & | I | ) |
Definition at line 543 of file BitcodeWriter.cpp.
References clang::doc::RecordInfo::Bases, clang::doc::BI_RECORD_BLOCK_ID, C, clang::doc::RecordInfo::Children, CI, clang::doc::SymbolInfo::DefLoc, clang::doc::Info::Description, emitBlock(), clang::doc::ScopeChildren::Enums, clang::doc::F_child_record, clang::doc::F_namespace, clang::doc::F_parent, clang::doc::F_vparent, clang::doc::ScopeChildren::Functions, clang::doc::RecordInfo::IsTypeDef, clang::doc::SymbolInfo::Loc, clang::doc::RecordInfo::Members, clang::doc::Info::Name, clang::doc::Info::Namespace, clang::doc::RecordInfo::Parents, clang::doc::Info::Path, clang::doc::RECORD_DEFLOCATION, clang::doc::RECORD_IS_TYPE_DEF, clang::doc::RECORD_LOCATION, clang::doc::RECORD_NAME, clang::doc::RECORD_PATH, clang::doc::RECORD_TAG_TYPE, clang::doc::RECORD_USR, clang::doc::ScopeChildren::Records, clang::doc::RecordInfo::TagType, clang::doc::RecordInfo::Template, clang::doc::ScopeChildren::Typedefs, clang::doc::Info::USR, and clang::doc::RecordInfo::VirtualParents.
Definition at line 425 of file BitcodeWriter.cpp.
References clang::doc::BI_REFERENCE_BLOCK_ID, clang::doc::EmptySID, Field, clang::doc::Reference::Name, clang::doc::Reference::Path, clang::doc::Reference::QualName, clang::doc::REFERENCE_FIELD, clang::doc::REFERENCE_NAME, clang::doc::REFERENCE_PATH, clang::doc::REFERENCE_QUAL_NAME, clang::doc::REFERENCE_TYPE, clang::doc::REFERENCE_USR, clang::doc::Reference::RefType, and clang::doc::Reference::USR.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const TemplateInfo & | T | ) |
Definition at line 615 of file BitcodeWriter.cpp.
References clang::doc::BI_TEMPLATE_BLOCK_ID, and emitBlock().
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const TemplateParamInfo & | T | ) |
Definition at line 630 of file BitcodeWriter.cpp.
References clang::doc::BI_TEMPLATE_PARAM_BLOCK_ID, and clang::doc::TEMPLATE_PARAM_CONTENTS.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const TemplateSpecializationInfo & | T | ) |
Definition at line 623 of file BitcodeWriter.cpp.
References clang::doc::BI_TEMPLATE_SPECIALIZATION_BLOCK_ID, emitBlock(), and clang::doc::TEMPLATE_SPECIALIZATION_OF.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const TypedefInfo & | B | ) |
Definition at line 442 of file BitcodeWriter.cpp.
References clang::doc::BI_TYPEDEF_BLOCK_ID, CI, emitBlock(), clang::doc::F_namespace, clang::doc::TYPEDEF_DEFLOCATION, clang::doc::TYPEDEF_IS_USING, clang::doc::TYPEDEF_NAME, and clang::doc::TYPEDEF_USR.
void clang::doc::ClangDocBitcodeWriter::emitBlock | ( | const TypeInfo & | B | ) |
Definition at line 437 of file BitcodeWriter.cpp.
References clang::doc::BI_TYPE_BLOCK_ID, emitBlock(), and clang::doc::F_type.