LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::MachO::TextAPIReader Class Reference

#include "llvm/TextAPI/TextAPIReader.h"

Public Member Functions

 TextAPIReader ()=delete
 

Static Public Member Functions

static Expected< FileTypecanRead (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.
 

Detailed Description

Definition at line 23 of file TextAPIReader.h.

Constructor & Destructor Documentation

◆ TextAPIReader()

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
InputBufferBuffer holding contents of TAPI text file.
Returns
The file format version 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().

◆ get()

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

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