GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
lookup_name_info Class Referencefinal

#include "symtab.h"

Public Member Functions

 lookup_name_info (std::string &&name, symbol_name_match_type match_type, bool completion_mode=false, bool ignore_parameters=false)=delete
 
 lookup_name_info (const std::string &name, symbol_name_match_type match_type, bool completion_mode=false, bool ignore_parameters=false)
 
 lookup_name_info (const char *name, symbol_name_match_type match_type, bool completion_mode=false, bool ignore_parameters=false)
 
symbol_name_match_type match_type () const
 
bool completion_mode () const
 
gdb::string_view name () const
 
const bool ignore_parameters () const
 
const char * c_str () const
 
lookup_name_info make_ignore_params () const
 
unsigned int search_name_hash (language lang) const
 
const char * language_lookup_name (language lang) const
 
std::vector< gdb::string_view > split_name (language lang) const
 
const ada_lookup_name_infoada () const
 
const demangle_for_lookup_infocplus () const
 
const demangle_for_lookup_infod () const
 
const demangle_for_lookup_infogo () const
 

Static Public Member Functions

static const lookup_name_infomatch_any ()
 

Private Member Functions

template<typename Field , typename... Args>
void maybe_init (Field &field, Args &&... args) const
 

Private Attributes

symbol_name_match_type m_match_type
 
bool m_completion_mode
 
bool m_ignore_parameters
 
gdb::string_view m_name
 
gdb::optional< ada_lookup_name_infom_ada
 
gdb::optional< demangle_for_lookup_infom_cplus
 
gdb::optional< demangle_for_lookup_infom_d
 
gdb::optional< demangle_for_lookup_infom_go
 
std::array< unsigned int, nr_languagesm_demangled_hashes
 
std::array< bool, nr_languagesm_demangled_hashes_p {}
 

Detailed Description

Definition at line 204 of file symtab.h.

Constructor & Destructor Documentation

◆ lookup_name_info() [1/3]

lookup_name_info::lookup_name_info ( std::string && name,
symbol_name_match_type match_type,
bool completion_mode = false,
bool ignore_parameters = false )
delete

Referenced by make_ignore_params().

◆ lookup_name_info() [2/3]

lookup_name_info::lookup_name_info ( const std::string & name,
symbol_name_match_type match_type,
bool completion_mode = false,
bool ignore_parameters = false )
inline

Definition at line 216 of file symtab.h.

◆ lookup_name_info() [3/3]

lookup_name_info::lookup_name_info ( const char * name,
symbol_name_match_type match_type,
bool completion_mode = false,
bool ignore_parameters = false )
inline

Definition at line 228 of file symtab.h.

Member Function Documentation

◆ ada()

const ada_lookup_name_info & lookup_name_info::ada ( ) const
inline

◆ c_str()

const char * lookup_name_info::c_str ( ) const
inline

Definition at line 246 of file symtab.h.

References m_name.

Referenced by linkage_name_str(), lookup_partial_symbol(), and make_ignore_params().

◆ completion_mode()

bool lookup_name_info::completion_mode ( ) const
inline

◆ cplus()

const demangle_for_lookup_info & lookup_name_info::cplus ( ) const
inline

◆ d()

const demangle_for_lookup_info & lookup_name_info::d ( ) const
inline

Definition at line 329 of file symtab.h.

References language_d, m_d, and maybe_init().

Referenced by language_lookup_name().

◆ go()

const demangle_for_lookup_info & lookup_name_info::go ( ) const
inline

Definition at line 336 of file symtab.h.

References language_go, m_go, and maybe_init().

Referenced by language_lookup_name().

◆ ignore_parameters()

const bool lookup_name_info::ignore_parameters ( ) const
inline

Definition at line 242 of file symtab.h.

References m_ignore_parameters.

◆ language_lookup_name()

const char * lookup_name_info::language_lookup_name ( language lang) const
inline

◆ make_ignore_params()

lookup_name_info lookup_name_info::make_ignore_params ( ) const
inline

◆ match_any()

const lookup_name_info & lookup_name_info::match_any ( )
static

Definition at line 1861 of file symtab.c.

References FULL.

Referenced by ada_add_global_exceptions(), and global_symbol_searcher::expand_symtabs().

◆ match_type()

symbol_name_match_type lookup_name_info::match_type ( ) const
inline

◆ maybe_init()

template<typename Field , typename... Args>
void lookup_name_info::maybe_init ( Field & field,
Args &&... args ) const
inlineprivate

Definition at line 349 of file symtab.h.

Referenced by ada(), cplus(), d(), and go().

◆ name()

gdb::string_view lookup_name_info::name ( ) const
inline

◆ search_name_hash()

unsigned int lookup_name_info::search_name_hash ( language lang) const
inline

◆ split_name()

std::vector< gdb::string_view > lookup_name_info::split_name ( language lang) const
inline

Member Data Documentation

◆ m_ada

gdb::optional<ada_lookup_name_info> lookup_name_info::m_ada
mutableprivate

Definition at line 367 of file symtab.h.

Referenced by ada().

◆ m_completion_mode

bool lookup_name_info::m_completion_mode
private

Definition at line 357 of file symtab.h.

Referenced by completion_mode(), and make_ignore_params().

◆ m_cplus

gdb::optional<demangle_for_lookup_info> lookup_name_info::m_cplus
mutableprivate

Definition at line 368 of file symtab.h.

Referenced by cplus().

◆ m_d

gdb::optional<demangle_for_lookup_info> lookup_name_info::m_d
mutableprivate

Definition at line 369 of file symtab.h.

Referenced by d().

◆ m_demangled_hashes

std::array<unsigned int, nr_languages> lookup_name_info::m_demangled_hashes
mutableprivate

Definition at line 377 of file symtab.h.

Referenced by search_name_hash().

◆ m_demangled_hashes_p

std::array<bool, nr_languages> lookup_name_info::m_demangled_hashes_p {}
mutableprivate

Definition at line 378 of file symtab.h.

Referenced by search_name_hash().

◆ m_go

gdb::optional<demangle_for_lookup_info> lookup_name_info::m_go
mutableprivate

Definition at line 370 of file symtab.h.

Referenced by go().

◆ m_ignore_parameters

bool lookup_name_info::m_ignore_parameters
private

Definition at line 358 of file symtab.h.

Referenced by ignore_parameters().

◆ m_match_type

symbol_name_match_type lookup_name_info::m_match_type
private

Definition at line 356 of file symtab.h.

Referenced by make_ignore_params(), and match_type().

◆ m_name

gdb::string_view lookup_name_info::m_name
private

Definition at line 359 of file symtab.h.

Referenced by c_str(), language_lookup_name(), and name().


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