clang 22.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 |
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 |
Definition at line 1464 of file API.h.
References ProductName.
Referenced by APISet(), APISet(), operator=(), and operator=().
|
delete |
References APISet(), and clang::Other.
|
delete |
References APISet(), and clang::Other.
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(), and createSymbolReference().
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 1498 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::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 removeRecord().
|
inline |
|
inline |
References APISet(), and clang::Other.
References APISet(), and clang::Other.
void APISet::removeRecord | ( | APIRecord * | Record | ) |
Definition at line 166 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 removeRecord().
const std::string clang::extractapi::APISet::ProductName |