clang-tools 22.0.0git
clang::clangd::riff Namespace Reference

Classes

struct  Chunk
struct  File

Typedefs

using FourCC = std::array<char, 4>

Functions

llvm::Expected< ChunkreadChunk (llvm::StringRef &Stream)
llvm::raw_ostream & operator<< (llvm::raw_ostream &OS, const Chunk &C)
llvm::Expected< FilereadFile (llvm::StringRef Stream)
llvm::raw_ostream & operator<< (llvm::raw_ostream &OS, const File &F)
constexpr FourCC fourCC (const char(&Literal)[5])
constexpr llvm::StringRef fourCCStr (const FourCC &Data)
bool operator== (const Chunk &L, const Chunk &R)
bool operator== (const File &L, const File &R)

Typedef Documentation

◆ FourCC

using clang::clangd::riff::FourCC = std::array<char, 4>

Definition at line 41 of file RIFF.h.

Function Documentation

◆ fourCC()

FourCC clang::clangd::riff::fourCC ( const char(&) Literal[5])
inlineconstexpr

Definition at line 43 of file RIFF.h.

Referenced by readFile().

◆ fourCCStr()

llvm::StringRef clang::clangd::riff::fourCCStr ( const FourCC & Data)
inlineconstexpr

Definition at line 46 of file RIFF.h.

Referenced by readFile().

◆ operator<<() [1/2]

llvm::raw_ostream & clang::clangd::riff::operator<< ( llvm::raw_ostream & OS,
const Chunk & C )

Definition at line 37 of file RIFF.cpp.

◆ operator<<() [2/2]

llvm::raw_ostream & clang::clangd::riff::operator<< ( llvm::raw_ostream & OS,
const File & F )

Definition at line 66 of file RIFF.cpp.

References clang::clangd::riff::File::Chunks, and clang::clangd::riff::File::Type.

◆ operator==() [1/2]

bool clang::clangd::riff::operator== ( const Chunk & L,
const Chunk & R )
inline

Definition at line 54 of file RIFF.h.

References clang::clangd::riff::Chunk::Data, and clang::clangd::riff::Chunk::ID.

◆ operator==() [2/2]

bool clang::clangd::riff::operator== ( const File & L,
const File & R )
inline

Definition at line 62 of file RIFF.h.

References clang::clangd::riff::File::Chunks, and clang::clangd::riff::File::Type.

◆ readChunk()

llvm::Expected< Chunk > clang::clangd::riff::readChunk ( llvm::StringRef & Stream)

Definition at line 17 of file RIFF.cpp.

References clang::clangd::error().

Referenced by readFile().

◆ readFile()

llvm::Expected< File > clang::clangd::riff::readFile ( llvm::StringRef Stream)