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" 34 #include "llvm/Support/ScopedPrinter.h" 45 return FourCC{{Literal[0], Literal[1], Literal[2], Literal[3]}};
66 llvm::Expected<Chunk>
readChunk(llvm::StringRef &Stream);
72 llvm::Expected<File>
readFile(llvm::StringRef Stream);
75 llvm::raw_ostream &
operator<<(llvm::raw_ostream &OS,
const File &);
constexpr FourCC fourCC(const char(&Literal)[5])
llvm::Expected< File > readFile(llvm::StringRef Stream)
std::vector< Chunk > Chunks
std::array< char, 4 > FourCC
llvm::Expected< Chunk > readChunk(llvm::StringRef &Stream)
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const Chunk &C)
bool operator==(const Chunk &L, const Chunk &R)