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. | |
ArrayRef< const APIRecord * > | getTopLevelRecords () const |
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 99 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 1467 of file API.h.
References copyString(), and clang::Result.
SymbolReference APISet::createSymbolReference | ( | StringRef | Name, |
StringRef | USR, | ||
StringRef | Source = "" |
||
) |
Definition at line 112 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 88 of file API.cpp.
Referenced by clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::createSymbolReferenceForDecl(), clang::extractapi::impl::ExtractAPIVisitorBase< Derived >::maybeMergeWithAnonymousTag(), clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF(), and clang::extractapi::SymbolGraphSerializer::traverseObjCCategoryRecord().
|
inline |
Get the language used by the APIs.
Definition at line 1406 of file API.h.
Referenced by clang::extractapi::SymbolGraphSerializer::serializeSingleSymbolSGF().
|
inline |
Definition at line 1429 of file API.h.
Referenced by clang::extractapi::APISetVisitor< Derived >::traverseAPISet().
const std::string clang::extractapi::APISet::ProductName |