clang-tools 23.0.0git
clang::doc::FriendInfo Struct Reference

#include <Representation.h>

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

Public Member Functions

 FriendInfo ()
 FriendInfo (SymbolID USR)
 FriendInfo (const InfoType IT, const SymbolID &USR, const StringRef Name=StringRef())
 FriendInfo (const FriendInfo &Other, llvm::BumpPtrAllocator &Arena)
bool mergeable (const FriendInfo &Other)
void merge (FriendInfo &&Other)
Public Member Functions inherited from clang::doc::SymbolInfo
 SymbolInfo (InfoType IT, SymbolID USR=SymbolID(), StringRef Name=StringRef(), StringRef Path=StringRef())
 SymbolInfo (const SymbolInfo &Other, llvm::BumpPtrAllocator &Arena)
void merge (SymbolInfo &&I)
bool operator< (const SymbolInfo &Other) const
Public Member Functions inherited from clang::doc::Info
 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.

Static Public Member Functions

static bool classof (const Info *I)
Static Public Member Functions inherited from clang::doc::SymbolInfo
static bool classof (const Info *I)

Public Attributes

Reference Ref
std::optional< TemplateInfoTemplate
std::optional< TypeInfoReturnType
llvm::ArrayRef< FieldTypeInfoParams = {}
bool IsClass = false
Public Attributes inherited from clang::doc::SymbolInfo
std::optional< LocationDefLoc
DocList< LocationLoc = {}
StringRef MangledName = {}
bool IsStatic = false
Public Attributes inherited from clang::doc::Info
StringRef Path = {}
StringRef Name = {}
StringRef DocumentationFileName = {}
llvm::ArrayRef< ReferenceNamespace
SymbolID USR = SymbolID()
SymbolID ParentUSR = SymbolID()
InfoType IT = InfoType::IT_default
DocList< CommentInfoDescription = {}

Detailed Description

Definition at line 644 of file Representation.h.

Constructor & Destructor Documentation

◆ FriendInfo() [1/4]

clang::doc::FriendInfo::FriendInfo ( )
inline

Definition at line 645 of file Representation.h.

References clang::doc::IT_friend, and clang::doc::SymbolInfo::SymbolInfo().

Referenced by FriendInfo(), merge(), and mergeable().

◆ FriendInfo() [2/4]

clang::doc::FriendInfo::FriendInfo ( SymbolID USR)
inline

◆ FriendInfo() [3/4]

clang::doc::FriendInfo::FriendInfo ( const InfoType IT,
const SymbolID & USR,
const StringRef Name = StringRef() )
inline

◆ FriendInfo() [4/4]

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

Member Function Documentation

◆ classof()

bool clang::doc::FriendInfo::classof ( const Info * I)
inlinestatic

Definition at line 652 of file Representation.h.

References clang::doc::Info::IT, and clang::doc::IT_friend.

◆ merge()

void clang::doc::FriendInfo::merge ( FriendInfo && Other)

Definition at line 391 of file Representation.cpp.

References FriendInfo(), mergeable(), and Ref.

◆ mergeable()

bool clang::doc::FriendInfo::mergeable ( const FriendInfo & Other)

Definition at line 387 of file Representation.cpp.

References FriendInfo(), clang::doc::Reference::Name, Ref, and clang::doc::Reference::USR.

Referenced by merge().

Member Data Documentation

◆ IsClass

bool clang::doc::FriendInfo::IsClass = false

◆ Params

llvm::ArrayRef<FieldTypeInfo> clang::doc::FriendInfo::Params = {}

◆ Ref

Reference clang::doc::FriendInfo::Ref

◆ ReturnType

std::optional<TypeInfo> clang::doc::FriendInfo::ReturnType

◆ Template

std::optional<TemplateInfo> clang::doc::FriendInfo::Template

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