LLVM 22.0.0git
|
#include "llvm/TextAPI/TextAPIReader.h"
Public Member Functions | |
TextAPIReader ()=delete |
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. |
Definition at line 24 of file TextAPIReader.h.
|
delete |
|
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.
InputBuffer | Buffer holding contents 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().
|
static |
Parse and get an InterfaceFile that represents the full library.
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().