30#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_RIFF_H
31#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_RIFF_H
32#include "llvm/ADT/StringRef.h"
33#include "llvm/Support/Error.h"
44 return FourCC{{Literal[0], Literal[1], Literal[2], Literal[3]}};
47 return llvm::StringRef(&Data[0], Data.size());
55 return std::tie(L.ID, L.Data) == std::tie(R.
ID, R.
Data);
63 return std::tie(L.Type, L.Chunks) == std::tie(R.
Type, R.
Chunks);
68llvm::Expected<Chunk>
readChunk(llvm::StringRef &Stream);
71llvm::raw_ostream &
operator<<(llvm::raw_ostream &
OS,
const Chunk &);
74llvm::Expected<File>
readFile(llvm::StringRef Stream);
77llvm::raw_ostream &
operator<<(llvm::raw_ostream &
OS,
const File &);
llvm::raw_string_ostream OS
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const Chunk &C)
llvm::Expected< File > readFile(llvm::StringRef Stream)
bool operator==(const Chunk &L, const Chunk &R)
constexpr FourCC fourCC(const char(&Literal)[5])
constexpr llvm::StringRef fourCCStr(const FourCC &Data)
llvm::Expected< Chunk > readChunk(llvm::StringRef &Stream)
std::array< char, 4 > FourCC
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
std::vector< Chunk > Chunks