#include "clang/InstallAPI/FileList.h"
#include "clang/Basic/DiagnosticFrontend.h"
#include "clang/InstallAPI/FileList.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/JSON.h"
#include "llvm/TextAPI/TextAPIError.h"
#include <optional>
usingnamespacellvm;
usingnamespacellvm::json;
usingnamespacellvm::MachO;
usingnamespaceclang::installapi;
namespace {
class Implementation { … };
Expected<StringRef>
Implementation::parseString(const Object *Obj, StringRef Key, StringRef Error) { … }
Expected<HeaderType> Implementation::parseType(const Object *Obj) { … }
Expected<StringRef> Implementation::parsePath(const Object *Obj) { … }
std::optional<clang::Language>
Implementation::parseLanguage(const Object *Obj) { … }
Error Implementation::parseHeaders(Array &Headers) { … }
Error Implementation::parse(StringRef Input) { … }
}
llvm::Error
FileListReader::loadHeaders(std::unique_ptr<MemoryBuffer> InputBuffer,
HeaderSeq &Destination, clang::FileManager *FM) { … }