LLVM 20.0.0git
|
#include "llvm/TextAPI/TextAPIReader.h"
Public Member Functions | |
TextAPIReader ()=delete | |
Static Public Member Functions | |
static Expected< FileType > | canRead (MemoryBufferRef InputBuffer) |
Determine whether input can be interpreted as TAPI text file. | |
static Expected< std::unique_ptr< InterfaceFile > > | get (MemoryBufferRef InputBuffer) |
Parse and get an InterfaceFile that represents the full library. | |
Definition at line 23 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 1074 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 1099 of file TextStub.cpp.
References canRead(), DiagHandler(), llvm::drop_begin(), llvm::MachO::TextAPIContext::ErrorMessage, llvm::MachO::TextAPIContext::FileKind, llvm::MemoryBufferRef::getBuffer(), llvm::MemoryBufferRef::getBufferIdentifier(), llvm::MachO::getInterfaceFileFromJSON(), llvm::MachO::TextAPIContext::Path, and llvm::MachO::TBD_V5.
Referenced by llvm::object::TapiUniversal::TapiUniversal().