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

Xref database with fixed content. More...

#include <InMemorySymbolIndex.h>

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

Public Member Functions

 InMemorySymbolIndex (const std::vector< find_all_symbols::SymbolAndSignals > &Symbols)
 
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.
 

Detailed Description

Xref database with fixed content.

Definition at line 21 of file InMemorySymbolIndex.h.

Constructor & Destructor Documentation

◆ InMemorySymbolIndex()

clang::include_fixer::InMemorySymbolIndex::InMemorySymbolIndex ( const std::vector< find_all_symbols::SymbolAndSignals > &  Symbols)

Definition at line 16 of file InMemorySymbolIndex.cpp.

Member Function Documentation

◆ search()

std::vector< SymbolAndSignals > clang::include_fixer::InMemorySymbolIndex::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 23 of file InMemorySymbolIndex.cpp.


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