TextAPIReader.h 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- TextAPIReader.h - Text API Reader ----------------------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_TEXTAPI_TEXTAPIREADER_H
  14. #define LLVM_TEXTAPI_TEXTAPIREADER_H
  15. #include "llvm/Support/Error.h"
  16. namespace llvm {
  17. class MemoryBufferRef;
  18. namespace MachO {
  19. class InterfaceFile;
  20. class TextAPIReader {
  21. public:
  22. static Expected<std::unique_ptr<InterfaceFile>>
  23. get(MemoryBufferRef InputBuffer);
  24. TextAPIReader() = delete;
  25. };
  26. } // end namespace MachO.
  27. } // end namespace llvm.
  28. #endif // LLVM_TEXTAPI_TEXTAPIREADER_H
  29. #ifdef __GNUC__
  30. #pragma GCC diagnostic pop
  31. #endif