LLVM: llvm::MachO::TextAPIReader Class Reference (original) (raw)

#include "[llvm/TextAPI/TextAPIReader.h](TextAPIReader%5F8h%5Fsource.html)"

Public Member Functions
Static Public Member Functions
static LLVM_ABI Expected< FileType > canRead (MemoryBufferRef InputBuffer)
Determine whether input can be interpreted as TAPI text file.
static LLVM_ABI Expected< std::unique_ptr< InterfaceFile > > get (MemoryBufferRef InputBuffer)
Parse and get an InterfaceFile that represents the full library.

Detailed Description

Definition at line 24 of file TextAPIReader.h.

Constructor & Destructor Documentation

llvm::MachO::TextAPIReader::TextAPIReader ( ) delete

Member Function Documentation

canRead()

Expected< FileType > TextAPIReader::canRead ( MemoryBufferRef InputBuffer) static

Determine whether input can be interpreted as TAPI text file.

This allows one to exit early when file is not recognized as TAPI file as opposed to get which attempts to full parse and load of library attributes.

Parameters

InputBuffer Buffer holding contents of TAPI text file.

Returns

The file format version of TAPI text file.

Definition at line 1073 of file TextStub.cpp.

References llvm::createStringError(), llvm::MemoryBufferRef::getBuffer(), llvm::MachO::TBD_V1, llvm::MachO::TBD_V2, llvm::MachO::TBD_V3, llvm::MachO::TBD_V4, llvm::MachO::TBD_V5, and llvm::StringRef::trim().

Referenced by get().

get()

Expected< std::unique_ptr< InterfaceFile > > TextAPIReader::get ( MemoryBufferRef InputBuffer) static

Parse and get an InterfaceFile that represents the full library.

Parameters

InputBuffer Buffer holding contents of TAPI text file.

Definition at line 1098 of file TextStub.cpp.

References canRead(), DiagHandler(), llvm::drop_begin(), llvm::yaml::Input::error(), llvm::MemoryBufferRef::getBuffer(), llvm::MemoryBufferRef::getBufferIdentifier(), llvm::MachO::getInterfaceFileFromJSON(), llvm::make_error(), llvm::MachO::TextAPIContext::Path, and llvm::MachO::TBD_V5.

Referenced by llvm::object::TapiUniversal::TapiUniversal().


The documentation for this class was generated from the following files: