clang 20.0.0git
|
APISet holds the set of API records collected from given inputs. More...
#include "clang/ExtractAPI/API.h"
Public Member Functions | |
const llvm::Triple & | getTarget () const |
Get the target triple for the ExtractAPI invocation. | |
Language | getLanguage () const |
Get the language used by the APIs. | |
APIRecord * | findRecordForUSR (StringRef USR) const |
Finds the APIRecord for a given USR. | |
StringRef | copyString (StringRef String) |
Copy String into the Allocator in this APISet. | |
SymbolReference | createSymbolReference (StringRef Name, StringRef USR, StringRef Source="") |
template<typename RecordTy , typename... CtorArgsContTy> | |
std::enable_if_t< std::is_base_of_v< APIRecord, RecordTy >, RecordTy > * | createRecord (StringRef USR, StringRef Name, CtorArgsContTy &&...CtorArgs) |
Create a subclass of APIRecord and store it in the APISet. | |
auto | getTopLevelRecords () const |
void | removeRecord (StringRef USR) |
void | removeRecord (APIRecord *Record) |
APISet (const llvm::Triple &Target, Language Lang, const std::string &ProductName) | |
APISet (const APISet &Other)=delete | |
APISet & | operator= (const APISet &Other)=delete |
APISet (APISet &&Other)=delete | |
APISet & | operator= (APISet &&Other)=delete |
Public Attributes | |
const std::string | ProductName |
APISet holds the set of API records collected from given inputs.
|
inline |
|
delete |
|
delete |
StringRef APISet::copyString | ( | StringRef | String | ) |
Copy String
into the Allocator in this APISet.
Definition at line 121 of file API.cpp.
References memcpy().
Referenced by createRecord(), createSymbolReference(), and clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::getBases().
std::enable_if_t< std::is_base_of_v< APIRecord, RecordTy >, RecordTy > * clang::extractapi::APISet::createRecord | ( | StringRef | USR, |
StringRef | Name, | ||
CtorArgsContTy &&... | CtorArgs | ||
) |
Create a subclass of APIRecord
and store it in the APISet.
Definition at line 1466 of file API.h.
References copyString(), and clang::Result.
SymbolReference APISet::createSymbolReference | ( | StringRef | Name, |
StringRef | USR, | ||
StringRef | Source = "" |
||
) |
Definition at line 134 of file API.cpp.
References copyString().
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::createSymbolReferenceForDecl(), and clang::extractapi::TypedefUnderlyingTypeResolver::getSymbolReferenceForType().
APIRecord * APISet::findRecordForUSR | ( | StringRef | USR | ) | const |
Finds the APIRecord for a given USR.
Definition at line 110 of file API.cpp.
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::createSymbolReferenceForDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::maybeMergeWithAnonymousTag(), removeRecord(), clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF(), and clang::extractapi::SymbolGraphSerializer::traverseObjCCategoryRecord().
|
inline |
Get the language used by the APIs.
Definition at line 1400 of file API.h.
Referenced by clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF().
|
inline |
|
inline |
Definition at line 1423 of file API.h.
Referenced by clang::extractapi::APISetVisitor< Derived >::traverseAPISet().
void APISet::removeRecord | ( | APIRecord * | Record | ) |
Definition at line 164 of file API.cpp.
References removeRecord().
void APISet::removeRecord | ( | StringRef | USR | ) |
Definition at line 139 of file API.cpp.
References findRecordForUSR(), and clang::Result.
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::maybeMergeWithAnonymousTag(), and removeRecord().
const std::string clang::extractapi::APISet::ProductName |