clang
19.0.0git
|
A class that reads API notes data from a binary file that was written by the APINotesWriter
.
More...
#include "clang/APINotes/APINotesReader.h"
Classes | |
class | Implementation |
class | VersionedInfo |
Captures the completed versioned information for a particular part of API notes, including both unversioned API notes and each versioned API note for that particular entity. More... | |
Public Member Functions | |
~APINotesReader () | |
APINotesReader (const APINotesReader &)=delete | |
APINotesReader & | operator= (const APINotesReader &)=delete |
std::optional< ContextID > | lookupObjCClassID (llvm::StringRef Name) |
Look for the context ID of the given Objective-C class. More... | |
VersionedInfo< ObjCContextInfo > | lookupObjCClassInfo (llvm::StringRef Name) |
Look for information regarding the given Objective-C class. More... | |
std::optional< ContextID > | lookupObjCProtocolID (llvm::StringRef Name) |
Look for the context ID of the given Objective-C protocol. More... | |
VersionedInfo< ObjCContextInfo > | lookupObjCProtocolInfo (llvm::StringRef Name) |
Look for information regarding the given Objective-C protocol. More... | |
VersionedInfo< ObjCPropertyInfo > | lookupObjCProperty (ContextID CtxID, llvm::StringRef Name, bool IsInstance) |
Look for information regarding the given Objective-C property in the given context. More... | |
VersionedInfo< ObjCMethodInfo > | lookupObjCMethod (ContextID CtxID, ObjCSelectorRef Selector, bool IsInstanceMethod) |
Look for information regarding the given Objective-C method in the given context. More... | |
VersionedInfo< GlobalVariableInfo > | lookupGlobalVariable (llvm::StringRef Name, std::optional< Context > Ctx=std::nullopt) |
Look for information regarding the given global variable. More... | |
VersionedInfo< GlobalFunctionInfo > | lookupGlobalFunction (llvm::StringRef Name, std::optional< Context > Ctx=std::nullopt) |
Look for information regarding the given global function. More... | |
VersionedInfo< EnumConstantInfo > | lookupEnumConstant (llvm::StringRef Name) |
Look for information regarding the given enumerator. More... | |
VersionedInfo< TagInfo > | lookupTag (llvm::StringRef Name, std::optional< Context > Ctx=std::nullopt) |
Look for information regarding the given tag (struct/union/enum/C++ class). More... | |
VersionedInfo< TypedefInfo > | lookupTypedef (llvm::StringRef Name, std::optional< Context > Ctx=std::nullopt) |
Look for information regarding the given typedef. More... | |
std::optional< ContextID > | lookupNamespaceID (llvm::StringRef Name, std::optional< ContextID > ParentNamespaceID=std::nullopt) |
Look for the context ID of the given C++ namespace. More... | |
Static Public Member Functions | |
static std::unique_ptr< APINotesReader > | Create (std::unique_ptr< llvm::MemoryBuffer > InputBuffer, llvm::VersionTuple SwiftVersion) |
Create a new API notes reader from the given member buffer, which contains the contents of a binary API notes file. More... | |
A class that reads API notes data from a binary file that was written by the APINotesWriter
.
Definition at line 28 of file APINotesReader.h.
clang::api_notes::APINotesReader::~APINotesReader | ( | ) |
Definition at line 1769 of file APINotesReader.cpp.
References clang::api_notes::APINotesReader::Implementation::InputBuffer.
|
delete |
|
static |
Create a new API notes reader from the given member buffer, which contains the contents of a binary API notes file.
Definition at line 1772 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupEnumConstant | ( | llvm::StringRef | Name | ) |
Look for information regarding the given enumerator.
Name | The name of the enumerator. |
Definition at line 1961 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupGlobalFunction | ( | llvm::StringRef | Name, |
std::optional< Context > | Ctx = std::nullopt |
||
) |
Look for information regarding the given global function.
Name | The name of the global function. |
Definition at line 1942 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupGlobalVariable | ( | llvm::StringRef | Name, |
std::optional< Context > | Ctx = std::nullopt |
||
) |
Look for information regarding the given global variable.
Name | The name of the global variable. |
Definition at line 1923 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupNamespaceID | ( | llvm::StringRef | Name, |
std::optional< ContextID > | ParentNamespaceID = std::nullopt |
||
) |
Look for the context ID of the given C++ namespace.
Name | The name of the class we're looking for. |
Definition at line 2014 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupObjCClassID | ( | llvm::StringRef | Name | ) |
Look for the context ID of the given Objective-C class.
Name | The name of the class we're looking for. |
Definition at line 1816 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupObjCClassInfo | ( | llvm::StringRef | Name | ) |
Look for information regarding the given Objective-C class.
Name | The name of the class we're looking for. |
Definition at line 1835 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupObjCMethod | ( | ContextID | CtxID, |
ObjCSelectorRef | Selector, | ||
bool | IsInstanceMethod | ||
) |
Look for information regarding the given Objective-C method in the given context.
CtxID | The ID that references the context we are looking for. |
Selector | The selector naming the method we're looking for. |
IsInstanceMethod | Whether we are looking for an instance method. |
Definition at line 1904 of file APINotesReader.cpp.
References clang::api_notes::APINotesReader::Implementation::getSelector(), clang::api_notes::APINotesReader::Implementation::ObjCMethodTable, and clang::api_notes::APINotesReader::Implementation::SwiftVersion.
auto clang::api_notes::APINotesReader::lookupObjCProperty | ( | ContextID | CtxID, |
llvm::StringRef | Name, | ||
bool | IsInstance | ||
) |
Look for information regarding the given Objective-C property in the given context.
CtxID | The ID that references the context we are looking for. |
Name | The name of the property we're looking for. |
IsInstance | Whether we are looking for an instance property (vs. a class property). |
Definition at line 1886 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupObjCProtocolID | ( | llvm::StringRef | Name | ) |
Look for the context ID of the given Objective-C protocol.
Name | The name of the protocol we're looking for. |
Definition at line 1851 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupObjCProtocolInfo | ( | llvm::StringRef | Name | ) |
Look for information regarding the given Objective-C protocol.
Name | The name of the protocol we're looking for. |
Definition at line 1870 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupTag | ( | llvm::StringRef | Name, |
std::optional< Context > | Ctx = std::nullopt |
||
) |
Look for information regarding the given tag (struct/union/enum/C++ class).
Name | The name of the tag. |
Definition at line 1977 of file APINotesReader.cpp.
auto clang::api_notes::APINotesReader::lookupTypedef | ( | llvm::StringRef | Name, |
std::optional< Context > | Ctx = std::nullopt |
||
) |
Look for information regarding the given typedef.
Name | The name of the typedef. |
Definition at line 1995 of file APINotesReader.cpp.
|
delete |