31 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_RIFF_H 32 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_RIFF_H 33 #include "llvm/ADT/StringRef.h" 34 #include "llvm/Support/Error.h" 35 #include "llvm/Support/ScopedPrinter.h" 46 return FourCC{{Literal[0], Literal[1], Literal[2], Literal[3]}};
67 llvm::Expected<Chunk>
readChunk(llvm::StringRef &Stream);
73 llvm::Expected<File>
readFile(llvm::StringRef Stream);
76 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)