clang-tools 22.0.0git
clang::doc::Info Struct Reference

A base struct for Infos. More...

#include <Representation.h>

Inheritance diagram for clang::doc::Info:
[legend]

Public Member Functions

 Info (InfoType IT=InfoType::IT_default, SymbolID USR=SymbolID(), StringRef Name=StringRef(), StringRef Path=StringRef())
 Info (const Info &Other)=delete
 Info (Info &&Other)=default
virtual ~Info ()=default
Infooperator= (Info &&Other)=default
void mergeBase (Info &&I)
bool mergeable (const Info &Other)
llvm::SmallString< 16 > extractName () const
llvm::SmallString< 64 > getRelativeFilePath (const StringRef &CurrentPath) const
 Returns the file path for this Info relative to CurrentPath.
llvm::SmallString< 16 > getFileBaseName () const
 Returns the basename that should be used for this Info.

Public Attributes

SymbolID USR
InfoType IT = InfoType::IT_default
SmallString< 16 > Name
llvm::SmallVector< Reference, 4 > Namespace
std::vector< CommentInfoDescription
llvm::SmallString< 128 > Path
SmallString< 16 > DocumentationFileName

Detailed Description

A base struct for Infos.

Definition at line 317 of file Representation.h.

Constructor & Destructor Documentation

◆ Info() [1/3]

clang::doc::Info::Info ( InfoType IT = InfoType::IT_default,
SymbolID USR = SymbolID(),
StringRef Name = StringRef(),
StringRef Path = StringRef() )
inline

◆ Info() [2/3]

clang::doc::Info::Info ( const Info & Other)
delete

References Info().

◆ Info() [3/3]

clang::doc::Info::Info ( Info && Other)
default

References Info().

◆ ~Info()

virtual clang::doc::Info::~Info ( )
virtualdefault

Member Function Documentation

◆ extractName()

◆ getFileBaseName()

llvm::SmallString< 16 > clang::doc::Info::getFileBaseName ( ) const

Returns the basename that should be used for this Info.

Definition at line 233 of file Representation.cpp.

References extractName(), IT, and clang::doc::IT_namespace.

Referenced by clang::doc::determineFileName(), clang::doc::HTMLGenerator::generateDocs(), and clang::doc::MDGenerator::generateDocs().

◆ getRelativeFilePath()

llvm::SmallString< 64 > clang::doc::Info::getRelativeFilePath ( const StringRef & CurrentPath) const

◆ mergeable()

◆ mergeBase()

void clang::doc::Info::mergeBase ( Info && I)

◆ operator=()

Info & clang::doc::Info::operator= ( Info && Other)
default

References Info().

Member Data Documentation

◆ Description

◆ DocumentationFileName

SmallString<16> clang::doc::Info::DocumentationFileName

◆ IT

◆ Name

◆ Namespace

◆ Path

◆ USR

SymbolID clang::doc::Info::USR
Initial value:
=
std::array< uint8_t, 20 > SymbolID

Definition at line 329 of file Representation.h.

Referenced by clang::doc::Generator::addInfoToIndex(), clang::doc::BaseRecordInfo::BaseRecordInfo(), clang::doc::ConceptInfo::ConceptInfo(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::ClangDocBitcodeWriter::emitBlock(), clang::doc::EnumInfo::EnumInfo(), extractName(), clang::doc::FriendInfo::FriendInfo(), clang::doc::FriendInfo::FriendInfo(), clang::doc::FunctionInfo::FunctionInfo(), clang::doc::genHTML(), clang::doc::genHTML(), Info(), llvm::yaml::infoMapping(), clang::doc::serialize::InsertChild(), clang::doc::serialize::InsertChild(), mergeable(), mergeBase(), clang::doc::NamespaceInfo::NamespaceInfo(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::parseRecord(), clang::doc::serialize::populateInfo(), clang::doc::serialize::populateSymbolInfo(), clang::doc::RecordInfo::RecordInfo(), clang::doc::serializeCommonAttributes(), clang::doc::SymbolInfo::SymbolInfo(), clang::doc::TypedefInfo::TypedefInfo(), and clang::doc::VarInfo::VarInfo().


The documentation for this struct was generated from the following files: