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)=delete
 Info (Info &&Other)=default
virtual ~Info ()=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::SmallVector< Reference, 4 > Namespace
SymbolID USR = SymbolID()
SymbolID ParentUSR = SymbolID()
InfoType IT = InfoType::IT_default
OwningVec< CommentInfoDescription
SmallVector< Context, 4 > Contexts

Detailed Description

A base struct for Infos.

Definition at line 440 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()

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

Returns the basename that should be used for this Info.

Definition at line 261 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

◆ Contexts

SmallVector<Context, 4> clang::doc::Info::Contexts

Definition at line 488 of file Representation.h.

Referenced by clang::doc::serializeContexts().

◆ Description

◆ DocumentationFileName

StringRef clang::doc::Info::DocumentationFileName

◆ IT

◆ Name

◆ Namespace

◆ ParentUSR

◆ Path

◆ USR


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