9#ifndef LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_YAMLSYMBOLINDEX_H
10#define LLVM_CLANG_TOOLS_EXTRA_INCLUDE_FIXER_YAMLSYMBOLINDEX_H
14#include "llvm/Support/ErrorOr.h"
19namespace include_fixer {
25 static llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
28 static llvm::ErrorOr<std::unique_ptr<YamlSymbolIndex>>
31 std::vector<find_all_symbols::SymbolAndSignals>
32 search(llvm::StringRef Identifier)
override;
36 std::vector<find_all_symbols::SymbolAndSignals> Symbols)
37 : Symbols(std::move(Symbols)) {}
39 std::vector<find_all_symbols::SymbolAndSignals> Symbols;
llvm::SmallString< 256U > Name
llvm::StringRef Directory
This class provides an interface for finding all SymbolInfos corresponding to a symbol name from a sy...
static llvm::ErrorOr< std::unique_ptr< YamlSymbolIndex > > createFromFile(llvm::StringRef FilePath)
Create a new Yaml db from a file.
std::vector< find_all_symbols::SymbolAndSignals > search(llvm::StringRef Identifier) override
Search for all SymbolInfos corresponding to an identifier.
static llvm::ErrorOr< std::unique_ptr< YamlSymbolIndex > > createFromDirectory(llvm::StringRef Directory, llvm::StringRef Name)
Look for a file called Name in Directory and all parent directories.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//