clang-tools 23.0.0git
clang::doc::serialize::Serializer Class Reference

#include <Serialize.h>

Public Member Functions

 Serializer ()=default
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const NamespaceDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const RecordDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const EnumDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const FunctionDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const VarDecl *D, const FullComment *FC, int LineNumber, StringRef File, bool IsFileInRootDir, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const CXXMethodDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const TypedefDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const TypeAliasDecl *D, const FullComment *FC, Location Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const ConceptDecl *D, const FullComment *FC, const Location &Loc, bool PublicOnly)
std::pair< OwnedPtr< Info >, OwnedPtr< Info > > emitInfo (const VarDecl *D, const FullComment *FC, const Location &Loc, bool PublicOnly)

Detailed Description

Definition at line 36 of file Serialize.h.

Constructor & Destructor Documentation

◆ Serializer()

clang::doc::serialize::Serializer::Serializer ( )
default

References PublicOnly().

Member Function Documentation

◆ emitInfo() [1/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const ConceptDecl * D,
const FullComment * FC,
const Location & Loc,
bool PublicOnly )

Definition at line 1213 of file Serialize.cpp.

References PublicOnly().

◆ emitInfo() [2/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const CXXMethodDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

◆ emitInfo() [3/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const EnumDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

Definition at line 1192 of file Serialize.cpp.

References PublicOnly().

◆ emitInfo() [4/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const FunctionDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

Definition at line 1079 of file Serialize.cpp.

References clang::doc::FunctionInfo::Access, and PublicOnly().

◆ emitInfo() [5/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const NamespaceDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

Definition at line 936 of file Serialize.cpp.

References clang::doc::allocatePtr(), and PublicOnly().

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

◆ emitInfo() [6/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const RecordDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

◆ emitInfo() [7/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const TypeAliasDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

Definition at line 1168 of file Serialize.cpp.

References PublicOnly().

◆ emitInfo() [8/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const TypedefDecl * D,
const FullComment * FC,
Location Loc,
bool PublicOnly )

Definition at line 1136 of file Serialize.cpp.

References clang::doc::Info::Name, and PublicOnly().

◆ emitInfo() [9/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const VarDecl * D,
const FullComment * FC,
const Location & Loc,
bool PublicOnly )

◆ emitInfo() [10/10]

std::pair< OwnedPtr< Info >, OwnedPtr< Info > > clang::doc::serialize::Serializer::emitInfo ( const VarDecl * D,
const FullComment * FC,
int LineNumber,
StringRef File,
bool IsFileInRootDir,
bool PublicOnly )

References FuncDecl, and PublicOnly().


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