clang-tools 20.0.0git
|
Yaml format database. More...
#include <YamlSymbolIndex.h>
Public Member Functions | |
std::vector< find_all_symbols::SymbolAndSignals > | search (llvm::StringRef Identifier) override |
Search for all SymbolInfo s corresponding to an identifier. | |
Public Member Functions inherited from clang::include_fixer::SymbolIndex | |
virtual | ~SymbolIndex ()=default |
virtual std::vector< find_all_symbols::SymbolAndSignals > | search (llvm::StringRef Identifier)=0 |
Search for all SymbolInfo s corresponding to an identifier. | |
Static Public Member Functions | |
static llvm::ErrorOr< std::unique_ptr< YamlSymbolIndex > > | createFromFile (llvm::StringRef FilePath) |
Create a new Yaml db from a file. | |
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. | |
Yaml format database.
Definition at line 22 of file YamlSymbolIndex.h.
|
static |
Look for a file called Name
in Directory
and all parent directories.
Definition at line 34 of file YamlSymbolIndex.cpp.
References createFromFile(), Directory, and Name.
Referenced by clang::include_fixer::ClangIncludeFixerPluginAction::ParseArgs().
|
static |
Create a new Yaml db from a file.
Definition at line 24 of file YamlSymbolIndex.cpp.
References clang::find_all_symbols::ReadSymbolInfosFromYAML().
Referenced by createFromDirectory(), and clang::include_fixer::ClangIncludeFixerPluginAction::ParseArgs().
|
overridevirtual |
Search for all SymbolInfo
s corresponding to an identifier.
Identifier | The unqualified identifier being searched for. |
SymbolInfo
candidates. Implements clang::include_fixer::SymbolIndex.
Definition at line 49 of file YamlSymbolIndex.cpp.
References Results.