clang-tools 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::include_fixer::YamlSymbolIndex Class Reference

Yaml format database. More...

#include <YamlSymbolIndex.h>

Inheritance diagram for clang::include_fixer::YamlSymbolIndex:
Inheritance graph
[legend]

Public Member Functions

std::vector< find_all_symbols::SymbolAndSignalssearch (llvm::StringRef Identifier) override
 Search for all SymbolInfos corresponding to an identifier.
 
- Public Member Functions inherited from clang::include_fixer::SymbolIndex
virtual ~SymbolIndex ()=default
 
virtual std::vector< find_all_symbols::SymbolAndSignalssearch (llvm::StringRef Identifier)=0
 Search for all SymbolInfos 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.
 

Detailed Description

Yaml format database.

Definition at line 22 of file YamlSymbolIndex.h.

Member Function Documentation

◆ createFromDirectory()

llvm::ErrorOr< std::unique_ptr< YamlSymbolIndex > > clang::include_fixer::YamlSymbolIndex::createFromDirectory ( llvm::StringRef  Directory,
llvm::StringRef  Name 
)
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().

◆ createFromFile()

llvm::ErrorOr< std::unique_ptr< YamlSymbolIndex > > clang::include_fixer::YamlSymbolIndex::createFromFile ( llvm::StringRef  FilePath)
static

◆ search()

std::vector< SymbolAndSignals > clang::include_fixer::YamlSymbolIndex::search ( llvm::StringRef  Identifier)
overridevirtual

Search for all SymbolInfos corresponding to an identifier.

Parameters
IdentifierThe unqualified identifier being searched for.
Returns
A list of SymbolInfo candidates.

Implements clang::include_fixer::SymbolIndex.

Definition at line 49 of file YamlSymbolIndex.cpp.

References Results.


The documentation for this class was generated from the following files: