99#ifndef LLVM_SUPPORT_BINARYSTREAMREF_H
1010#define LLVM_SUPPORT_BINARYSTREAMREF_H
1111
12- #include " llvm/Support/Compiler.h"
1312#include " llvm/ADT/ArrayRef.h"
1413#include " llvm/Support/BinaryStream.h"
1514#include " llvm/Support/BinaryStreamError.h"
15+ #include " llvm/Support/Compiler.h"
1616#include " llvm/Support/Error.h"
1717#include < cstdint>
1818#include < memory>
@@ -163,8 +163,9 @@ class BinaryStreamRef
163163 BinaryStreamRef () = default ;
164164 LLVM_ABI BinaryStreamRef (BinaryStream &Stream);
165165 LLVM_ABI BinaryStreamRef (BinaryStream &Stream, uint64_t Offset,
166- std::optional<uint64_t > Length);
167- LLVM_ABI explicit BinaryStreamRef (ArrayRef<uint8_t > Data, llvm::endianness Endian);
166+ std::optional<uint64_t > Length);
167+ LLVM_ABI explicit BinaryStreamRef (ArrayRef<uint8_t > Data,
168+ llvm::endianness Endian);
168169 LLVM_ABI explicit BinaryStreamRef (StringRef Data, llvm::endianness Endian);
169170
170171 BinaryStreamRef (const BinaryStreamRef &Other) = default ;
@@ -183,15 +184,15 @@ class BinaryStreamRef
183184 // / bounds of this BinaryStreamRef's view and the implementation could read
184185 // / the data, and an appropriate error code otherwise.
185186 LLVM_ABI Error readBytes (uint64_t Offset, uint64_t Size,
186- ArrayRef<uint8_t > &Buffer) const ;
187+ ArrayRef<uint8_t > &Buffer) const ;
187188
188189 // / Given an Offset into this BinaryStreamRef, return a reference to the
189190 // / largest buffer the stream could support without necessitating a copy.
190191 // /
191192 // / \returns a success error code if implementation could read the data,
192193 // / and an appropriate error code otherwise.
193194 LLVM_ABI Error readLongestContiguousChunk (uint64_t Offset,
194- ArrayRef<uint8_t > &Buffer) const ;
195+ ArrayRef<uint8_t > &Buffer) const ;
195196};
196197
197198struct BinarySubstreamRef {
@@ -235,10 +236,11 @@ class WritableBinaryStreamRef
235236public:
236237 WritableBinaryStreamRef () = default ;
237238 LLVM_ABI WritableBinaryStreamRef (WritableBinaryStream &Stream);
238- LLVM_ABI WritableBinaryStreamRef (WritableBinaryStream &Stream, uint64_t Offset,
239- std::optional<uint64_t > Length);
239+ LLVM_ABI WritableBinaryStreamRef (WritableBinaryStream &Stream,
240+ uint64_t Offset,
241+ std::optional<uint64_t > Length);
240242 LLVM_ABI explicit WritableBinaryStreamRef (MutableArrayRef<uint8_t > Data,
241- llvm::endianness Endian);
243+ llvm::endianness Endian);
242244 WritableBinaryStreamRef (const WritableBinaryStreamRef &Other) = default ;
243245 WritableBinaryStreamRef &
244246 operator =(const WritableBinaryStreamRef &Other) = default ;
0 commit comments