24 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_RIFF_H 25 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_INDEX_RIFF_H 30 #include "clang/Tooling/CompilationDatabase.h" 31 #include "llvm/Support/Error.h" 44 llvm::Optional<RefSlab>
Refs;
49 llvm::Optional<tooling::CompileCommand>
Cmd;
63 const tooling::CompileCommand *Cmd =
nullptr;
67 : Symbols(I.Symbols ? I.Symbols.getPointer() : nullptr),
68 Refs(I.Refs ? I.Refs.getPointer() : nullptr),
69 Relations(I.Relations ? I.Relations.getPointer() : nullptr),
70 Sources(I.Sources ? I.Sources.getPointer() : nullptr),
71 Cmd(I.Cmd ? I.Cmd.getPointer() : nullptr) {}
llvm::Optional< SymbolSlab > Symbols
An immutable symbol container that stores a set of symbols.
llvm::Optional< tooling::CompileCommand > Cmd
Represents a relation between two symbols.
std::unique_ptr< SymbolIndex > loadIndex(llvm::StringRef SymbolFilename, bool UseDex)
An efficient structure of storing large set of symbol references in memory.
llvm::Expected< IndexFileIn > readIndexFile(llvm::StringRef Data)
std::string toYAML(const Symbol &)
llvm::Optional< RelationSlab > Relations
llvm::Optional< IncludeGraph > Sources
llvm::StringMap< IncludeGraphNode > IncludeGraph
std::string Filename
Filename as a string.
IndexFileOut(const IndexFileIn &I)
llvm::Optional< RefSlab > Refs
The class presents a C++ symbol, e.g.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
llvm::raw_ostream & operator<<(llvm::raw_ostream &OS, const CodeCompletion &C)