clang-tools 23.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, llvm::BumpPtrAllocator &Arena)
 Info (const Info &Other)=delete
 Info (Info &&Other)=default
Infooperator= (Info &&Other)=default
void mergeBase (Info &&I)
bool mergeable (const Info &Other)
StringRef extractName () const
StringRef getRelativeFilePath (const StringRef &CurrentPath) const
 Returns the file path for this Info relative to CurrentPath.
StringRef getFileBaseName () const
 Returns the basename that should be used for this Info.

Public Attributes

StringRef Path = {}
StringRef Name = {}
StringRef DocumentationFileName = {}
llvm::ArrayRef< ReferenceNamespace
SymbolID USR = SymbolID()
SymbolID ParentUSR = SymbolID()
InfoType IT = InfoType::IT_default
DocList< CommentInfoDescription = {}

Detailed Description

A base struct for Infos.

Definition at line 530 of file Representation.h.

Constructor & Destructor Documentation

◆ Info() [1/4]

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

◆ Info() [2/4]

clang::doc::Info::Info ( const Info & Other,
llvm::BumpPtrAllocator & Arena )

◆ Info() [3/4]

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

References Info().

◆ Info() [4/4]

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

References Info().

Member Function Documentation

◆ extractName()

◆ getFileBaseName()

StringRef clang::doc::Info::getFileBaseName ( ) const

Returns the basename that should be used for this Info.

Definition at line 394 of file Representation.cpp.

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

Referenced by clang::doc::MDGenerator::generateDocumentation().

◆ getRelativeFilePath()

StringRef clang::doc::Info::getRelativeFilePath ( const StringRef & CurrentPath) const

◆ mergeable()

◆ mergeBase()

◆ operator=()

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

References Info().

Member Data Documentation

◆ Description

◆ DocumentationFileName

StringRef clang::doc::Info::DocumentationFileName = {}

◆ IT

◆ Name

◆ Namespace

◆ ParentUSR

◆ Path

◆ USR


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