mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
49 lines
1.3 KiB
C++
49 lines
1.3 KiB
C++
//===- tapi/Core/TextStub_v3.h - Text Stub v3 -------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
///
|
|
/// \file
|
|
/// \brief Defines the content of a text stub v3 file.
|
|
///
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef TAPI_CORE_TEXT_STUB_V3_H
|
|
#define TAPI_CORE_TEXT_STUB_V3_H
|
|
|
|
#include "File.h"
|
|
#include "LLVM.h"
|
|
#include "Registry.h"
|
|
#include "YAMLReaderWriter.h"
|
|
#include "Defines.h"
|
|
|
|
namespace llvm {
|
|
namespace yaml {
|
|
class IO;
|
|
} // namespace yaml
|
|
} // namespace llvm
|
|
|
|
TAPI_NAMESPACE_INTERNAL_BEGIN
|
|
|
|
namespace stub {
|
|
namespace v3 {
|
|
|
|
class YAMLDocumentHandler : public DocumentHandler {
|
|
bool canRead(MemoryBufferRef memBufferRef,
|
|
FileType types = FileType::All) const override;
|
|
FileType getFileType(MemoryBufferRef memBufferRef) const override;
|
|
bool canWrite(const File *file) const override;
|
|
bool handleDocument(llvm::yaml::IO &io, const File *&file) const override;
|
|
};
|
|
|
|
} // end namespace v3.
|
|
} // end namespace stub.
|
|
|
|
TAPI_NAMESPACE_INTERNAL_END
|
|
|
|
#endif // TAPI_CORE_TEXT_STUB_V3_H
|