|
clang 24.0.0git
|
Public Types | |
| using | SerializedIdentifierTable |
| using | SerializedContextIDTable |
| using | SerializedContextInfoTable |
| using | SerializedObjCPropertyTable |
| using | SerializedFieldTable |
| using | SerializedObjCMethodTable |
| using | SerializedCXXMethodTable |
| using | SerializedObjCSelectorTable |
| using | SerializedGlobalVariableTable |
| using | SerializedGlobalFunctionTable |
| using | SerializedEnumConstantTable |
| using | SerializedTagTable = llvm::OnDiskIterableChainedHashTable<TagTableInfo> |
| using | SerializedTypedefTable |
Public Member Functions | |
| std::optional< IdentifierID > | getIdentifier (llvm::StringRef Str) |
| Retrieve the identifier ID for the given string, or an empty optional if the string is unknown. | |
| std::optional< SelectorID > | getSelector (ObjCSelectorRef Selector) |
| Retrieve the selector ID for the given selector, or an empty optional if the string is unknown. | |
| llvm::Error | readControlBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readIdentifierBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readContextBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readObjCPropertyBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readObjCMethodBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readCXXMethodBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readFieldBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readObjCSelectorBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readGlobalVariableBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| std::optional< FunctionTableKey > | getFunctionKey (uint32_t ParentContextID, llvm::StringRef Name) |
| template<typename ParameterT> | |
| std::optional< FunctionTableKey > | getFunctionKey (uint32_t ParentContextID, llvm::StringRef Name, llvm::ArrayRef< ParameterT > Parameters) |
| std::optional< FunctionTableKey > | getFunctionKey (std::optional< Context > ParentContext, llvm::StringRef Name) |
| template<typename ParameterT> | |
| std::optional< FunctionTableKey > | getFunctionKey (std::optional< Context > ParentContext, llvm::StringRef Name, llvm::ArrayRef< ParameterT > Parameters) |
| llvm::Error | readGlobalFunctionBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readEnumConstantBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readTagBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
| llvm::Error | readTypedefBlock (llvm::BitstreamCursor &Cursor, llvm::SmallVectorImpl< uint64_t > &Scratch) |
Public Attributes | |
| llvm::MemoryBuffer * | InputBuffer |
| The input buffer for the API notes data. | |
| llvm::VersionTuple | SwiftVersion |
| The Swift version to use for filtering. | |
| std::string | ModuleName |
| The name of the module that we read from the control block. | |
| std::optional< std::pair< off_t, time_t > > | SourceFileSizeAndModTime |
| std::unique_ptr< SerializedIdentifierTable > | IdentifierTable |
| The identifier table. | |
| std::unique_ptr< SerializedContextIDTable > | ContextIDTable |
| The Objective-C / C++ context ID table. | |
| std::unique_ptr< SerializedContextInfoTable > | ContextInfoTable |
| The Objective-C context info table. | |
| std::unique_ptr< SerializedObjCPropertyTable > | ObjCPropertyTable |
| The Objective-C property table. | |
| std::unique_ptr< SerializedFieldTable > | FieldTable |
| The C record field table. | |
| std::unique_ptr< SerializedObjCMethodTable > | ObjCMethodTable |
| The Objective-C method table. | |
| std::unique_ptr< SerializedCXXMethodTable > | CXXMethodTable |
| The C++ method table. | |
| std::unique_ptr< SerializedObjCSelectorTable > | ObjCSelectorTable |
| The Objective-C selector table. | |
| std::unique_ptr< SerializedGlobalVariableTable > | GlobalVariableTable |
| The global variable table. | |
| std::unique_ptr< SerializedGlobalFunctionTable > | GlobalFunctionTable |
| The global function table. | |
| std::unique_ptr< SerializedEnumConstantTable > | EnumConstantTable |
| The enumerator table. | |
| std::unique_ptr< SerializedTagTable > | TagTable |
| The tag table. | |
| std::unique_ptr< SerializedTypedefTable > | TypedefTable |
| The typedef table. | |
Definition at line 740 of file APINotesReader.cpp.
Definition at line 761 of file APINotesReader.cpp.
Definition at line 767 of file APINotesReader.cpp.
Definition at line 791 of file APINotesReader.cpp.
Definition at line 815 of file APINotesReader.cpp.
Definition at line 779 of file APINotesReader.cpp.
Definition at line 809 of file APINotesReader.cpp.
Definition at line 803 of file APINotesReader.cpp.
Definition at line 755 of file APINotesReader.cpp.
Definition at line 785 of file APINotesReader.cpp.
Definition at line 773 of file APINotesReader.cpp.
Definition at line 797 of file APINotesReader.cpp.
| using clang::api_notes::APINotesReader::Implementation::SerializedTagTable = llvm::OnDiskIterableChainedHashTable<TagTableInfo> |
Definition at line 821 of file APINotesReader.cpp.
Definition at line 826 of file APINotesReader.cpp.
| std::optional< FunctionTableKey > clang::api_notes::APINotesReader::Implementation::getFunctionKey | ( | std::optional< Context > | ParentContext, |
| llvm::StringRef | Name ) |
Definition at line 913 of file APINotesReader.cpp.
References getFunctionKey().
| std::optional< FunctionTableKey > clang::api_notes::APINotesReader::Implementation::getFunctionKey | ( | std::optional< Context > | ParentContext, |
| llvm::StringRef | Name, | ||
| llvm::ArrayRef< ParameterT > | Parameters ) |
Definition at line 921 of file APINotesReader.cpp.
References getFunctionKey().
| std::optional< FunctionTableKey > clang::api_notes::APINotesReader::Implementation::getFunctionKey | ( | uint32_t | ParentContextID, |
| llvm::StringRef | Name ) |
Definition at line 897 of file APINotesReader.cpp.
References clang::api_notes::getFunctionKeyImpl(), and getIdentifier().
Referenced by getFunctionKey(), getFunctionKey(), clang::api_notes::APINotesReader::lookupCXXMethodImpl(), and clang::api_notes::APINotesReader::lookupGlobalFunctionImpl().
| std::optional< FunctionTableKey > clang::api_notes::APINotesReader::Implementation::getFunctionKey | ( | uint32_t | ParentContextID, |
| llvm::StringRef | Name, | ||
| llvm::ArrayRef< ParameterT > | Parameters ) |
Definition at line 905 of file APINotesReader.cpp.
References clang::api_notes::getFunctionKeyImpl(), and getIdentifier().
| std::optional< IdentifierID > clang::api_notes::APINotesReader::Implementation::getIdentifier | ( | llvm::StringRef | Str | ) |
Retrieve the identifier ID for the given string, or an empty optional if the string is unknown.
Definition at line 882 of file APINotesReader.cpp.
References IdentifierTable.
Referenced by clang::api_notes::APINotesReader::lookupEnumConstant(), clang::api_notes::APINotesReader::lookupField(), clang::api_notes::APINotesReader::lookupGlobalVariable(), clang::api_notes::APINotesReader::lookupNamespaceID(), clang::api_notes::APINotesReader::lookupObjCClassID(), clang::api_notes::APINotesReader::lookupObjCProperty(), clang::api_notes::APINotesReader::lookupObjCProtocolID(), clang::api_notes::APINotesReader::lookupTag(), clang::api_notes::APINotesReader::lookupTagID(), and clang::api_notes::APINotesReader::lookupTypedef().
| std::optional< SelectorID > clang::api_notes::APINotesReader::Implementation::getSelector | ( | ObjCSelectorRef | Selector | ) |
Retrieve the selector ID for the given selector, or an empty optional if the string is unknown.
Definition at line 930 of file APINotesReader.cpp.
References getIdentifier(), clang::api_notes::StoredObjCSelector::Identifiers, IdentifierTable, clang::api_notes::StoredObjCSelector::NumArgs, and ObjCSelectorTable.
Referenced by clang::api_notes::APINotesReader::lookupObjCMethod().
| llvm::Error clang::api_notes::APINotesReader::Implementation::readContextBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1112 of file APINotesReader.cpp.
References clang::api_notes::context_block::CONTEXT_ID_DATA, clang::api_notes::context_block::CONTEXT_INFO_DATA, ContextIDTable, ContextInfoTable, Next, and clang::api_notes::OBJC_CONTEXT_BLOCK_ID.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readControlBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 952 of file APINotesReader.cpp.
References clang::api_notes::CONTROL_BLOCK_ID, clang::api_notes::control_block::METADATA, clang::api_notes::control_block::MODULE_NAME, clang::api_notes::control_block::MODULE_OPTIONS, ModuleName, Next, clang::api_notes::control_block::SOURCE_FILE, SourceFileSizeAndModTime, clang::api_notes::VERSION_MAJOR, and clang::api_notes::VERSION_MINOR.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readCXXMethodBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1346 of file APINotesReader.cpp.
References clang::api_notes::CXX_METHOD_BLOCK_ID, clang::api_notes::cxx_method_block::CXX_METHOD_DATA, CXXMethodTable, and Next.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readEnumConstantBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1708 of file APINotesReader.cpp.
References clang::api_notes::ENUM_CONSTANT_BLOCK_ID, clang::api_notes::enum_constant_block::ENUM_CONSTANT_DATA, EnumConstantTable, and Next.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readFieldBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1417 of file APINotesReader.cpp.
References clang::api_notes::FIELD_BLOCK_ID, clang::api_notes::field_block::FIELD_DATA, FieldTable, and Next.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readGlobalFunctionBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1635 of file APINotesReader.cpp.
References clang::api_notes::GLOBAL_FUNCTION_BLOCK_ID, clang::api_notes::global_function_block::GLOBAL_FUNCTION_DATA, GlobalFunctionTable, and Next.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readGlobalVariableBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1562 of file APINotesReader.cpp.
References clang::api_notes::GLOBAL_VARIABLE_BLOCK_ID, clang::api_notes::global_variable_block::GLOBAL_VARIABLE_DATA, GlobalVariableTable, and Next.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readIdentifierBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1040 of file APINotesReader.cpp.
References clang::api_notes::IDENTIFIER_BLOCK_ID, clang::api_notes::identifier_block::IDENTIFIER_DATA, IdentifierTable, and Next.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readObjCMethodBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1274 of file APINotesReader.cpp.
References Next, clang::api_notes::OBJC_METHOD_BLOCK_ID, clang::api_notes::objc_method_block::OBJC_METHOD_DATA, and ObjCMethodTable.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readObjCPropertyBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1199 of file APINotesReader.cpp.
References Next, clang::api_notes::OBJC_PROPERTY_BLOCK_ID, clang::api_notes::objc_property_block::OBJC_PROPERTY_DATA, and ObjCPropertyTable.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readObjCSelectorBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1488 of file APINotesReader.cpp.
References Next, clang::api_notes::OBJC_SELECTOR_BLOCK_ID, clang::api_notes::objc_selector_block::OBJC_SELECTOR_DATA, and ObjCSelectorTable.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readTagBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1780 of file APINotesReader.cpp.
References Next, clang::api_notes::TAG_BLOCK_ID, clang::api_notes::tag_block::TAG_DATA, and TagTable.
| llvm::Error clang::api_notes::APINotesReader::Implementation::readTypedefBlock | ( | llvm::BitstreamCursor & | Cursor, |
| llvm::SmallVectorImpl< uint64_t > & | Scratch ) |
Definition at line 1851 of file APINotesReader.cpp.
References Next, clang::api_notes::TYPEDEF_BLOCK_ID, clang::api_notes::typedef_block::TYPEDEF_DATA, and TypedefTable.
| std::unique_ptr<SerializedContextIDTable> clang::api_notes::APINotesReader::Implementation::ContextIDTable |
The Objective-C / C++ context ID table.
Definition at line 765 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupNamespaceID(), clang::api_notes::APINotesReader::lookupObjCClassID(), clang::api_notes::APINotesReader::lookupObjCProtocolID(), clang::api_notes::APINotesReader::lookupTagID(), and readContextBlock().
| std::unique_ptr<SerializedContextInfoTable> clang::api_notes::APINotesReader::Implementation::ContextInfoTable |
The Objective-C context info table.
Definition at line 771 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupObjCClassInfo(), clang::api_notes::APINotesReader::lookupObjCProtocolInfo(), and readContextBlock().
| std::unique_ptr<SerializedCXXMethodTable> clang::api_notes::APINotesReader::Implementation::CXXMethodTable |
The C++ method table.
Definition at line 795 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupCXXMethodImpl(), and readCXXMethodBlock().
| std::unique_ptr<SerializedEnumConstantTable> clang::api_notes::APINotesReader::Implementation::EnumConstantTable |
The enumerator table.
Definition at line 819 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupEnumConstant(), and readEnumConstantBlock().
| std::unique_ptr<SerializedFieldTable> clang::api_notes::APINotesReader::Implementation::FieldTable |
The C record field table.
Definition at line 783 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupField(), and readFieldBlock().
| std::unique_ptr<SerializedGlobalFunctionTable> clang::api_notes::APINotesReader::Implementation::GlobalFunctionTable |
The global function table.
Definition at line 813 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupGlobalFunctionImpl(), and readGlobalFunctionBlock().
| std::unique_ptr<SerializedGlobalVariableTable> clang::api_notes::APINotesReader::Implementation::GlobalVariableTable |
The global variable table.
Definition at line 807 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupGlobalVariable(), and readGlobalVariableBlock().
| std::unique_ptr<SerializedIdentifierTable> clang::api_notes::APINotesReader::Implementation::IdentifierTable |
The identifier table.
Definition at line 759 of file APINotesReader.cpp.
Referenced by getIdentifier(), getSelector(), and readIdentifierBlock().
| llvm::MemoryBuffer* clang::api_notes::APINotesReader::Implementation::InputBuffer |
The input buffer for the API notes data.
Definition at line 743 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::~APINotesReader().
| std::string clang::api_notes::APINotesReader::Implementation::ModuleName |
The name of the module that we read from the control block.
Definition at line 749 of file APINotesReader.cpp.
Referenced by readControlBlock().
| std::unique_ptr<SerializedObjCMethodTable> clang::api_notes::APINotesReader::Implementation::ObjCMethodTable |
The Objective-C method table.
Definition at line 789 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupObjCMethod(), and readObjCMethodBlock().
| std::unique_ptr<SerializedObjCPropertyTable> clang::api_notes::APINotesReader::Implementation::ObjCPropertyTable |
The Objective-C property table.
Definition at line 777 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupObjCProperty(), and readObjCPropertyBlock().
| std::unique_ptr<SerializedObjCSelectorTable> clang::api_notes::APINotesReader::Implementation::ObjCSelectorTable |
The Objective-C selector table.
Definition at line 801 of file APINotesReader.cpp.
Referenced by getSelector(), and readObjCSelectorBlock().
| std::optional<std::pair<off_t, time_t> > clang::api_notes::APINotesReader::Implementation::SourceFileSizeAndModTime |
Definition at line 753 of file APINotesReader.cpp.
Referenced by readControlBlock().
| llvm::VersionTuple clang::api_notes::APINotesReader::Implementation::SwiftVersion |
The Swift version to use for filtering.
Definition at line 746 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupCXXMethodImpl(), clang::api_notes::APINotesReader::lookupEnumConstant(), clang::api_notes::APINotesReader::lookupField(), clang::api_notes::APINotesReader::lookupGlobalFunctionImpl(), clang::api_notes::APINotesReader::lookupGlobalVariable(), clang::api_notes::APINotesReader::lookupObjCClassInfo(), clang::api_notes::APINotesReader::lookupObjCMethod(), clang::api_notes::APINotesReader::lookupObjCProperty(), clang::api_notes::APINotesReader::lookupObjCProtocolInfo(), clang::api_notes::APINotesReader::lookupTag(), and clang::api_notes::APINotesReader::lookupTypedef().
| std::unique_ptr<SerializedTagTable> clang::api_notes::APINotesReader::Implementation::TagTable |
The tag table.
Definition at line 824 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupTag(), and readTagBlock().
| std::unique_ptr<SerializedTypedefTable> clang::api_notes::APINotesReader::Implementation::TypedefTable |
The typedef table.
Definition at line 830 of file APINotesReader.cpp.
Referenced by clang::api_notes::APINotesReader::lookupTypedef(), and readTypedefBlock().